Push Notification that includes device status

I'm trying to creat a push notification via RM that is Triggered to run nightly at a specific time that will let me know current status of devices.

Example: At 9pm, send me a Notification that says "Sensor X Battery is at XX%".

I am trying/wanting to use %device% and %value%, however running into a pickel because as the rule machine help page explains, these two "commands" pull from the most recent trigger event.

Ultimately I'd love to take this idea and have it send one massive notfication that shows a "summary" type notification of multiple devices confirming things like Doors are closed, fans were turned off, Stuff like that. (yes I realize I could make a dashboard for a visual look, but trying to do this with Notifications).

Is doing this even possible?

Yes, this is possible. There are likely several approaches. How I would do this:

Setup a Local variable for each device where a status is needed. Then set the variable to the status value. Finally, set the notification to contain these values.

This rule would be triggered to occur at the needed intervals.

Does this help?

3 Likes

Perhaps this app can help: [RELEASE] Device Status Announcer (TTS or notification if lock unlocked, door/window open, etc.)

2 Likes

From experience (10 years combined between SmartThings and Hubitat), and with a few hundred battery devices, I would not want a daily message with battery levels. It would drive me crazy.

For battery and "liveliness" (to make sure devices are all working), I use this app: [RELEASE] Device Activity Check - Get notifications for "inactive" devices

I have different groups set up. One group notifies me if devices haven't been active within the last 24 hours. This works well as nearly all my battery devices report temperature, which means they check in at least once per day (even if they are a contact sensor on a window or door I don't ever open). Another group notifies me if battery drops to 0% (some devices have rechargeable batteries, which they don't report % correctly for). Another group just makes sure all my mains-powered devices are active (the group has the option to do a refresh command before checking the devices).


Separately from that, I use Device Status Announcer to give me notifications on other states, like that windows are open when the A/C turns on.


Those two apps, along with HPM ([RELEASE] Hubitat Package Manager (HPM) -- HubitatCommunity) to install them (and all other apps/drivers), are the basis of much of my monitoring.

6 Likes

Thanks! The other suggestions would have worked, but in my specific case, the variable route is exactly what I needed.....I think.

Thanks for offering the other point of view on this one.

1 Like

Happy to help. Will be curious to hear back how it goes.

Worked perfectly. Thanks. Being a SmartThings recent convert, I always forget about the ability to make a local variable like that.

1 Like