I'm communicating NR with an ESP8266 with MQTT.
In dashboard, using a switch it works perfect. The switch output contains "on" or "off" and it works perfect.
I would like to use an MQTT output, with the output of a function. The function turns on or off a water valve depending on a time shedule.
¿Wich format needs the function output to "match" with the MQTT out?
PD- I have searched in the forum, but I hav'nt find it.