Hi all, I am trying to trigger a pyscript script every 30secs with @time_trigger(). I was able to trigger it every minute with:
@time_trigger("startup", "cron(*/1 * * * *)")
but the cron format unfortunately does not allow to specify seconds. Is there a way to specify every 30 secs with the datetime format? I can’t figure it out based on the docs here.
Thanks!
I actually found a solution (or workaround?), I just changed the @time_trigger into an @service and then used a regular automation in HA with a time pattern trigger of 30secs
platform: time_pattern
seconds: "30"
that then triggers the service. If anyone knows what datetimestring to use to do the same with @time_trigger(“datetimstring”), I’d be still curious since I like things to be as independent as possible.