maxi1134/Home-Assistant-Config

[Automation] Fix purple lights media automation triggering multiple times per movie

maxi1134 opened this issue · 0 comments

This automaton [ https://github.com/maxi1134/Home-Assistant-Config/blob/2116197e32d7613f4824470a252f95322026d140/automations.yaml#L720 ] relies on the templates sensor "active_media_playback_last_timestamp".

That sensor seems to make it so the automation triggers during playback due to a change of state.

I will investigate into using a timestamp order to only affect the latest changed media player.