Looking for recommendation and example config for Z-Wave motion sensor

I found that some more sensors / binary sensors were created whose meaning are not always clear, but there is still a binary sensor that turns active on motion so this:

      - platform: state
        entity_id: binary_sensor.bedroom_motion
        to: 'on'

will still work. Look in the Zwave JS integration for your device and see which one binary sensor goes active on motion.

1 Like

Thanks for the info, @nanobra1n! Previously the automation looked like this:

  - platform: state
    entity_id: binary_sensor.stairway_motion
    to: '8'

Where would I find the information on the value to check that indicates motion is detected? For example, how I would I know to check for ‘on’ vs ‘detected’ vs ‘8’ or something else?

hmm, binary sensors should only have 2 states, on or off. I used to have door sensor entities that would give a value of ‘22’ when opened and I built binary template sensors from that. Either way go to Configuration >> Integrations >> Z-wave JS >> Devices, select your motion sensor and see what entities it exposes, I bet it has a binary sensor that reacts to motion