So I have a issue with controlling relay on my ESPEasy Mega on Sonoff TH16 using ioBroker.mobile.
It's all OK, I have setup all parameters, beginning with OpenHAB MQTT and MQTT import, ending with Switch Relay GPIO parameters. But I've discovered one bug (or feature?): ESPEasy.Relay.Switch only can to be 0 and 1, when ioBroker uses for light switches true and false. And I cannot setup ioBroker.mobile because it ignores my switch in cause of inapproprial value.
Now the question: how to set up ESPEasy Mega operating with true/false, but no 1/0?
ESPEasy/Relay/Switch boolean value required instead binary
Moderators: grovkillen, Stuntteam, TD-er
-
- New user
- Posts: 2
- Joined: 17 May 2018, 08:43
-
- Normal user
- Posts: 300
- Joined: 07 Feb 2016, 11:56
Re: ESPEasy/Relay/Switch boolean value required instead binary
Have to look at iOBroker, looks interesting.
Have you tried using rules?
It is an interesting issue as software generally uses boolean value of 1/0 for true/false. I assume iOBroker is sending / receiving MQTT messages? You can probably change the plugin to use whatever iOBroker needs, but for sending rules may work, but I don't know about receiving.
I use Node-red for these things, it is pretty easy to manipulate MQTT messages among other things.
Have you tried using rules?
It is an interesting issue as software generally uses boolean value of 1/0 for true/false. I assume iOBroker is sending / receiving MQTT messages? You can probably change the plugin to use whatever iOBroker needs, but for sending rules may work, but I don't know about receiving.
I use Node-red for these things, it is pretty easy to manipulate MQTT messages among other things.
-
- Normal user
- Posts: 303
- Joined: 15 Apr 2017, 05:13
- Location: Riverside CA USA
Re: ESPEasy/Relay/Switch boolean value required instead binary
I believe there are some as yet to be documented features in the newer firmwares that will make those transformations. See these links.
https://github.com/letscontrolit/ESPEasy/pull/1289
https://www.letscontrolit.com/wiki/inde ... asyFormula
https://github.com/letscontrolit/ESPEasy/pull/1289
https://www.letscontrolit.com/wiki/inde ... asyFormula
"The glass is twice as big as it needs to be".
Who is online
Users browsing this forum: Ahrefs [Bot], Anthropic Claude Bot [bot], Google [Bot] and 13 guests