Hi all,
I have the following two entries in my shell.yaml file:
unifi_outside_ap_led_off: >-
ssh -i /config/.ssh/id_rsa -o StrictHostKeyChecking=no [email protected] echo 0 >/proc/gpio/led_pattern
&& sed -i '/mgmt.led_pattern_override/d' /etc/persistent/cfg/mgmt
&& echo mgmt.led_pattern_override=0 >> /etc/persistent/cfg/mgmt
unifi_outside_ap_led_on: >-
ssh -i /config/.ssh/id_rsa -o StrictHostKeyChecking=no [email protected] echo 0 >/proc/gpio/led_pattern
&& sed -i '/mgmt.led_pattern_override/d' /etc/persistent/cfg/mgmt
&& echo mgmt.led_pattern_override=0 >> /etc/persistent/cfg/mgmt
As you can see they are both identical (except for the name of the commands).
Can someone please tell me why when I run them via the Developer page the first shell command runs ok but the second on doesn’t and produces the following error:
2021-11-23 17:39:42 ERROR (MainThread) [homeassistant.components.shell_command] Error running command: `ssh -i /config/.ssh/id_rsa -o StrictHostKeyChecking=no [email protected] echo 0 >/proc/gpio/led_pattern
&& sed -i '/mgmt.led_pattern_override/d' /etc/persistent/cfg/mgmt
&& echo mgmt.led_pattern_override=0 >> /etc/persistent/cfg/mgmt`, return code: 2
NoneType: None
I have tried swapping their order and retyping the one that’s erroring.
I’m stumped!!