P2 motion sensor

I have been trying to set up an automation to turn on my living room light when I walk in to the room. This isn’t working using the following. I am new to this. When I click on preview in the automations setup the light turns on but when I move into the room nothing happens. Any help with this much appreciated!

Hi and welcome @peterrailton
Can you show us a screenshot of the automation?

1 Like

Hi Here you are

Try that, add in if

When dimmer switch is turn off