Display last time status change on Tiles

When you say "local" I assume that means I have to be on the same network as the hub, as if I was adding devices and setting up automatons.
I am looking for something that I can check when I away from home, so the app would really be the place it needs to be.
If you mean something else please share, total newbie here with HE.
Thanks for posting.

I'm new to HE as well (about 10 days). My only interface with it has been from a desktop computer, at home, on the same LAN as the hub. I assume with port forwarding on my router, I could provide a way to access the hub from a remote browser but I've yet to try it.
I downloaded the Hubitat App for iOS to my phone but I can't get it configured. It keeps insisiting on searching for the hub on a local network.
Which mobile app are you using, iOS or Android?

Absolutely. I was waiting until I had everything migrated over before starting work on that, and it is certainly a powerful APP for home protection purposes.
Like I said though assuming I have not automated all my sensors and locks to the point that I am receiving notifs when they are tripped, a simple time stamp on the tiles themselves would provide a wealth of knowledge when looking at a group of tiles on a dashboard. You could literally track the movement of someone, let's say ones wife, leaving the home in the morning.
Laundry motion tripped at 7am on way to garage man door, man door last closed at 7:02 after putting dogs in garage, laundry light turned off via alexa at 7:03 on the way back in, front door sensor read closed at 7:05 and front door locked at 7:05 on the way out for work, scene activated at 7:08 by her cell that shut whole house down while pulling out of drive.
Having time stamps and possibly triggered actions of those events really would let you put the picture together without having to do anything other than checking out your dashboard.
Maybe I'm a control freak, but isnt that the reason we are doing all this automation in the first place? Master of ones domain! Ha..
Thanks for the reply.

Android. Setup went pretty smooth. Using the app you have no ability, that I have found anyway, to check a global event log. Just log into each tile via three button menu and click history to see that singular devices records. When you hit the 20 device mark, it gets time consuming... ha

Do not do this. Among other things, hub is not secured with a username or password by default and cannot be configured to allow only HTTPS (though that is an option). The best option for remote hub administration is using a VPN. Many routers have this built in, otherwise you can set one up using something like OpenVPN yourself, with a common option being the PiVPN variant on a Raspberry Pi. You could also use Remote Desktop-style software if you have access, then just that connection (if secure) to access the hub using a computer already on your network.

But most of the time, you really don't need to do this: Dashboards can provide remote monitoring and control (including device history, as mentioned above), and automations would ideally take care of everything that needs to happen regardless of whether you're home or not. Administrative tasks like adding and removing devices or reconfiguring apps must be done from the local-only hub interface, but as mentioned above, there are workarounds--port forwarding just shouldn't be one. :slight_smile:

1 Like

I'm not sure what you mean with "triggered actions," but between stock apps, including Rule Machine, and custom apps, you can do pretty much anything you want. (Hallway motion activated then front door opened? Turn on the outside lights if it's before 9 AM...though I'd probably get an outdoor motion sensor; my point was just to show that this would be possible.)

But yeah, I see where you are coming from. I don't use Dashboard much and it's actually such a neat idea I'd be surprised if someone hasn't found a way to do it yet. The only way I can think of would be, again, to have a custom app and device pair, where the app subscribes to motion from a sensor and stores the time of last motion in a custom device attribute, which you could then display on a Dashboard tile using the "Attribute" template (choosing that custom attribute). You could even cram these all onto one tile (or fewer than one per sesnor) with a custom app like Tile Master or Super Tile (hopefully coming back soon), though neither alone will let you track the last time of activity as far as I recall.

Sorry I'm sure I'm using incorrect nomenclature. Here is a picture showing what I mean.
You have a device (tile), the last %time% an action was performed, and the trigger or command that caused it to do so. In the pictures case it was a verbal Alexa command, but it would also show if it was done through a specific mobile device, or done via an automation or rule that was set up by displaying the rules name in place of "via alexa".
This specific picture shows the log for a single device, but there was also a daily log that sorted by time a action was performed and showed every device connected to the hub. So you could look down this simple list and see how every rule/automation/mobile or verbal command triggered specific devices and it really just gave you a sense of how everything was meshing together, and how certain events transpired through the day. (Like my wifes routine while leaving the house in the morning).
By tracking the things she did outside my automatons via the time and order she did them, I was able to improve my automatons to adjust to her needs. And at the same time grasp loosley what's going on at the house via that information being displayed.
I know we are talking more about a single time stamp being displayed on the tile, which would be really great, but a log layout that can be accessed remotely via the app that encompasses all devices on one log globally would be amazing.

Alright guess you cant post pictures or links. But do a image search for "wink hub 2 activity" you'll find a image from tech hive showing what I am describing (badly).
Thanks for your time!

I would also like to last update for the default motion, door, and window sensors in the default tile template. I haven't tried it yet but I think it could be created using @Cobra's Super Tiles and it allows for custom icons so you could do one tile for each device, more devices per tile if you don't need the icons.

I want to see at a glance where the last activity occurred anywhere in the house. I accomplish this follows:

  • In RM4, create a global variable of type String called LastActivity
  • In RM4, create a rule that triggers on any motion going active or contact sensors opening to Set LastActivity to '%device% at %time%'
  • In RM4, create a Connector to expose LastActivity to Dashboards
  • In your dashboard, create a tile using LastActivity with template Variable String

There is a minor flaw with this that isn't the fault of Hubitat, but with the behaviour the motion detectors I use. Because it will only report new motion once every 30 seconds, this scenario exists: Intruder breaks into bedroom window, walks through bedroom, then opens the front door to a blast of cold air. Immediately she retreats the bedroom and falls soundly asleep under the covers. If all that happens in 30 seconds, LastActivity will show door open when in fact the last real activity was in the bedroom.

So this LastActivity tile is going to completely replace the contact/motion sensor tiles? I suppose that's a good work around for sensors displaying last updated times And their current status.
However, this still leaves lights and locks out there, and really any other tile that when pushed triggers an action.
Thanks for the work up for the sensors though that is half the battle there!

Try the attribute tile for the selected device and select last updated. Will show the date time the device was last updated.

3 Likes

Will that also capture updates from things like battery reports and temperature reports, if the sensor supports (or is configured to report) those values? I was hesitant to recommend it for that reason.

Depending on the size of your system you more than likely are not going to be able to capture everything you want in a single dashboard tile. However, if you're a true control freak, you could dump all the data from your sensors into a database and use Grafana to setup graphs for what you want to see.

And will it still allow control of the device if it's a dimmer or a door lock by chance?
I'm aware I can create separate tiles that will display this info in addition to the actual device tile, I'm trying to not have so much clutter on my dashboard though.
I suppose I could setup a separate dashboard just for these attributes tiles though...

Your intruder is named "Goldilocks".

This is the best I can offer.
IMG_20191218_141736_032
"V Drive" is a virtual motion sensor.
The time that it triggers shows in the upper left hand corner of the tile.
As degrees. (f)
IMG_20191218_142404_614

You can place one tile on top of another tile so in theory your “info” tile could be located below your “control” tile.
Obviously this would impose some limitations such as the useable colours but might be used to reduce the tile count.

I was suggesting a solution for your specific use case of surfacing the last activity in your vacant house. My solution tells you the last time anything happened in the house with where or when and isn't limited to motion sensors. I use motion sensors, door locks, contact sensors .. anything that denotes physical movement. I'd rather have one tile tell me than having to look at 30 tiles to see their individual last time active status.

That said, I think having a last changed date/time on just about every device type is a great idea.

FYI, the Alexa App has something similar when viewing status of contacts:

This lets me see that the last power failure at the house was at 8:20PM on 12/15/2019.