diff --git a/src/automation/services/automation.service.ts b/src/automation/services/automation.service.ts index 558b4bc..41ace2f 100644 --- a/src/automation/services/automation.service.ts +++ b/src/automation/services/automation.service.ts @@ -417,6 +417,7 @@ export class AutomationService { action.entityId = device.uuid; action.productUuid = device.productDevice.uuid; action.productType = device.productDevice.prodType; + action.deviceName = device.name; } } else if ( action.actionExecutor !== ActionExecutorEnum.DEVICE_ISSUE && @@ -461,6 +462,7 @@ export class AutomationService { condition.entityId = device.uuid; condition.productUuid = device.productDevice.uuid; condition.productType = device.productDevice.prodType; + condition.deviceName = device.name; } } } diff --git a/src/scene/services/scene.service.ts b/src/scene/services/scene.service.ts index 90bd574..fc2731b 100644 --- a/src/scene/services/scene.service.ts +++ b/src/scene/services/scene.service.ts @@ -470,6 +470,7 @@ export class SceneService { action.entityId = device.uuid; action.productUuid = device.productDevice.uuid; action.productType = device.productDevice.prodType; + action.deviceName = device.name; } } else if ( action.actionExecutor !== ActionExecutorEnum.DEVICE_ISSUE &&