FlyingDiver / Indigo-miniUniFi

Minimalistic UniFi plugin for Indigo
MIT License
0 stars 0 forks source link

Add display state for elapsed time #28

Closed cronutan closed 3 years ago

cronutan commented 3 years ago

Currently I use the uptime and offline_seconds to show on controll pages, but I can't use these values directly so I setup variables and triggers to convert them. It would be very convenient to have them in some user readable state like 1 day, 4 hours, 34 min

FlyingDiver commented 3 years ago

Uptime is already available as the device state in a readable format. You can select it from the device configuration dialog.

cronutan commented 3 years ago

Which device configuration dialog. I don't see it. Screen Shot 2021-03-28 at 5 33 38 PM Screen Shot 2021-03-28 at 5 35 24 PM

FlyingDiver commented 3 years ago

My mistake, it's shown as the UI value in the Indigo client, but that's not actually available for display on a control page. I thought it was.

cronutan commented 3 years ago

Ok. Is it something you would be interested in adding? If not, I'll try the device extensions plugin you suggested?

FlyingDiver commented 3 years ago

Try device extensions.

cronutan commented 3 years ago

There is "convert date time format" and "convert date/time to elapsed minutes". Fiddling with them, I don't see how I could change seconds to days, hours, minutes. Converting time formats would not accept seconds (%S) and returned nothing for %d %H:%M:%S

FlyingDiver commented 3 years ago

I've never actually used that plugin, I just remembered it did time conversions.