Automation to Turn on a light at a different brightness if Kodi is playing

Hi

I have a PIR in the my hall, and the hall light just outside the lounge door. I have a projector in the lounge. If some leave the lounge I dont want the light to wash out the screen.

So if my Kodi is “PLAYING” “media_player.libreelecpi4x” I want the light to come on Dim.

But if my Kodi is “NOT PLAYING” “media_player.libreelecpi4x” I want the light to come on Bright.

Do I need to create 2 Automation’s as there is no “IF” statement and only one Action

Regards Dave

USe the choose action (the condition being the state of your media player).

Thanks, did not know that existed, will give it a go

Many thanks for the reply