Hey,
I want to use a “virtual switch” to switch between 2 different IPs for switching a relay using an esp8266
the ip’s are
192.168.178/GPIO/1
192.168.178/GPIO/0
can someone help me, i dont want to use mqtt.
thank you in advance
greeting
thorsten lanting
fabaff
(Fabian Affolter)
2
Take a look at the command_line
switch.
so will this work?
switch:
- platform: command_line
switches:
relay_3:
command_on: 192.168.178.32/gpio/1
command_off: 192.168.178.32/gpio/0
fabaff
(Fabian Affolter)
4
No, the actual command is missing. Check the AREST example in the docs.
i dont understand,
can you make the “script” for me?
fabaff
(Fabian Affolter)
6
The aREST example show what you need
command_on: "/usr/bin/curl -X GET 192.168.178.32/gpio/1"
thanks for helping it works