I’m having a problem setting the state on switches, numbers seem fine.
topic: hestia/local/heatingstate with any value (including 1, 0, ON and OFF) always results in a “given new state is NULL, couldn’t post update” error and nothing changing.
Code is up to date with repo. Seems setting the HeatingPin23 was not the right thing to set however and that the MainSwitch error is irrelevant (as this came from the openhab script on HeatingMode change). Adding MQTT code to HeatingMode is achieving what I wanted (ability to turn the HestiaPI heating on and off.
So this is effectively fixed, but I’m wondering why the MQTT code is on the HeatingPin23 rather than the HeatingMode considering the former seems to not really do anything alongside the HestiaPI?
because MQTT is applied here on HeatingPin23 as a way to control an external contact for the heating (direction >)
Adding another topic on HeatingMode is the way to go