I don’t know if it happened after an upgrade (I’m still running HASS 0.27.2 btw) but I notice that when I change the volume of Kodi either using a CEC remote (so via the tv) or via Yatse, HASS thinks playback is paused and resumed (playing), which triggers my dimmed lights automation:
22:02Media player paused/stopped has been triggered
22:02Media player playing has been triggered
22:02Media player paused/stopped has been triggered
22:02Media player playing has been triggered
22:02Media player playing has been triggered
22:02Media player paused/stopped has been triggered
FYI this is the automation part:
- alias: "Media player paused/stopped"
trigger:
- platform: state
entity_id: media_player.kodi
from: 'playing'
condition:
- condition: state
entity_id: light.hue_color_1_voor
state: 'on'
action:
service: scene.turn_on
entity_id: scene.woonkamer_aftermoviedim
- alias: "Media player playing"
trigger:
- platform: state
entity_id: media_player.kodi
to: 'playing'
condition:
- condition: state
entity_id: light.hue_color_1_voor
state: 'on'
action:
service: scene.turn_on
entity_id: scene.woonkamer_Moviedim
Is this a known bug?