I have a Philips Hue Motion Sensor set up under my bed so it triggers when I get out of bed.
Between 22.00 and 8.00, if it triggers, it’ll light my bedroom light (I used to use it with hallway light but it burned out and haven’t been replaced yet) at 25% and will automatically turn off after 3 minutes.
It’s super handy when going to the bathroom in the night, especially during the dark winter nights.
NOTE
The motion sensor needs to be turned on in Hue app for it to trigger in Home Assistant
alias: Motion sensor bedroom light on
description: ""
triggers:
- type: motion
device_id: e63a0f80ad5cd8b1aa1bcee1a5c3eaf1
entity_id: e13f8eed0fc185e4ddaccc6f1e95cd3c
domain: binary_sensor
trigger: device
conditions:
- condition: time
after: "22:00:00"
before: "08:00:00"
weekday:
- sat
- fri
- thu
- wed
- tue
- mon
- sun
actions:
- action: light.turn_on
metadata: {}
data:
brightness_pct: 20
target:
entity_id: light.hue_ambiance_lamp_3
- delay:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
- action: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.bedroom
mode: single