I can see the topic is quite old but myabe a complete sensor 2.1 example?
I can see that this code for openhab is quite popular. But i'm facing an issue constructing the proper MQTT topic
As on my set up all my control messages look like
topic: "mys-in/41/2/1/0/2"
payload: "0"
So wonder which ones to use with this sketch?
@korttoma Hello Sir, many thanks for such an elegant piece of code for controlling multiple relays.
I would greatly appreciate if you provide me some tips or updated code on using your code for a "Bi stable" Button setup, i.e. using conventional home switches (ON or OFF states) for controlling relays.
Thanks
T