I just purchased an OUVOPO motion sensor (ZigBee). I got it properly integrated into HA, and it appears to detect motion (according to dashboard stats). When I add an automation (existing outlet switch that currently works with other automations), it does not work.
Is there anything I am missing in the automation?
The YAML setup looks like so:
Existing automation with the outlet switch: (works via a Aeotec Walmote quad button pad):
alias: B4 Toggle Light Switch
description: ""
trigger:
- platform: device
device_id: bbd4c2632f584da7d62c2e33e776f396
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "004"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 004
value: 0
condition: []
action:
- service: switch.toggle
data: {}
target:
entity_id: switch.sonoff_s31_lite_zb_switch
mode: single
New automation with motion sensor (does not work, tried commented out part first, even disabled prev automation to ensure it isn’t conflicting):
alias: Basement Office Motion ON
description: ""
trigger:
- type: motion
platform: device
device_id: ec6bbada39dab7382fd17d09018a9dc2
entity_id: c2ae1f9537915fe68e24f909feafc281
domain: binary_sensor
condition: []
#action:
# - service: switch.turn_on
# data: {}
# target:
# device_id: fbbcfd25b1de2b8bdfac0f915b95e26e
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.sonoff_s31_lite_zb_switch
mode: single