Hi there.
I’m bit strugling to make one of my automations work.
I have LED light that switches on if my Aqara motion sensor senses movement and it dark enough. This part works perfectly.
But second part is switching it off. Idea is to switch LED off if there is no motion in the room OR brighnes is above certain treshold. I’ve done it using Conditions but doesn’t seems to work.
Does anyone have any ideas whats wrong?
alias: Livingroom LED light togle on motion and presence
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.motion_sensor_2_occupancy
to: "on"
conditions:
- condition: numeric_state
entity_id: sensor.motion_sensor_2_illuminance
below: 35
actions:
- action: light.turn_on
metadata: {}
data:
kelvin: 4141
brightness_pct: 100
target:
entity_id: light.h6076
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.everything_presence_lite_8fc9d4_occupancy
state: "off"
for:
hours: 0
minutes: 0
seconds: 10
sequence:
- action: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.h6076
- conditions: []
sequence:
- wait_for_trigger:
- trigger: numeric_state
entity_id:
- sensor.motion_sensor_2_illuminance
above: 60
continue_on_timeout: false
- action: tts.edge_tts_say
data:
cache: true
entity_id: media_player.tab1
message: >-
It seems that it's bright enough in the living room. Let me
switch lights off for you.
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- action: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.h6076
mode: single
1 post - 1 participant