How to target a timer running on a Google nest speaker? (As a new timer ID is generated each time) #646
-
Hello! How do I get around the fact that the timer ID is generated upon creation of the timer itself? Long story short, any created automation (which holds whatever timer_ID I could dig up at the time) will becomes irrelevant the next time a timer is started as the timer_id attribute will be changed into something else. Which leads to:
Do you have any suggestion on how to catch them "dynamically"? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use templates (same can be done with timers): {% set alarms = state_attr("sensor.bedroom_speaker_alarms", "alarms") %}
Alarm ID: {{ "Not set" if not alarms else alarms[0]["alarm_id"] }} |
Beta Was this translation helpful? Give feedback.
You can use templates (same can be done with timers):