I’m running HA (latest version) on a Raspberry Pi 4. I want to be able to turn off the red status light at night and have found the following shell command;
echo 0 | sudo tee /sys/class/leds/led1/brightness
This works fine for all of my other Pi’s, but I need to know how to issue that command from HA.