hyukang
(Paul Kang)
1
I’m trying to add an automation to turn on 2 lights and one switch when motion is detected
- alias: Turn On Office Motion Detected
trigger:
platform: state
entity_id: binary_sensor.office_sensor_sensor
to: 'on'
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
- service: switch.turn_on
entity_id: switch.office_lights_switch
- service: light.turn_on
entity_id:
- light.bedroom_desk_right
- light.bedroom_desk_left
MarkR
2
I personally use a scene for mine i.e.
alias: Kitchen lights on motion
trigger:
- platform: state
entity_id: binary_sensor.kitchen_sensor
to: 'on'
condition:
- condition: numeric_state
entity_id: sensor.kitchen_luminance
below: 35
action:
- service: homeassistant.turn_on
entity_id: scene.kitchen_lights_on
- service: switch.turn_on
entity_id: switch.cupboards_switch
and the scene
- name: kitchen lights on
entities:
light.kitchen_1:
state: on
brightness: 200
light.kitchen_2:
state: on
brightness: 255
light.kitchen_3:
state: on
brightness: 200
light.kitchen_4:
state: on
brightness: 255
teachingbirds
(Isabella Gross Alström)
3
What is happening or not happening?