Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LWT message #3

Open
FulvioSpelta opened this issue Jun 2, 2020 · 1 comment
Open

LWT message #3

FulvioSpelta opened this issue Jun 2, 2020 · 1 comment

Comments

@FulvioSpelta
Copy link

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
Copy link
Owner

magcode commented Jun 3, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants