arachnetech / homebridge-mqttthing

A plugin for Homebridge allowing the integration of many different accessory types using MQTT.
Apache License 2.0
466 stars 104 forks source link

Ikea Trädfri default ON best solution? #321

Open GerSant opened 4 years ago

GerSant commented 4 years ago

When the power runs out, or you turn off manually an Ikea Trädfri bulb the default state is ON. How can I synchronize this state with Homebridge for correct HomeKit state announce? "startPub"can help? MQTT Logging? I don't known how handle it because Ikea Trädfri bulb do not announce his state :(

Thanks in advance

rbswift commented 3 years ago

you could possibly try using something like this https://www.zigbee2mqtt.io

arachnetech commented 3 years ago

If the bulb doesn't announce its state and you can't disable set it to return to its last state when turned on, I don't think there's anything that MQTTThing can do unfortunately.

Can your MQTT/Zigbee bridge can detect that it's come back online and restore its state?

Do you have (or can you get) online/offline detection working in MQTTThing? If so, perhaps MQTTThing could resend control topics automatically when a device came online...