I’m new to Mycodo and I’m trying to setup a controller for a pepper growing box.
I have a couple of Shelly Plug smart plugs, and I’d like to integrate them in the system.
So far I’ve been able to setup the Mqtt broker and to connect it to Mycodo, using Mqtt Value Inputs.
I’m almost correctly reading the power draw and energy (It’s published in watt per minute and I think I need to create a unit conversion, but that’s another story); my main problem is the relay state reading.
The devices send a simple “on” or “off” Mqtt message, which isn’t correctly read by Mycodo. If I understood correctly, the software expects a numeric value; how do I convert the string, preferably to a boolean state value? I’ve tried different units, but no one seems to work.
Probably I’m missing something obvious, but I’ve tried to find an answer in the manual and in the forum, with no success.
Thank you for your time,