Command Line Switch for TV - Command Failed

@Grepen
In the beginning I had the same problems as you. The steps and additional options you need are as follow:

  1. Create a folder in your config directory called something like “ssh”
  2. Copy your private keyfile to the newly created folder
  3. SSH into your hassio server and chown the keyfile so only that user has access to it (otherwise your keyfile will be ignored because all users are able to read your private key). Chown command: chown -R hassio:hassio /config/ssh/id_rsa
  4. Lastly change your ssh commands to: command_on: "ssh -i /config/ssh/id_rsa -o StrictHostKeyChecking=no [email protected] '*your command to execute*"

These steps helped me to successfully execute my python scripts on a raspberry pi. Hope it is usefull to you guys.

4 Likes