-
Notifications
You must be signed in to change notification settings - Fork 9
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
_MQTT_AVAILABILITY_TOPIC_LEGACY does not work with will_set #106
Comments
…will on `homeassistant/switchbot_mqtt/status`) partially reverts commit 9947875 #106 (comment) #105
Thanks a lot, @phbasler, for following up and reviewing my changes! After realizing that I had a mismatch between code and docs in v3.3.0, I was hoping that I could avoid a breaking change that way (but missed to check the docs or properly test the change). I will follow your suggestion and call it a "fix" rather than a "change". |
No problem, I'm just happy that it now works to have a template switch which can decide by itself if it should signal a satellite pi zero to control the switchbot or the server itself if the pi zero is not online. |
Hi @fphammerle
I just saw the fix with MQTT_AVAILABILITY_TOPIC_LEGACY because of the "" to "-" mixup.
In
switchbot-mqtt/switchbot_mqtt/__init__.py
Lines 101 to 106 in 9947875
A possible workaround would be to have a second mqtt client which just has the will and the birth message to the legacy topic and have the original client have the non legacy topic.
But practically spoken: Why not declare it as a bug and make version 3.3.1 with the corrected topic?
The text was updated successfully, but these errors were encountered: