Mill: Online + icon in tradfri

This commit is contained in:
Stian Fredrik Aune
2022-12-31 18:35:53 +01:00
parent 2a8eb05fc3
commit d8454dcee2
7 changed files with 765 additions and 1 deletions
+4 -1
View File
@@ -107,7 +107,10 @@ func (b *Bridge) listen(bus *lucifer3.EventBus) {
b.stateMap[id] = currState
bus.RunEvent(events.DeviceReady{ID: id})
bus.RunEvent(events.HardwareMetadata{ID: id})
bus.RunEvent(events.HardwareMetadata{
ID: id,
Icon: "lightbulb",
})
bus.RunEvent(events.HardwareState{
ID: id,
InternalName: ikeaDevice.Name,