Add productUuid and productType to action and condition

This commit is contained in:
faris Aljohari
2024-11-29 01:40:52 -06:00
parent a6a96067e4
commit b3f4507a70

View File

@ -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;
}
}
}