Kodi volume change triggers Paused/Playing automation

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?

1 Like

Nevermind this last bit!
This bit is solved!
Since recently you need to use USERNAME instead of USER.

I’ll check if maybe the volume changing is also fixed.

Ok this issue is not solved yet.
To recap: When changing volume of Kodi (either through Yatse or CEC remote) HASS registers a media player playing or paused/stopped event.
Thus automations for that kick off…while in reality I only changed the volume!

I just started noticing this too. Anyone know what’s going on?