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

Publish LWT on TOPIC change #417

Closed
mrmin24 opened this issue May 5, 2017 · 5 comments
Closed

Publish LWT on TOPIC change #417

mrmin24 opened this issue May 5, 2017 · 5 comments
Labels
enhancement Type - Enhancement that will be worked on

Comments

@mrmin24
Copy link

mrmin24 commented May 5, 2017

Would it be possible to send an Offline message to the old topic when TOPIC is changed, before or just after changing TOPIC?

The reason being that when TOPIC is changed, the old topic is never set to Offline before the new TOPIC comes back online. So it looks like 2 devices are online, but only one is.

@arendst arendst added the enhancement Type - Enhancement that will be worked on label May 5, 2017
@arendst
Copy link
Owner

arendst commented May 11, 2017

Sending an empty message with previous topic will be implemented in next release (unless there is a majority voting for just sending an offline message...)

@mrmin24
Copy link
Author

mrmin24 commented May 11, 2017

Maybe a offline message and then a empty one?

@arendst
Copy link
Owner

arendst commented May 11, 2017

I make it configurable by the user; either select Offline OR empty message ;-)

@mrmin24
Copy link
Author

mrmin24 commented May 11, 2017

Haha, OK. Sorry for trouble.

I think you should add a donate button on your wiki😊

arendst added a commit that referenced this issue May 11, 2017
5.0.7 20170511
* Fix possible exception 28 on empty command
* Add command SetOption0 as replacement for SaveState
* Add command SetOption1 as replacement for ButtonRestrict
* Add command SetOption2 as replacement for Units
* Add command SetOption4 as replacement for MqttResponse
* Add command SetOption8 as replacement for TempUnit
* Add command SetOption10 On|Off to select between Offline or Removing
previous retained topic (#417, #436)
@mrmin24
Copy link
Author

mrmin24 commented May 12, 2017

Tested v5.0.7

Thanks

@mrmin24 mrmin24 closed this as completed May 12, 2017
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
5.0.7 20170511
* Fix possible exception 28 on empty command
* Add command SetOption0 as replacement for SaveState
* Add command SetOption1 as replacement for ButtonRestrict
* Add command SetOption2 as replacement for Units
* Add command SetOption4 as replacement for MqttResponse
* Add command SetOption8 as replacement for TempUnit
* Add command SetOption10 On|Off to select between Offline or Removing
previous retained topic (arendst#417, arendst#436)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type - Enhancement that will be worked on
Projects
None yet
Development

No branches or pull requests

2 participants