Hi guys,
Really happy to join this community. I have set up a HA first on PI3 and now on NUC using KVM. Everything works fine. I want to set up a PSA controller, here also all good.
Except one thing which makes me cray : switch are simply not recognized.
I even try a very simple configuration.yaml:
default_config:
switch:
- platform: command_line
switches:
test_switch:
command_on: "echo 'on' > /tmp/test_switch.txt"
command_off: "echo 'off' > /tmp/test_switch.txt"
command_state: "cat /tmp/test_switch.txt"
value_template: '{{ value == "on" }}'
friendly_name: "Test Switch"
I then restart HA (system restart) and when I look for switch.test_switch
in Developer Tools → States…nothing!
Any help is more than welcome.
Thanks