Use Kodi state as a condition?

Hi, I have a Projector setup in my lounge, and have a Hall light just outside the lounge door which is controlled by a PIR (All via HA).

If my Kodi is in Play Mode I would like the hall light to come on Dim, if not in play mode I would like the light to come on bright.

So my question is can I create a Binary Play condition from Kodi?

Regards, Dave

Sure. In your PIR automation add a choose action that is dependant on this condition:

      condition: state
      entity_id: media_player.your_kodi_media_player
      state: 'playing'

If the condition is true ues the light turn_on action to set the brightness to “dim”. Otherwise the default action is to turn on full brightness.

1 Like

Thanks for the reply, I will give it a try

Re Dave