feat: add device name to actions and conditions in Automation and Scene services

This commit is contained in:
faris Aljohari
2025-04-22 01:53:10 +03:00
parent 2f12189eef
commit 069cdf6f75
2 changed files with 3 additions and 0 deletions
@@ -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;
}
}
}
+1
View File
@@ -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 &&