Trying to set up an automation using ZHA Events to have an automation action happen only when an Aqara Vibration Sensor is tilted. I’ve got the following code for my automation but can’t seem to get it working…any ideas?
alias: Postbox Tilt Automation
description: ""
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: (removed)
command: current_orientation
condition:
- condition: template
value_template: '{{ trigger.event.data.args.Z < 16 }}'
action:
- service: notify.mobile_app_pixel_5
data:
message: You've Got Mail!
mode: single