magcode / daikin-mqtt

MQTT interface for Daikin AC Wifi Adapter
GNU General Public License v3.0
10 stars 2 forks source link

LWT message #3

Open FulvioSpelta opened 4 years ago

FulvioSpelta commented 4 years ago

The homie ask for a LWT message: MQTT only allows one last will message per connection. Homie requires the last will (LWT) to set the homie / device ID / $state attribute to the value lost

It seems that this is not implemented because in my subscription i can see always "ready" state even if the java gateway is disconnected from mqtt.

magcode commented 4 years ago

I cannot implement this with the current design. LWT would need to be sent for every AC adapter. But I can only have one last will. I prefer to have only one instance of this connector running; supporting multiple AC wifi adapters at the same time.

Maybe can can publish the state=lost at least when the program is (propertly) shut down.