Zooz ZSE40: How to create motion sensors from the Zooz Multi-sensor

Just wanted to post this in case it’s helpful for someone. I got a bunch of Zooz Multi-sensors ZSE40 as they play well with HA, and have been reliable for me in the past.

I had an issue of figuring out how to get a motion sensor from it in HA since one wasn’t created by default. I used this bit of YAML to create motion sensors based on the value of the burglar sensor. It turns out that a value of 8 indicates motion.

- platform: template
  sensors:
    master_bedroom_motion:
      value_template: "{{ is_state('sensor.master_bedroom_burglar', '8') }}"
      friendly_name: "Master Bedroom Motion"
      device_class: motion
- platform: template
  sensors:
    playroom_motion:
      value_template: "{{ is_state('sensor.playroom_burglar', '8') }}"
      friendly_name: "Playroom Motion"
      device_class: motion
- platform: template
  sensors:
    kids_room_motion:
      value_template: "{{ is_state('sensor.kids_room_burglar', '8') }}"
      friendly_name: "Kid's Room Motion"
      device_class: motion
- platform: template
  sensors:
    foyer_motion:
      value_template: "{{ is_state('sensor.foyer_burglar', '8') }}"
      friendly_name: "Foyer Motion"
      device_class: motion 

Hope this helps!

2 Likes

FYI, there are example templates in the docs. https://www.home-assistant.io/docs/z-wave/entities#burglar-entity

The ozw beta integration also creates these binary sensors automatically.

1 Like

The burglar value varies across manufacturers I thought… so point I was tryign to help with was identify that 8 worked for zooz.

No, it’s part of the Z-Wave standard. This document describes all the notification events and values.

The V1 alarm values are manufacturer specific.

1 Like

Odd… the docs are wrong then that state this for burglar:

Burglar: These may vary between brands

Sorry for the noob question but, do we place these in the CONFIG file? Where would they live?

Thanks for the guidance.

Cheers…

1 Like