Hi experts
I created a bunch of shell_commands
shell_command:
dm7020_toggle: "curl 'http://dm7020hd/web/powerstate?newstate=0'"
dm7020_standby: "curl 'http://dm7020hd/web/powerstate?newstate=1'"
dm7020_reboot: "curl 'http://dm7020hd/web/powerstate?newstate=2'"
dm7020_restart_gui: "curl 'http://dm7020hd/web/powerstate?newstate=3'"
dm7020_go2idle: "curl 'http://dm7020hd/web/powerstate?newstate=4'"
dm7020_awake: "curl 'http://dm7020hd/web/powerstate?newstate=5'"
and made an automation
alias: Dreambox neu starten
description: ""
trigger:
- platform: time
at: "05:00:00"
- platform: state
entity_id:
- input_boolean.tester
to: "on"
from: "off"
condition: []
action:
- service: shell_command.dm7020_restart_gui
data: {}
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- service: shell_command.dm7020_go2idle
data: {}
mode: single
…but nothing happens
When I use the URLs in a browser, they do work.
Where ist the failure
browetd
(Browet Didier)
2
I think curl command is not available in Home Assistant container… Here is a useful post that can help you achieve what you are looking for:
I don’t think so.
I have another curl
command that works.
My full shell_command
configuration looks like this:
shell_command:
cerasmarter_reboot: "curl 'http://192.168.178.139/reboot'"
dm7020_toggle: "curl 'http://dm7020hd/web/powerstate?newstate=0'"
dm7020_standby: "curl 'http://dm7020hd/web/powerstate?newstate=1'"
dm7020_reboot: "curl 'http://dm7020hd/web/powerstate?newstate=2'"
dm7020_restart_gui: "curl 'http://dm7020hd/web/powerstate?newstate=3'"
dm7020_go2idle: "curl 'http://dm7020hd/web/powerstate?newstate=4'"
dm7020_awake: "curl 'http://dm7020hd/web/powerstate?newstate=5'"
and the first entry cerasmarter_reboot
works quiet fine.
So I think the problem can’t be a missing curl
command
nickrout
(Nick Rout)
4
Does dm7020hd resolve in the HA container?
1 Like
nickrout
(Nick Rout)
6
Use the ip address in the command, or fix dns.
1 Like