I had a lot of problems with command line switch! it used to give me command failed!!I tried many commands but had no chance!until i added “&” at the end of the command.then the button works and gives me no errors but it does nothing it just turns on and off but it seems like it doesn’t do the command.
Example:
omg it worked!!! thank you sooooo much !thank you !i can’t say that enough!!! if it doesn’t bother you can you explain to me why this works on HA but the other command doesn’t ?
Depending on how you’ve set up HA the virtual environment may not have the correct environment variables set. There was a problem with the systemd service so I suggest to double check your autostart routine. (see https://home-assistant.io/docs/autostart/)