I have a script that displays my 480 devices and I'm trying to display the Last Changed value. I can access this value with hs.DeviceLastChangeRef(dv.Ref(hs)) but it is very slow - it takes about 12 seconds to display the 480 devices. All the other information about the device I can retrieve directly from the dv object, so if I exclude the Last Change data the 480 devices display quickly.
I can substitute hs.DeviceLastChange(devicename) which runs very fast but reports the last change as 12:00:00 AM for every device. I suspect this function is still not properly working in HS3 from when the bug was first reported in 2016.
Am I interpreting what is happening correctly? Any way around this problem?
(For those who would respond by asking why I want to display 480 devices, I don't - I want to be able to easily display a subset of devices - say, all the devices in the kitchen, or all the devices outside - with a single click, since I refer to them regularly in this fashion - and I am tired of the very poor HS3 user interface design to do this.)
Thanks in advance for any help ...
I can substitute hs.DeviceLastChange(devicename) which runs very fast but reports the last change as 12:00:00 AM for every device. I suspect this function is still not properly working in HS3 from when the bug was first reported in 2016.
Am I interpreting what is happening correctly? Any way around this problem?
(For those who would respond by asking why I want to display 480 devices, I don't - I want to be able to easily display a subset of devices - say, all the devices in the kitchen, or all the devices outside - with a single click, since I refer to them regularly in this fashion - and I am tired of the very poor HS3 user interface design to do this.)
Thanks in advance for any help ...
Comment