So i’ve got a motion sensor and a philips hue lightbulb
In daytime If motion is detected i want light on else off…
in evening if motion is detected i want light brightness on 200/250 else brightness 100/150
What i’ve got so far is turning it off and on
alias: Turn lights on/off with motion
initial_state: true
mode: single
trigger:
- platform: state
entity_id: binary_sensor.lumi
to:
- 'on'
- 'off'
action:
- service_template: "light.turn_{{ trigger.to_state.state }}"
entity_id: light.landing_light_level_light_color_on_off