The Pushover service allows for hyperlinks, and using the Pushover driver I linked above, you can format text so the Pushover service formats as linkable text as shown below. It’s not pretty/simple, but it works. I use this one for a simple link in a notification to set a global variable to confirm setting my apartment to away when leaving (so if I’m just walking the dog it doesn’ happen). So if I could add custom text such as the below to the notification for DAC, I could get linkable text to the cloud status page in my notifications.
The pushover driver does include an option to add a custom link to all notifications. Currently, it goes to my Hubitat Dashboard, but as a workaround I could create an entirely new Pushover notification device specifically for this purpose and make the standard link go to the DAC cloud status page. But the ability to add a link in DAC notification is preferable for me, and perhaps other users would have other use cases for adding custom text to the notification.
[H][HTML][OPEN]center[CLOSE]Confirm Away for HomeKit Presence[OPEN]BR[CLOSE][OPEN]A HREF="https://cloud.hubitat.com/api/abcd1234/apps/100/trigger/setGlobalVariable=confirmAway:yes?access_token=abcd1234"[CLOSE]Set Away[OPEN]/A[CLOSE] [OPEN]A HREF="https://cloud.hubitat.com/api/abcd1234/apps/100/trigger/setGlobalVariable=confirmAway:no?access_token=abcd1234"[CLOSE]Don’t Set[OPEN]/A[CLOSE][OPEN]/center[CLOSE]
Yes, it works! The Report Page link is the one I built in the next text box you provided, and it takes me to the cloud report link you provide in the app. The Dashboard link is the default link to my dashboard that is appended to every message. This is great.
EDIT: Note that I added a <BR> in my HTML encoding to drop my text to the next line, but if someone is adding plain text, it appends to the end of the last line, so maybe an included line break is preferable here.
The text doesn’t appear in the notification until you click done to reinitiatlize the app. You may have seen this, and they may need to be the way that it is, but perhaps a note next to “Append text to notification?” Is warranted to avoid confusion/questions.
If you select the “append” option and don’t enter any text, you get a “null” in the notification. Makes sense, but maybe make this a required field if the option is selected so that doesn’t happen.
I thought about that and decided that since you were choosing the text to append, you could put a line break there if you wanted to...but thinking about it more, with plain text and a single-line text entry field, that's not easy. So I've made that change (one automatic line break) in 2.4.1, just released.
Also changed this so it saves the appended text setting right away.
And changed it to ignore this, much as I want to leave it in to send a "why?!" to anyone who selects the option but doesn't actually use it...
Thanks for all your hard work developing this App, I have been using this for a number of years and found it very useful. I have just been looking at integrating the Cloud report into my Sharptools Dashboard which works great, but I was wondering if there could be an option to show or hide the Snooze Column? As space is a premium on dashboards would prefer for it not to be using up space as intending adding another instance of Device inactivity for devices with Low battery
I will think about this for the future. However, is this really the easiest or best way to get that into this dashboard in the first place? (Legitimate question, not a doubt--I don't use dashboards of any kind much anymore.) Would a string variable or string attribute on some device be better? Those are things I've thought about.
In the meantime, if you are at all familiar with Groovy (or can work you way through enough to figure it out), customizing the createReportHTML() method in this app, starting around like 878 in the current version, can probably get you something like what you want -- and perhaps without other things you don't need, too. Entirely removing the td around lines 907-919 would take care of this specific request.
Thanks for your response, I must have missed the string variable option, I was originally after that type of solution until stumbling onto the HTML report. I'm not that familiar with Groovy but will take a look at your suggestion to edit it as string variable method will be a bit messy passing it to Sharptools and then formatting it.
Would it be possible for the user to configure the delay after a Refresh? One of my devices took just over 6 seconds to respond but by then Device Activity Check had sent me the alert saying it was inactive.
There's a built-in 5-second delay plus one half second for each device, so one workaround would be to add another device to this group and see if that helps. Otherwise, this is not currently possible but is something I may consider for the future. I'm hesitant to add too many options for this, though, because I don't think it's a great idea in the first place, and for more complicated needs you might want to try something else instead, like:
considering whether a longer interval is a better choice than a refresh (almost always preferable if the device does report things on its own, IMO)
creating your own more nuanced refresh schedule with a rule or something else some time before the DAC report runs
I would ask that you add this feature as well. I have a lot of Zooz devices that don't get used often, but I want to know if they are going to work when needed. I see them in the notification and as soon as I load the report they are all gone. So a longer refresh wait time would resolve this.
Jeff, What line or lines of code did you change? If Robert is not wanting to make this an option, then hacking the code should work for now.
Looks like link 523, I have a fork posted on my GitHub as well with other very minor changes. Mainly I did it so when it gets updates I can merge the updates with my tweaks and stay updated.
FWIW my Third Reality leak sensors never worked with the "refresh first" trick and if lengthening the delay would help with that, I am all for it too. (I switched to battery level monitoring which is not great because it's my first go with these sensors and I have no idea if they report battery reliably. That's really true for most of my sensors.)
No reason to guess: does running the "Refresh" command on these devices change their "Last Acitivty At" date? (Based on their other devices, I'd suspect not, but thia would give you your answer for sure.)
Not reliably. I tried this several times and once it did update that date, but not the other times.
There is a community driver for this device as well which claims to add features including Presence. How can I test Presence? When using this driver there's a Check Presence button on the device page, but it does not cause an update in Last Activity At.
You will need to use the custom attribute feature in my app if you want to monitor presence. In general, that feature in a driver would be incompatible with "Last Activity At" checking since the driver turning it present or not generates activity, counter to what you'd be looking for by checking "Last Activity At."
On a related note, any driver still using this attribute for this purpose might be outdated, but I don't know anything about the specific driver you're referring to.