Is it possible to have a trigger fire only once?
I mean I have a trigger that turns off the lights when I watch a movie on an android tv.
if I turn on the lights manually after a certain amount of time the automation turn them off, how can I solve the problem?
I would like that if the film starts the automation turn off the lights but if I turn them on manually the automation leave them on.
I don’t understand how to set the condition, can anyone help me?
This should only trigger once, or whenever you pause then play again, or switch episode.
You could add:
trigger:
- entity_id: media_player.android_nvidia_soggiorno
to: playing
from: off # or idle or whatever the state is when off.
platform: state
for: '00:00:20'
or
trigger:
- entity_id: media_player.android_nvidia_soggiorno
to: playing
not_from: paused
platform: state
for: '00:00:20'