ID
Size: a a a
ID
VP
VP
VP
ID
- alias: Turn on Bathroom light when there is movement
trigger:
platform: state
entity_id: binary_sensor.bathroom_motion
to: 'on'
action:
service: light.turn_on
entity_id: light.bathroom_lamp
- alias: Turn off Bathroom light 5 minutes after last movement
trigger:
platform: state
entity_id: binary_sensor.bathroom_motion
to: 'off'
for:
minutes: 5
action:
service: light.turn_off
entity_id: light.bathroom_lamp
VP
ID
VP
VP
ID
- alias: nightlight in bathroom
trigger:
- platform: time
at: '01:00'
condition:
- condition: time
after: '01:00'
before: '06:00'
action:
- data:
brightness: 10
kelvin: 4000
entity_id: light.bathroom_lamp
service: light.turn_on
VP
IB
VP
- alias: nightlight in bathroom
trigger:
- platform: time
at: '01:00'
condition:
- condition: time
after: '01:00'
before: '06:00'
action:
- data:
brightness: 10
kelvin: 4000
entity_id: light.bathroom_lamp
service: light.turn_on
VP
VP
IB
VP
VP
VP
IB