Handle when scene and device have the same Id
- Catch emitted errors in Mqtt
This commit is contained in:
parent
dca491bf00
commit
ef7a5086a1
4 changed files with 27 additions and 10 deletions
|
|
@ -65,6 +65,10 @@ class DeviceRegistry {
|
|||
return (this.plejdDevices[deviceId] || {}).name;
|
||||
}
|
||||
|
||||
getScene(sceneId) {
|
||||
return this.sceneDevices[sceneId];
|
||||
}
|
||||
|
||||
getSceneName(sceneId) {
|
||||
return (this.sceneDevices[sceneId] || {}).name;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue