I can't say I've seen something like that done and would not be confident in it being possible
Why are you wanting to display them like that?
I'm guessing it's probably some version of last activity time... maybe looking for a device that hasn't reported in a while. If so, there are a couple of apps that, while they don't produce a dashboard, can give you/alert you with that information.
My head was going in a similar direction, thinking more so a chart.... But depends on the requirement.
@Thebearmay nailed the requirement. A simple visual view of devices that have not reported for a given period. Ideally long term add an action (click) would do a refresh, ping or whatever that forces a particular device to report-in
Device Watchdog would certainly be worth a look, I think, based on your description of what you are wanting to achieve.
Be aware that some devices are not able to be "tested" like you talk about. Certainly things like lights can be toggled on and off and then the last activity datetime checked, something I have done in the past. But some devices, particularly battery powered sensors, will report based (often) on how the manufacturer designed them to, with whatever options they offer to control the reporting, if any. I'm certainly not wanting to guide you away from pursuing this, just to keep this in mind and know that you may need to adjust your approach for some devices.
As @sburke781 has said, you can't "ping" a battery powered end device. Device Watchdog can report on devices that have shown no activity in the last x hours (IIRC x is settable) and there is a special case for devices that are able to send a check in message which the app can also track.
The app can be set to poll at a specific time, however if you want to check say every 6 hours you can set up a rule to turn on a virtual switch at these times which toggles the app to run a report.
The same virtual switch can also be added to a dashboard to allow manual triggering of an update to the status reports, which is what I had at one time, automated report updates when I transitioned to Day mode, again in the afternoon (I think) and the manual option available if I wanted it.
Yep that's what I do also ! Before anyone else asks the switch needs to be configured with the auto off function enabled.
I'm coming from Vera, and its dashboard had a 'devices no longer connected' tile. I was hoping to replicate that functionality somehow. I know a lot of people came from Vera, does anyone know how Vera was able to obtain (or guess) the state of battery powered devices.
I'd add to my / our earlier comments that it's not a flat "no" for battery powered devices. Perhaps one way to look at it is if you have either devices that are commonly triggered (motion sensor in a high traffic area) or commonly report something like temperature, then you should be able to get a good approximation for those that have either dropped off the network or their battery has run out. The issue is devices that don't report regularly and are not triggered on any consistent basis, e.g. a battery powered remote that is there to provide a manual control option in a motion controlled room.
I hope that helps.... And that other ex- cuurent-Vera users can also provide some background.
Got it !!!!
Thanks to @mbarone and this thread JS injection for Dashboard - Developers - Hubitat
type or paste code here
Doesn't seem to work on a mobile device, eg when viewed in the Hubitat app.
How does it not work? i.e. what are you seeing or not seeing? I can only imagine either the DOM is a different structure somehow or the events are different.
Cool. How do you use this script?
The script does not seem to execute. The Tiles do not get re-ordered and the background color does not get set..
The script is loaded via a dummy tile as described in the thread I referenced
Hmmm....It's hard to say what it could be.... at least for me Are you on your local network and accessing the local version of the dashboard, i.e. not the cloud version?
Missed that - thanks!
Yes, the app is in local mode. While I am quite comfortable debugging PC based HTML apps I have no idea where to start with something on a phone or tablet.
OK Fixed it. There was error in the js (superious delete). Once I removed that it works on the iphone app too. Error has been removed from the code snippet