Hi all,
I’m hoping someone can help…
I’ve previously had working a shell command that SSH’ed from the HA server into a Unifi AP to change the LED colour:
ssh -i /config/.ssh/id_rsa -o StrictHostKeyChecking=no [email protected] "echo 1 >/proc/gpio/led_pattern && sed -i '/mgmt.led_pattern_override/d' /etc/persistent/cfg/mgmt && echo mgmt.led_pattern_override=1 >> /etc/persistent/cfg/mgmt"
This worked fine for ages, then the other day I noticed the LED was no longer changing colour. I’m not sure how long it’s not been working or what may have caused it. I know I had a nightmare getting this to work originally. I’ve searched the forums and nothing seems to get it working again.
If I open a web terminal onto HA I can manually run the SSH command the Unifi LED changes colour, but if I call the shell command from within HA it doesn’t work and I get an error in the HA log (return code: 255, NoneType: None)
I’ve recreated the RSA keys, I have them in the following directory: /config/.ssh
Like I said, I can manually run the SSH command from the terminal window on HA (I assume it’s a different docker container to the the main HA one), so SSH/keys are working ok.
Anyone got any ideas?
Thanks,
J.