Shell command and restful command errors

hello

I have been running my shell and restful command but after updating to 0.92 I keep on getting this error and none of them work anymore.

Error running command: `curl "http://192.168.0.60:8126/container/home-assistant/restart"`, return code: -11

NoneType: None

Error running command: `ssh [email protected] 'pm2 restart MagicMirror'`, return code: -11

NoneType: None

my shell command is:

restart_mm: "ssh [email protected] 'pm2 restart MagicMirror'"

my restful command is:

rest_command:
  hassrestart_request:
    url: 'http://192.168.0.60:8126/container/home-assistant/restart'

I have put these in a script to execute them. This is what is in my script:

  restart_hass:
    alias: Restart Home Assistant
    sequence:
      - service: rest_command.hassrestart_request


  restart_mirror:
    alias: Restart Magic Mirror
    sequence:
      - service: shell_command.restart_mm

I have given all users the permissions to read and write by doing : sudo chmod 777 /srv/docker/homeassistant/scripts.yaml and sudo chmod 777 /srv/docker/homeassistant

Can someone please help? Thanks.

Anyone? @Tinkerer

You wait not even 24 hours and then ping me because you’re impatient?

Please do not do that

If I help people, it’s because I choose to. Being rude and demanding does not encourage me to choose to help you.

I don’t know if this is related, but I use a restful Sensor to retrieve data from my UVR1611 and since 0.92.x it is not working any more. Additionally someone already raised an issue with the restful sensor on Git .

UPDATE: After some more debugging, I found out that the issue was with the custom component i use. After the fix everything works again.

1 Like