1) 2ch arduino relay
1) nodemcu with espeasy
3) domoticz last revision on raspberry pi
now i want to connect my blind to domoticz. i have 2ch relay:
1ch to UP blinds and 1ch to DOWN the blinds
i punt on espeasy:
gpio12 relay ch n°1 idx=26 that i would like to go UP
gpio15 relay ch n°2 idx=23 that i would like to go DOWN
i create dummy swithc on domoticz, i select simple switch as dummy, then go to switch page in domoticz, click on modify in switch icon and i choose from the internal page of switch "venetian blinds EU"
now i have to enter: action for switch on and action for switch off, but now stars my problems:
1) how i can menage STOP ?
2) the command that i know are:
Code: Select all
http://192.168.0.151/control?cmd=GPIO,12,1 Code: Select all
http://192.168.0.151/control?cmd=GPIO,12,0 Code: Select all
http://192.168.0.151/control?cmd=GPIO,15,1 Code: Select all
http://192.168.0.151/control?cmd=GPIO,15,0 but i have only two space to write in domoticz:
firts space: action for switch on
second space: action for switch off
how i can manage?
if i put on activate: http://192.168.0.151/control?cmd=GPIO,12,1
and in disactivate: http://192.168.0.151/control?cmd=GPIO,15,1
if i pres open blinds, and after two seconds close blinds, i will have active relay ch1 and relay ch2 and i could fire the motor's blind !?!?
what's the correct way to have relay ch1 to go UP relay ch2 to go down, a stop function, and a way that prevent to have switch ON relay ch1 and relay ch2?
thanks