i cant work out how to change my existing confaiguration.yaml to support the new command line usage? anyones help would be very much appreciated, have tried all sorts but cant work it out!
This is my current syntax:
- platform: command_line
scan_interval: 40
switches:
garage_down_test:
command_on: echo -e " \02\00" | nc 192.168.1.124 17494
command_off: echo -e "!\02\00" | nc 192.168.1.124 17494
# command_state: echo -e "\x24" | nc -q 1 192.168.1.124 17494
friendly_name: Test command over tcp
in1out1:
command_on: echo -e -n "1B1." | nc 192.168.1.21 4001
in1out2:
command_on: echo -e -n "1B2." | nc 192.168.1.21 4001
friendly_name: Lounge TV SKY Q
in1out3:
command_on: echo -e -n "1B3." | nc 192.168.1.21 4001
in1out4:
command_on: echo -e -n "1B4." | nc 192.168.1.21 4001
in1out5:
command_on: echo -e -n "1B5." | nc 192.168.1.21 4001
in1out6:
command_on: echo -e -n "1B6." | nc 192.168.1.21 4001
in1out7:
command_on: echo -e -n "1B7." | nc 192.168.1.21 4001
in1out8:
command_on: echo -e -n "1B8." | nc 192.168.1.21 4001
in2out1:
command_on: echo -e -n "2B1." | nc 192.168.1.21 4001
in2out2:
command_on: echo -e -n "2B2." | nc 192.168.1.21 4001
friendly_name: Lounge TV SKY Q MINI
in2out3:
command_on: echo -e -n "2B3." | nc 192.168.1.21 4001
in2out4:
command_on: echo -e -n "2B4." | nc 192.168.1.21 4001
in2out5:
command_on: echo -e -n "2B5." | nc 192.168.1.21 4001
in2out6:
command_on: echo -e -n "2B6." | nc 192.168.1.21 4001
in2out7:
command_on: echo -e -n "2B7." | nc 192.168.1.21 4001
in2out8:
command_on: echo -e -n "2B8." | nc 192.168.1.21 4001
in3out1:
command_on: echo -e -n "3B1." | nc 192.168.1.21 4001
in3out2:
command_on: echo -e -n "3B2." | nc 192.168.1.21 4001
friendly_name: Lounge TV CCTV
in3out3:
command_on: echo -e -n "3B3." | nc 192.168.1.21 4001
in3out4:
command_on: echo -e -n "3B4." | nc 192.168.1.21 4001
in3out5:
command_on: echo -e -n "3B5." | nc 192.168.1.21 4001
in3out6:
command_on: echo -e -n "3B6." | nc 192.168.1.21 4001
in3out7:
command_on: echo -e -n "3B7." | nc 192.168.1.21 4001
in3out8:
command_on: echo -e -n "3B8." | nc 192.168.1.21 4001
in4out1:
command_on: echo -e -n "4B1." | nc 192.168.1.21 4001
in4out2:
command_on: echo -e -n "4B2." | nc 192.168.1.21 4001
friendly_name: Lounge TV SHIELD
in4out3:
command_on: echo -e -n "4B3." | nc 192.168.1.21 4001
in4out4:
command_on: echo -e -n "4B4." | nc 192.168.1.21 4001
in4out5:
command_on: echo -e -n "4B5." | nc 192.168.1.21 4001
in4out6:
command_on: echo -e -n "4B6." | nc 192.168.1.21 4001
in4out7:
command_on: echo -e -n "4B7." | nc 192.168.1.21 4001
in4out8:
command_on: echo -e -n "4B8." | nc 192.168.1.21 4001
in5out1:
command_on: echo -e -n "5B1." | nc 192.168.1.21 4001
in5out2:
command_on: echo -e -n "5B2." | nc 192.168.1.21 4001
friendly_name: Lounge TV PLAYSTATION
in5out3:
command_on: echo -e -n "5B3." | nc 192.168.1.21 4001
in5out4:
command_on: echo -e -n "5B4." | nc 192.168.1.21 4001
in5out5:
command_on: echo -e -n "5B5." | nc 192.168.1.21 4001
in5out6:
command_on: echo -e -n "5B6." | nc 192.168.1.21 4001
in5out7:
command_on: echo -e -n "5B7." | nc 192.168.1.21 4001
in5out8:
command_on: echo -e -n "5B8." | nc 192.168.1.21 4001
in6out1:
command_on: echo -e -n "6B1." | nc 192.168.1.21 4001
in6out2:
command_on: echo -e -n "6B2." | nc 192.168.1.21 4001
in6out3:
command_on: echo -e -n "6B3." | nc 192.168.1.21 4001
in6out4:
command_on: echo -e -n "6B4." | nc 192.168.1.21 4001
in6out5:
command_on: echo -e -n "6B5." | nc 192.168.1.21 4001
in6out6:
command_on: echo -e -n "6B6." | nc 192.168.1.21 4001
in6out7:
command_on: echo -e -n "6B7." | nc 192.168.1.21 4001
in6out8:
command_on: echo -e -n "6B8." | nc 192.168.1.21 4001
in7out1:
command_on: echo -e -n "7B1." | nc 192.168.1.21 4001
in7out2:
command_on: echo -e -n "7B2." | nc 192.168.1.21 4001
in7out3:
command_on: echo -e -n "7B3." | nc 192.168.1.21 4001
in7out4:
command_on: echo -e -n "7B4." | nc 192.168.1.21 4001
in7out5:
command_on: echo -e -n "7B5." | nc 192.168.1.21 4001
in7out6:
command_on: echo -e -n "7B6." | nc 192.168.1.21 4001
in7out7:
command_on: echo -e -n "7B7." | nc 192.168.1.21 4001
in7out8:
command_on: echo -e -n "7B8." | nc 192.168.1.21 4001
in8out1:
command_on: echo -e -n "8B1." | nc 192.168.1.21 4001
in8out2:
command_on: echo -e -n "8B2." | nc 192.168.1.21 4001
in8out3:
command_on: echo -e -n "8B3." | nc 192.168.1.21 4001
in8out4:
command_on: echo -e -n "8B4." | nc 192.168.1.21 4001
in8out5:
command_on: echo -e -n "8B5." | nc 192.168.1.21 4001
in8out6:
command_on: echo -e -n "8B6." | nc 192.168.1.21 4001
in8out7:
command_on: echo -e -n "8B7." | nc 192.168.1.21 4001
in8out8:
command_on: echo -e -n "8B8." | nc 192.168.1.21 4001
tabletapphass:
command_on: "/usr/bin/curl -X GET http://192.168.1.203:8765/?hass"
tabletappcctv:
command_on: "/usr/bin/curl -X GET http://192.168.1.203:8765/?cctv"
tabletappwake:
command_on: "/usr/bin/curl -X GET http://192.168.1.203:8765/?wake"
tabletappunlock:
command_on: "/usr/bin/curl -X GET http://192.168.1.203:8765/?unlock"
heatrecovery:
command_on: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?DOA14=10"
command_off: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?DOI14"
command_state: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?"
value_template: '{{ value | regex_match ("^(......)(...............)([1])") }}'
friendly_name: Heat Recovery Boost
heatrecoveryboost:
command_on: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?DOA14"
command_off: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?DOI14"
command_state: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?"
value_template: '{{ value | regex_match ("^(......)(...............)([1])") }}'
friendly_name: Heat Recovery Boost NEW
heatrecoverysw:
command_on: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?DOA15"
command_off: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?DOI15"
command_state: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?"
value_template: '{{ value | regex_match ("^(......)(................)([1])") }}'
friendly_name: Heat Recovery Power
garage_lights:
command_on: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?DOA1"
command_off: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?DOI1"
command_state: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?"
value_template: '{{ value | regex_match ("^(......)(.)([1])") }}'
friendly_name: Garage Internal Lights
gateway_lights:
command_on: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?DOA4"
command_off: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?DOI4"
command_state: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?"
value_template: '{{ value | regex_match ("^(......)(....)([1])") }}'
friendly_name: Entrance Gates Lights
garage_downlights:
command_on: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?DOA2"
command_off: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?DOI2"
command_state: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?"
value_template: '{{ value | regex_match ("^(......)(..)([1])") }}'
friendly_name: Garage Downlights
pole_light:
command_on: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?DOA5"
command_off: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?DOI5"
command_state: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?"
value_template: '{{ value | regex_match ("^(......)(.....)([1])") }}'
friendly_name: Telegraph Pole Light
sprinklers:
command_on: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?DOA6"
command_off: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?DOI6"
command_state: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?"
value_template: '{{ value | regex_match ("^(......)(......)([1])") }}'
friendly_name: Sprinklers
porch_lights:
command_on: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?DOA9"
command_off: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?DOI9"
command_state: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?"
value_template: '{{ value | regex_match ("^(......)(..........)([1])") }}'
friendly_name: Porch Lights
landing:
command_on: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=8"
command_off: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=8"
command_state: "1"
friendly_name: Landing
hall:
command_on: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=11"
command_off: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=11"
command_state: "1"
friendly_name: Hall
study:
command_on: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=10"
command_off: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=10"
command_state: "1"
friendly_name: Study
floodlight:
command_on: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=16"
command_off: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=16"
command_state: "1"
friendly_name: Floodlight
dining_pendant:
command_on: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=5"
command_off: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=5"
command_state: "1"
friendly_name: Dining Pendant
dining_down:
command_on: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=2"
command_off: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=2"
command_state: "1"
friendly_name: Dining Downlights
kitchen_bar:
command_on: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=4"
command_off: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=4"
command_state: "1"
friendly_name: Kitchen Bar Lights
kitchen_underunits:
command_on: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=3"
command_off: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=3"
command_state: "1"
friendly_name: Kitchen Under Units
kitchen_down:
command_on: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=7"
command_off: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=7"
command_state: "1"
friendly_name: Kitchen Downlights
lounge_lamps:
command_on: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=6"
command_off: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=6"
command_state: "1"
friendly_name: Lounge Lamps
lounge_ceiling:
command_on: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=1"
command_off: "/usr/bin/curl -X GET http://192.168.1.123/io.cgi?relay=1"
command_state: "1"
front_gates:
command_on: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?DOA7=2"
command_off: ""
command_state: "1"
friendly_name: Driveway Gates
garage_door:
command_on: "/usr/bin/curl -X GET http://192.168.1.124/io.cgi?DOA3=2"
command_off: ""
command_state: "1"
friendly_name: Garage Door
cctv_tv_popup:
command_on: "/usr/bin/curl -X GET http://192.168.1.52:5443/index.html?cctvpopenable"
command_off: "/usr/bin/curl -X GET http://192.168.1.52:5443/index.html?cctvpopdisable"
command_state: ""
friendly_name: CCTV TV PopUp
loungetv_skyqmain:
command_on: "/usr/bin/curl -X GET http://192.168.1.52:5443/index.html?loungetv_skyqmain"
command_off: ""
command_state: ""
friendly_name: Sky Q Main
loungetv_skyqmini:
command_on: "/usr/bin/curl -X GET http://192.168.1.52:5443/index.html?loungetv_skyqmini"
command_off: ""
command_state: ""
friendly_name: Sky Q Mini
loungetv_cctv:
command_on: "/usr/bin/curl -X GET http://192.168.1.52:5443/index.html?loungetv_cctv"
command_off: ""
command_state: ""
friendly_name: CCTV
loungetv_nvidia:
command_on: "/usr/bin/curl -X GET http://192.168.1.52:5443/index.html?loungetv_nvidia"
command_off: ""
command_state: ""
friendly_name: Nvidia
loungetv_ps4:
command_on: "/usr/bin/curl -X GET http://192.168.1.52:5443/index.html?loungetv_ps4"
command_off: ""
command_state: ""
friendly_name: PS4
loungetv_monpc:
command_on: "/usr/bin/curl -X GET http://192.168.1.52:5443/index.html?loungetv_monpc"
command_off: ""
command_state: ""
friendly_name: Monitoring PC
bedroomtv_105:
command_on: "/usr/bin/curl -X GET http://192.168.1.52:5443/index.html?BedroomTV_channel5"
command_off: ""
command_state: ""
friendly_name: Bedroom TV Channel 5
bedroomtv_cbeebies:
command_on: "/usr/bin/curl -X GET http://192.168.1.52:5443/index.html?BedroomTV_cbeebies"
command_off: ""
command_state: ""
friendly_name: Bedroom TV CBeebies