Duncan, thanks for the answer, but i can't understand the sentence "just as a little experiment, swap round the 3 loxone virtual outputs and see if it still flashes red or another colour"! Can you give more details about what should i do?John, as i wrote in my first message i am not a programming guy. Can you give a more detailed instructions of what should i do? I believe that your idea is closer to what i want, but i can not figure out the configuration of the Virual Output (or outputs) of the Miniserver and if i must use a Rule on the ESP Mega?!
When you enter this first command with the correct IP address in the URL of your browser:
http://<espeasyip>/control?cmd=event,startwatering http://<espeasyip>/control?cmd=event,stopwatering
And have this rule in the addressed ESP:
On startwatering do gpio,12,1 //start watering (open valve) timerSet,1,600 //timer 1 set for 10 minutes endon On stopwatering do timerSet,1,0 //timer 1 set to halt, used to stop watering before the timer ends! gpio,12,0 //stop watering (close valve) endon On Rules#Timer=1 do gpio,12,0 //stop watering (close valve) endOn
One can send values like this:
Now send this command to the ESP:
I spent some time with the code you gave me, but i had no result. I wasn't able to find how to define the gpio,1 = redout, to define the combined value = %eventvalue%, etc, also Wemos outputs on pwm is between 1 to 1023, not 0 to 256 and a lot of other problems.
Configure device like this:
Then to turn on the heater for 2 minutes send the command: