-
Notifications
You must be signed in to change notification settings - Fork 804
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
actuatorONOFF no longer working with Home Assistant #1105
Comments
I should be more specific: actuatorONOFF doesn't show as a switch in Home Assistant even with this in platformio.ini '-DZactuatorONOFF="ONOFF"' |
Auto discovery also doesn't show up as a switch in Home Assistant as it did in 0.9.6
|
Oops, 30AEA474AF00actuatorONOFF wasn't copied correctly;
BTW using Home Assistant core-2021.11.5 |
I just tried adding this to an esp32 dev with the latest development branch
And I got this in MQTT discovery topic:
|
Figured out what the real problem is: See my previous response for value sent for the homeassistant/switch/30AEA474AF00actuatorONOFF/config topic. It can also effect the homeassistant/switch/30AEA474AF00discovery/config and other topics which Home Assistant then ignores. When I reduced the length of the strings in the defines for Gateway_Name, OMG_VERSION, and the number of gateways included (which results in the "model" field) the problem goes away: actuatorONOFF and other configurations then work in v0.9.8. Can the length of the json publishing string be increased to eliminate this problem? I did not see this in v0.9.6, there was no null data. Is there some upper bound on the permissible json length? |
Yes it can, we are going to increase it for the new version, thanks for pointing this! |
Thanks! |
In Home Assistant, actuatorONOFF worked in 0.9.6 but is no longer working in the 0.9.8 development version
ZactuatorONOFF.ino contains:
yet ZmqttDiscovery.ino contains:
Is the problem with ZmqttDiscovery.ino?
The text was updated successfully, but these errors were encountered: