ZSE70 Status/State

Greetings,

I’ve got a ZSE70 motion sensor on the corner of my house, that via an automation in Home Assistant it works wonderfully.

As the thing is mounted a bit out of the way, I’ve got it plugged into an outlet on the corner of the house, and the batteries have been removed.

Unfortunately, this outlet is switched. And yes, the switch has already been inadvertently toggled.

Looking at the dashboard in Home Assistant, this is what I have:

The only diagnostic that changes is “Last seen”.

This is prolly more of a Home Assistant question, but how in the world do I trigger an event based upon “last seen” being > 5 minutes?

Thank you.

So I only briefly tested / played with Home Assistant so hopefully someone else can help with that. However, at my house I actually purposely put switches (smart switches) on some of these outlets like this so I could reset devices. Then since they are supposed to stay on, I created scenes to make sure they stay on. If they flipped off, the hub turns them back on automatically.

That might give you a quicker response too if it accidentally gets flipped off.

1 Like

I like OhioYJ’s suggestion of a smart switch to alert you and turn back on.

Just to add to this: keep in mind if you joined it as powered, it likely is participating in your mesh (unless you joined it via LR?). If so, it powering off can create other issues with mesh stability if it is going offline periodically.

As for a Home Assistant solution, you could create an automation to actively monitor it. Here’s something that might work:

Create an automation to run every so often (my example below was every 15 secs just for this test, but you may want every 5 mins, etc - a balance of preference and keeping traffic and processing low).
At each run, send a Zwave Ping to the device. Then test for its status. If dead, send an alert.

Here’s the yaml of an example I just mocked up. Tested here with a ZSE70 on 12v dc. works well!

alias: Probe zwave node status
description: ""
triggers:
  - trigger: time_pattern
    seconds: /15
conditions: []
actions:
  - action: zwave_js.ping
    metadata: {}
    data:
      device_id:
        - <your device id>
  - if:
      - condition: device
        device_id: <your device id>
        domain: zwave_js
        type: node_status
        status: dead
    then:
      - action: notify.persistent_notification
        metadata: {}
        data:
          message: ZSE70 is down!
mode: single

If you prefer the visual editor, it would look like this:

Edit to add: I just re-read your OP and you asked about 5 minutes. if so, change the trigger section to this to be every 5 mins:

triggers:
  - trigger: time_pattern
    minutes: /5

This is brilliant.

I’ll give it a try..

Thank you so much.

1 Like

Other than figuring out what the device ID was, this worked beautifully.

Thank you so much!

2 Likes

That’s awesome. Happy to help! :smiling_face_with_sunglasses: