Aeotec Door/Window Sensor 7 Pro Entities and Automations Help

Can someone help me understand the Aeotec 7 Pro door/window sensor? I was able to get it set up in Z-wave JS just fine. The cards on my dashboard show the appropriate state changes between open and closed but I cannot figure out to get it working in an automation.
I just want a notification sent to the phone (other notifications work so I know it’s just this automation). I included several of the entities that now show up and several possible state changes (“closed to open”, “off to on”, and “23 to 22”). I also tried making a new entity in config.yaml as suggested by this post.
What are the appropriate entities and state changes to let me know what’s going on? The other posts I’ve found reference different versions of this sensor and are from a year ago or more.

Other posts are here and here.

The current configuration is:

binary_sensor:
  - platform: template
    sensors:
     door_open:
        friendly_name: 'Door Opened'
        value_template: '{{ is_state("binary_sensor.door_window_sensor_7_pro_access_control_window_door_is_open", "22") }}'
        device_class: door
        entity_id:  sensor.door_window_sensor_access_control
    
     door_close:
        friendly_name: 'Door Status'
        value_template: '{{ is_state("binary_sensor.door_window_sensor_7_pro_access_control_window_door_is_open", "23") }}'
        device_class: door
        entity_id:  sensor.door_window_sensor_access_control

The current automation is:

- id: '1657462218898'
  alias: GarageDoorNotification
  description: ''
  trigger:
  - platform: state
    entity_id:
    - binary_sensor.door_window_sensor_7_pro_access_control_window_door_is_open
    - binary_sensor.door_window_sensor_7_pro_door_window
    - sensor.door_window_sensor_7_pro_access_control_door_state
    from: 'Off'
    to: 'On'
  - platform: state
    entity_id:
    - binary_sensor.door_window_sensor_7_pro_access_control_window_door_is_open
    - binary_sensor.door_window_sensor_7_pro_door_window
    - sensor.door_window_sensor_7_pro_access_control_door_state
    from: Closed
    to: Open
  - platform: state
    entity_id:
    - binary_sensor.door_window_sensor_7_pro_access_control_window_door_is_open
    - binary_sensor.door_window_sensor_7_pro_door_window
    - sensor.door_window_sensor_7_pro_access_control_door_state
    from: 23
    to: 22
  condition: []
  action:
  - service: notify.mobile_app_android
    data:
      message: The garage door has been opened!
      title: Garage Door Status
  mode: single

Depending on how you configured the node on the Z-Wave side, the binary_sensor.*_is_open is what you are looking for.

Thank you for the response. Even when that is the only entity, it does not trigger the notification. What could be the issue if the entity is correct and the action is scripted the same as for other working notifications?

Use the Developer Tools to inspect the actual state strings for the entity. It’s very likely on and off (all lowercase).

1 Like

Don’t use capital letters

1 Like

This was it! Simple error, of course.