I have a Z-Wave based automation that sends text messages to me and/or my wife after our washer/dryer has finished a cycle. Unfortunately, the Z-Wave devices I use for monitoring the appliances trigger the automations any time Z-Wave JS is restarted, which can happen when either Z-Wave JS itself restarts or when all of HA restarts (typically when I install updates).

I’m able to prevent these text messages when all of HA restarts by including this conditional in my automation, keeping it from triggering if HA itself started in the last 2 minutes:

condition:
  - condition: template
    value_template: >-
      {{ as_timestamp(now()) - as_timestamp(states.sensor.uptime.state)  >= 120
      }}

I’d like to do something similar with the Z-Wave JS service itself, so is there any way of determining how long it’s been running? ___