Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
integrate home assistant by http url command sample
#1
here is a http url command integrate with home assistant config demo sample for button5 (thanks for our customer supplied the config code)

- platform: command_line
  switches:
    poolbtn5:
        command_on: "curl -k --silent 'http://192.168.1.136/sw_ctl.cgi?Relay05=ON&postpwd=12345'"
        command_off: "curl -k --silent 'http://192.168.1.136/sw_ctl.cgi?Relay05=OFF&postpwd=12345'"
        command_state: curl -k --silent 'http://192.168.1.136/sw_ctl.cgi?RelayFF=RD&postpwd=12345' | grep -oP "(?<=btn5)(.*)(?=btn6)"
        value_template: '{{"ON" in value}}'
        friendly_name: poolbtn5
Reply


Messages In This Thread
integrate home assistant by http url command sample - by admin - 12-08-2021, 08:13 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)