hi i trying to get Home Assistant to run RSYNC and run a switch
but i cant find it on google only about backing up #Run Pump Every 1 Hour
0 */1 * * * switch.h_sauna_pump #Turn Pump Off Every 1 Hour 15 Min
15 */1 * * * switch.h_sauna_pump
switch.h_sauna_pump #Run Pump Every 4 Hour
0 */4 * * * switch.h_sauna_pump #Turn Pump Off Every 4 Hour 15 Min
15 */4 * * * switch.h_sauna_pump
switch.h_sauna_pump
I believe you have to specify the full, complete, absolute path to rsync.
A common method to do this in *NIX scripting is to define a symbol:
RSYNC=$( which rsync )
Or just use
i finally figured it out from a 2015 post kept going through google
i run a pump every hour
and before Home assistant… i ran Raspberry Pi running crontab as you see above
and it would run a Py program i wrote to toggle a Relay on and off attached to the pi…
but now i just got ahold of these wifi Plugs so i trying to see if i can eliminate the Pi for for a 10 dollar wifi plug from Tplink
to comment on thedoesnt read docs… there was no specific
Crontab alternative
so i just kept going through and it was like a 2015 post
you do
time_patern
Time: /1
and then i set the switch _on
delay 15m
and then i set the switch _off
but no there was no DOC that said Cron alternative…
as i googled that too…
but i got it working apparently its automation not Cron
cuz all i wanted to do was
replace my python code with just .switch
so my automation is 1 Line of code not multiples as mine was easier to do
and i appreciate the input…
now to figure out why remote_rpi_gpio doesnt work anymore