New to Home Assistant and ready to dump Smartthings! Admittedly I’m already over my head.
I can’t seem to get my GE Z-Wave Smart Switch to be turned on when motion is detected (Aeotec Multisensor 6).
I’ve seen a few similar topics but none that work for me.
alias: Turn on Hallway Light
description: Hallway Light ON
trigger:
- platform: state
entity_id:
- binary_sensor.hallway_motion_detector_motion_detection
condition:
- condition: state
entity_id: switch.in_wall_motion_switch_500s
state: "off"
action:
- service: switch.turn_on
data: {}
target:
device_id: 2eac44994bddb98bc954eceb3c79c344
mode: single
I’ve also tried to set the trigger to motion and have yet to go in and modify the device_id. Baby steps.
Try this:
alias: Turn on Hallway Light
description: Hallway Light ON
trigger:
- platform: state
entity_id:
- binary_sensor.hallway_motion_detector_motion_detection
to: 'on'
action:
- service: switch.turn_on
data: {}
target:
device_id: 2eac44994bddb98bc954eceb3c79c344
mode: single
Also, you are better off using the entity_id
for the switch instead of the device_id
.
1 Like
Thank you. I’ve updated and posted the yaml below. It only worked one time so far and it has an issue with always being asleep. Where do I go to modify my paramaters like the screenshot below?
alias: Turn on Hallway Light
description: Hallway Light ON
trigger:
- platform: state
entity_id:
- binary_sensor.hallway_motion_detector
to: "on"
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.in_wall_motion_switch_500s
mode: single
Go to Settings, Devices, Z-Wave.
lick on the particular device in the list, then click on 'configure.
Thanks Dave for your help. After changing the PIR sensor to 10 seconds it is working!