I would like to update my two Google Maps Travel Time sensors every 15 minutes between 6am and 10pm and every 30 minutes between 10pm and 6am. This should keep me below the free 5000 calls per month:
((2 updates per hour x 8 hours)+(4 x 16)) x 31 days = 2480 updates per sensor per month
Now I’m struggling to write a compact automation for this. Unfortunately, the “time pattern trigger” does not support ranges (Feature Request Time Pattern needs to support ranges). I could write two automations, with the times as “condition”, but that doesn’t seem elegant to me. I have little experience with template triggers, could something like this work?
No, you can use 2 in a single automation using trigger id’s. You’ll have a very hard time getting this to work properly with a template trigger without using a similar process.