DaveTiff
(Dave T)
1
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
tom_l
2
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
DaveTiff
(Dave T)
3
Thanks for the reply, I will give it a try
Re Dave