mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 18:27:05 +00:00
Merge pull request #162 from SyncrowIOT/add-product-to-automation-and-scene
Add product to automation and scene
This commit is contained in:
@ -238,6 +238,8 @@ export class AutomationService {
|
||||
|
||||
if (device) {
|
||||
action.entityId = device.uuid;
|
||||
action.productUuid = device.productDevice.uuid;
|
||||
action.productType = device.productDevice.prodType;
|
||||
}
|
||||
} else if (
|
||||
action.actionExecutor !== ActionExecutorEnum.DEVICE_ISSUE &&
|
||||
@ -266,6 +268,8 @@ export class AutomationService {
|
||||
|
||||
if (device) {
|
||||
condition.entityId = device.uuid;
|
||||
condition.productUuid = device.productDevice.uuid;
|
||||
condition.productType = device.productDevice.prodType;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -411,6 +411,8 @@ export class SceneService {
|
||||
|
||||
if (device) {
|
||||
action.entityId = device.uuid;
|
||||
action.productUuid = device.productDevice.uuid;
|
||||
action.productType = device.productDevice.prodType;
|
||||
}
|
||||
} else if (
|
||||
action.actionExecutor !== ActionExecutorEnum.DEVICE_ISSUE &&
|
||||
|
Reference in New Issue
Block a user