For example I have an automation to switch on an RGBW led strip which is triggered by a pir using condition between sunset and sunrise and this switches on with brightness 100, and switches of after 30 second of no movement detected. Now if from the home assistant control panel I switch on the LEDs with 255 brightness I don’t want for the automation to kick in if the pir senors is triggered or no movement is detected. . I would only like for the automation to kick in once i switch it off from the Home Assistant Control Panel.
If I get it right, you want to distinguish between turning your light on/off from HA fronted and from an automation.
As you haven’t provided any config, I’ll use what I have - switch.wall_switch_study (it’s an RF wall switch to control my light).
You will need an input_boolean to tell if the switch was turned on manually
input_boolean:
manual:
Then you need a template switch switch.test you’ll use to turn the switch on/off from the frontend
So I was able to control my wall switch using switch.test and the automation.test_wall_switch took into account that input_boolean.manual's state.
Hope it helps.