mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 18:27:05 +00:00
feat: add device name to actions and conditions in Automation and Scene services
This commit is contained in:
@ -417,6 +417,7 @@ export class AutomationService {
|
||||
action.entityId = device.uuid;
|
||||
action.productUuid = device.productDevice.uuid;
|
||||
action.productType = device.productDevice.prodType;
|
||||
action.deviceName = device.name;
|
||||
}
|
||||
} else if (
|
||||
action.actionExecutor !== ActionExecutorEnum.DEVICE_ISSUE &&
|
||||
@ -461,6 +462,7 @@ export class AutomationService {
|
||||
condition.entityId = device.uuid;
|
||||
condition.productUuid = device.productDevice.uuid;
|
||||
condition.productType = device.productDevice.prodType;
|
||||
condition.deviceName = device.name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -470,6 +470,7 @@ export class SceneService {
|
||||
action.entityId = device.uuid;
|
||||
action.productUuid = device.productDevice.uuid;
|
||||
action.productType = device.productDevice.prodType;
|
||||
action.deviceName = device.name;
|
||||
}
|
||||
} else if (
|
||||
action.actionExecutor !== ActionExecutorEnum.DEVICE_ISSUE &&
|
||||
|
Reference in New Issue
Block a user