mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-14 09:57:28 +00:00
Add productUuid and productType to action and condition
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user