A Rule to List Devices That are Left On

Hello,

I am trying to stop using webcore all together and use only hubitat for everything. Currently, I am almost there. I have one piston to write in rule machine but I can't figure out how to do it. What the piston does is, when my mode changes or my device leaves the geofence, webcore checks the status of any of the lights or switches that are still on and then sends me a pushover notification of those specific devices that are on i.e. living room light, dining room light are on. I have all of my devices listed but webcore only sends the notification for the devices that it sees on. I would like to have hubitat do the same thing but I have no idea how to get hubitat to capture the status of the devices and report those devices in a pushover notification.

Thank you for any help that you can provide

While I don't use this for lights, you might be interested in Sensor Groups +, originally developed by @FriedCheese2006 and now maintained by @thebearmay :

I use this to keep track of the doors and window in my garage downstairs, sending me a notification through the HE app if any of them (contact sensors) are open when I transition into Night or Away mode. I actually use Device Check Plus by @bptworld to do this, but there are various built-in ways this check and notification could be done, including Rule Machine.

I just worked on something like what you're describing for myself. It seems to be working as I've gotten a couple of notifications that the retry portion has worked. So far it hasn't given me any notifications for an individual device still off, but that's just a matter of time until vacuuming needs a critical outlet.

I updated my previous post with the screenshot.

It appears that this code has been removed from GitHub (at least I can’t find it).
Can you point me to a link to the importable code?

1 Like

I probably installed it before Bryan stepped back from actively developing in Hubitat. For my use of this here, it would be simple enough to setup a check of the attributes on the sensor group device on mode change or whatever trigger is needed.

It's possible you could still install it via Bryan's Bundle Manager, though I haven't looked at it closely. The device check plus bundle is in Bryan's GitHub repository under the Bundles folder.

The bundle appears to be empty???

I'd suggest just setting up a simple rule.

Just hate re”inventing” the wheel.
I do use groups to assure all is well, but when all is Not well…
Thanks anyway.

I installed an app called Snapshot that can poll any devices you add to its list.
Written by @bptworld

Depending on what you're going to do with the "list," my Device Status Announcer app (which is mostly geared towards notifications or TTS) may also work for you:

For switches, you'll need to use a "custom" device type and choose "switch," but the setup should otherwise be straightforward.

2 Likes

This!! :point_up: :+1:

Thank you! I found a bundle with an appcalled device check plus, that seems very similar to your app, with switches included. Not :100: what I’m used to. Thanks for your link, I may try yours out also.

That sounds like the app mentioned above. While I do not believe any of that author's apps are being maintained anymore, if it works for you, there's no reason to change.

To clarify, my app does allow you to use switches; it's just not "highlighted" with its own section by default like more common types of devices for these automations are.

Care to share a link to the bundle?

@bertabcd1234 I installed your app and I think I like it better than the device check plus app. I set up a custom switch section and added my switches there, to notify if any are turned on. The notification works perfectly but the word switch is in the notification after every device name. Say I had two lights on, the notification says the living room light switch is on and the girls bedroom switch is on. In the evening when I have multiple lights on, that is going to be a huge notification with "switch" after every device name. Is there a way for me to remove the word switch from the notification. The app doesn't seem to do that with contact sensors. the notification that i get with contact sensors is back door is closed, it doesn't say back door contact sensor is closed.

There is now. :slight_smile:

Update your app to the latest version (3.2.2.), and in each custom group, you'll find an "Omit attribute name in notification" option that will do what you're asking for.

2 Likes

This is why it's usually best to use a currently supported app, especially if the app is supported by someone who is very active/responsive. :wink:

3 Likes

Thank you for your fast work, it seems to be working half at this point. When the announce/notify only if device state is/isn't option is turned on, the word switch is still at the end of each device even when the omitt option is on. When the announce/notify only if device state is/isn't option is turned off, the word switch is properly omitted.