Device triggers for scenes implemented

This commit is contained in:
Victor Hagelbäck 2021-04-26 13:13:10 +02:00
parent b10583336e
commit 74e381f009
2 changed files with 60 additions and 18 deletions

View file

@ -72,6 +72,8 @@ class DeviceRegistry {
...this.sceneDevices,
[scene.uniqueId]: scene,
};
this.sceneUniqueIdByBleOutputAddress[scene.bleOutputAddress] = scene.uniqueId;
logger.verbose(
`Added/updated scene: ${JSON.stringify(scene)}. ${
Object.keys(this.sceneDevices).length