Lucas_Rey
(Lucas Rey)
October 25, 2018, 5:12pm
1
Hello community,
I’m trying to run a script or simply a command every 5 minutes, for that purpose I created an automation:
- alias: ping_gw
trigger:
platform: time
minutes: '/5'
seconds: 00
action:
service: shell_command.start_ping
Then in configuration.yaml I definied the shell_command:
shell_command:
start_ping: "pkill ping ; ping 192.168.2.45 > /dev/null &"
But it doesn’t work, could someone advise?
Thank you
Lucas
Thanks for a reply! My problem was a missing “/” before the number, I found the solution in the documentation. Btw I think that there is a bit wrong description in the documentation. Currently you don’t need to put “*” for other fields in the UI. The documentation still says you must add it.
tom_l
January 4, 2021, 2:45am
6
You did not paste your code so nobody could have guessed that. All I had to go on was the error in the original post.
Then please do your bit as a community member and fix it:
I have seen a number of people complain about the documentation at https://home-assistant.io/ (HA site). Great news! Everyone can edit it and provide improvements to the documentation. Next thing I likely see is that people don’t know how to create a pull request on Github. Great news! Here is a tutorial on how to do it.
First go to https://github.com/ and sign up for an account. Its quick free and easy. If there is a need for a tutorial for this too, please post that feedback below. O…
1 Like