Hello,
I use a web relay 16 ports to control my RF remote controls (garage door, shutters).
I do this by sending HTTP commands with Home Assistant.
The problem is that when I send multiple commands at once the web relay chrashes and will not come back online by itself.
I am looking for a way to make sure that I only send one command at a time. for example if a switch is on that I cannot turn on another switch.
This is my config in the configuration.yaml
switch:
platform: command_line
switches:
relay_1:
command_on: "curl -X GET http://192.168.1.41/30000/01"
command_off: "curl -X GET http://192.168.1.41/30000/00"
relay_2:
command_on: "curl -X GET http://192.168.1.41/30000/03"
command_off: "curl -X GET http://192.168.1.41/30000/02"
relay_3:
command_on: "curl -X GET http://192.168.1.41/30000/05"
command_off: "curl -X GET http://192.168.1.41/30000/04"
relay_4:
command_on: "curl -X GET http://192.168.1.41/30000/07"
command_off: "curl -X GET http://192.168.1.41/30000/06"
relay_5:
command_on: "curl -X GET http://192.168.1.41/30000/09"
command_off: "curl -X GET http://192.168.1.41/30000/08"
relay_6:
command_on: "curl -X GET http://192.168.1.41/30000/11"
command_off: "curl -X GET http://192.168.1.41/30000/10"
relay_7:
command_on: "curl -X GET http://192.168.1.41/30000/13"
command_off: "curl -X GET http://192.168.1.41/30000/12"
relay_8:
command_on: "curl -X GET http://192.168.1.41/30000/15"
command_off: "curl -X GET http://192.168.1.41/30000/14"
relay_9:
command_on: "curl -X GET http://192.168.1.41/30000/17"
command_off: "curl -X GET http://192.168.1.41/30000/16"
relay_10:
command_on: "curl -X GET http://192.168.1.41/30000/19"
command_off: "curl -X GET http://192.168.1.41/30000/18"
relay_11:
command_on: "curl -X GET http://192.168.1.41/30000/21"
command_off: "curl -X GET http://192.168.1.41/30000/20"
relay_12:
command_on: "curl -X GET http://192.168.1.41/30000/23"
command_off: "curl -X GET http://192.168.1.41/30000/22"
relay_13:
command_on: "curl -X GET http://192.168.1.41/30000/25"
command_off: "curl -X GET http://192.168.1.41/30000/24"
relay_14:
command_on: "curl -X GET http://192.168.1.41/30000/27"
command_off: "curl -X GET http://192.168.1.41/30000/26"
relay_15:
command_on: "curl -X GET http://192.168.1.41/30000/29"
command_off: "curl -X GET http://192.168.1.41/30000/28"
relay_16:
command_on: "curl -X GET http://192.168.1.41/30000/31"
command_off: "curl -X GET http://192.168.1.41/30000/30"
Help is very apreciated !
Greetings,
Cas