I created this shell command:
shell_command:
ssh_shutdown_retropie: "/usr/bin/ssh -i /config/ssh/id_ed25519 -o 'StrictHostKeyChecking=no' pi@192.168.0.62 'sudo /sbin/shutdown -P 0'"
evey time i try to run it i get the following error:
2024-06-01 14:02:32.695 ERROR (MainThread) [homeassistant.components.shell_command] Error running command: `/usr/bin/ssh -i /config/ssh/id_ed25519 pi@192.168.0.62 'sudo /sbin/shutdown -P 0'`, return code: 255
NoneType: None
you can see a history of the commands, as well as the fact that the command is working in the terminal in the attached image