[Project] Device Health Status [Tuya, Aqara, Ikea, Sonoff, Lidl and others]

Thanks, as ever, for your outstanding support across the board :blush:

using this rule .. anyone else using alternate rules ( dont want it to trigger immeditely as it may come back online) guess i could also use a rule that triggers immediately then waits for next poll.. but this seems more efficient.

1 Like

In my other drivers, I have a similar logic implemented as in your RM rule- the healthStatus will be switched to offline only after 3 consecutive check-in periods without any activity from the device.

Markus's drivers will fire healthStatus offline event immediately, which sometimes may be wrong because it may happen that a single check-in event is missed.

I have noted to make this improvement when I have the chance.

"Zigbee - Xiaomi/Aqara/Opple Button/Switch/Remote (w/ healthStatus)" is updated to ver. 2.0.2 2023-11-26 - added push, doubleTapped, released, held button handlers (for use in HE Dashboards);

I noticed that the implementation of the 'digital' button events was missing in the original code.
Now, Aqara/Xiaomi button events can be simulated from Hubitat Dashboard :
image

image

2 Likes

@kkossev I installed the app, however I cant see your dashboard anywhere! What am I doing wrong?
P.S., I'm new! lol

Hi @user7145 ,

You can refer to this doc:

This weekend I have added to the community supported drivers list 3 TRVs w/ healthStatus support :

3 Likes

This looks like a great app! I just wondering if it could be use as a trigger on real time? I mean, is it updated in real time or is it time based? I would like to use the online status to trigger some event.
Thanks!

You can do this using the Rule Machine built in app.
Use cuatom attribute from the capabilities list as the trigger

no status there (online-offline,) just the state (on-off)

Do you have the Status att in the device page?

Yes and I see it on webcore but the trigger not working when I use it as trigger.

I am not sure why RM is not letting you define as a trigger and I am not familiar with webcore.
Sorry

I think maybe it’s related to the driver, it’s smart life driver, but actually if it’s shown inside the device it should be in the rules manager too…

Does the driver you're using actually implement this capability? Rule Machine should let you use any attribute as a trigger. If the trigger you want is not part of a standard capability (and this one is not), you will need to use a "Custom Attribute" trigger. It is not clear from your description where the problem is.

its listed inside the device details and I can see it from webcore as well (I set a variable = status and it gives ONLINE).

You cannot use device data (what you are showing in your screenshot) to trigger automations, only things under "Current States" (top right of the page and what I was talking about) -- those are what generate events. Apps can read device data, but only on demand. If your driver doesn't have a "healthStatus" attribute under "Current States," which you could easily use with RM or webCoRE, then it does not implement this feature as proposed in the original post in this topic.

ok! I see... is it complicated to add this to the driver? Its the smart life/tuya driver, its a main item that refresh and pull data and all devices are child. I changed few things inthere (to make scene act like switch not a push button) but not sure if I could add this capability alone! :slight_smile: do you know where I could find help on this? Or maybe simply toggle a virtual device from the driver on the device data change...
thanks again!
Thanks again!

I just try to install device health status but I dont know how to use it. I see the code in app code but not in the app section ... I think I dont really understand how it work nor what its doing.

Hi @user3930 ,

As @bertabcd1234 said, the healthStatus is a custom attribite. The driver that you are using must send 'healthStatus online' and 'healthStatus offline' events, depending on the detected communication/activity status for the particular device.

What device driver you need to have the healthStatus attribute?

those devices I m looking to use the health status is with the tuya/smartlife driver
I just want to trigger an event when the wifi switch get online to set the right on-off position (power outage or if I unplug it to move it).
I have a online-offline status in the device but not the capability. But inside the rule manager I cant see the status even after installing your app.
It must not be compatible I guess!