Is there a way with either standard HA calculations, or with the unifi integation that I can store the uptime of one device. I know I can add uptime for all with the integration.
Or alternatively, is there a way of calculating the length of time a device is home into a new sensor. I want more granularity than home for 1 hour. I would like an easy to look at sensor for a single device to know in minutes how long it has been home (it gets turned off when not in use).