Merge pull request #162 from SyncrowIOT/add-product-to-automation-and-scene

Add product to automation and scene
This commit is contained in:
faris Aljohari
2024-11-29 01:47:27 -06:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

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

View File

@ -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 &&