I did the following to get it to work (mines in win 10 tho’ so don’t use the %R basically just move the template into a condition and the trigger runs every min)
alias: Turn off Alarm
trigger:
platform: time
minutes: ‘/1’
seconds: 0
condition:
you only have one entity_id in your template and it’s static so it will never trigger because the state of an input select only changes if you select something in the input select.
Use a time trigger that checks every minute and use a template condition
that is one way to do it. but triggering the automation every minutes (even though stop by the condition) is something I’m not comfortable with. I feel it is putting unnecessary stress on my little Pi.
i’m not sure what would be the worst, the trick you used using the time sensor actually checks the value_template to see if it’s being triggered every minute as well because the state of the time sensor changes every minute triggering a state_change which in turn triggers a check on the trigger template’s value_template because the state of your time sensor changed and it’s used in value_template
So not sure if using the time sensor with trigger template or a trigger that fires every minute makes a lot of diffrence … If you check the code you can see that template sensors only check the value_template if one of the states of the entities used in the value_template change.
My method doesn’t trigger the automation every minutes. Yes, it checks for the state change every minute but it didn’t actually trigger the automation and have to be stop by an additional condition.
There is no right or wrong. I guess it just a matter of preference.
Hi masterkenobi, thanks for your work. I really appreciate it. However, after implementing your files into my HA I can only see the alarmclock in my dashboard, all the other devices are gone. Which files do I need to modify to fix this? Thanks in advance.
Thanks for the fast reply. Yeah, I figured that I can just edit the groups file and uncomment the default_view line. Now I see entities ony my dashboard that I actually don’t need to see but I guess that can be streamlined later.
I just want to go further the processus to create an alarm on a specific time. I want to get an alarm on weekend day at a specific time only if weather outside is OK to go running / biking or skiing
Do I need to create another alarm or modify this to get a more complex automation script ?