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