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

PubSub vs Deepsleep: MQTT uses the will message after some seconds #3

Open
pessorrusso opened this issue Jun 2, 2021 · 3 comments
Open

Comments

@pessorrusso
Copy link

Hi, great code.

I implemented your solution and the MQTT goes to the "will" message after some seconds, I believe this is due to the usage of deepsleep.

You connect with a will message (closed), send an open message and then go to deepsleep forever. Deepsleep disables Wifi, so after some seconds the MQTT will use the will (closed) message.

How are you managing this ? is your automation based on the first open message and not of the actual current state of the window/door ?

@Tom-Neverwinter
Copy link

good question. [he abandoned this like all youtubers do with items..] I'm assuming he resolves this in node red and just ignores the notification. guess we will never know.

@pessorrusso
Copy link
Author

He hasn’t written this info but he describes in one of his videos. He is using just the open message, he is not tracking the actual status.
This can be useful for a window but not so useful for a door.

@Tom-Neverwinter
Copy link

yeah, hurts my usage greatly

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