Hello!
I’m trying to create a switch with this code:
command_line:
- switch:
name: fan_on
command_on: "ssh -i /root/.ssh/id_ed25519 -o StrictHostKeyChecking=no -q [email protected] sudo ./librpitx/src/rpitx/sendiq -s 250000 -f 433.9200e6 -t u8 -i ./librpitx/src/rpitx/VentHG-LlumOnOff.iq"
command_off: off
When I use the follow code on the HA Terminal, works perfect:
ssh -i /root/.ssh/id_ed25519 -o StrictHostKeyChecking=no -q [email protected] sudo ./librpitx/src/rpitx/sendiq -s 250000 -f 433.9200e6 -t u8 -i ./librpitx/src/rpitx/VentHG-LlumOnOff.iq
But when I use the switch, nothing happen.
What I’m doing wrong?
Thanks for your help!