I have a mm wave sensor to turn on 2 lights in the kitchen. I also have a zigbee button to turn on half the lights with 1 click or 2 clicks for all the lights. If the sensor has already turned on the 2 lights, the zigbee button doe not work at all. Im not sure what i need to do to let them co-exist so the button works to turn on and off the lights still.
Please share the properly-formatted automation configuration so we can actually see what you are doing.
1 Like
Could you possibly show us your YAML so we can get a better idea what is happening?
- 3 dots
- edit in yaml
- copy
- paste here using the</> key in the post editor.
How to format code or use the</> key in the post editor.
alias: Turn on 2 kitchen lights with illumination sensor
description: ""
triggers:
- type: occupied
device_id: b4c8a8c186555d9d74dd0fdbabb384b2
entity_id: a52837dee39a2e5cace68917574c0611
domain: binary_sensor
trigger: device
conditions:
- type: is_illuminance
condition: device
device_id: b4c8a8c186555d9d74dd0fdbabb384b2
entity_id: a1db999db6117b12aef7ee89885da997
domain: sensor
below: 20
actions:
- action: light.turn_on
metadata: {}
target:
entity_id:
- light.wiz_rgbw_tunable_0803c4
- light.wiz_rgbw_tunable_08606c
data: {}
mode: single
1 Like
alias: turn on kitchen table lights from button in hallway
description: ""
triggers:
- device_id: 9309025efe9d5f6a3d91325f29abaec2
domain: zha
type: remote_button_short_press
subtype: remote_button_short_press
trigger: device
conditions:
- condition: device
type: is_off
device_id: 787c7ce4d3c2385d05f4bdf3918dff97
entity_id: 7178f2479bcc90e60789fde7f43df448
domain: light
- condition: device
type: is_off
device_id: e0400560b602e2482f19a2e24ee7ec6a
entity_id: 9da67a7d3f8bdb9a6f16a01352d74bd7
domain: light
- condition: device
type: is_off
device_id: a3a85315adf863aaba31601e5c0db050
entity_id: 9d6ff71aab2d42b08dd8a9d7b686e775
domain: light
actions:
- action: light.turn_on
metadata: {}
target:
entity_id:
- light.wiz_rgbw_tunable_07e91c
- light.wiz_rgbw_tunable_0803c4
- light.wiz_rgbw_tunable_07c2b6
data: {}
mode: single
1 Like
light.wiz_rgbw_tunable_0803c4 is turned on in the motion sensing automation.
And while not sure since you use device conditions, but most likely you have a condition that this light must be off since the same light is used in the action part.
So does the light have to be off or not?
The automation for the button has a condition that prevents the action to be executed when kitchen window side is on.
Just disable/remove the last condition


