Two time and timer requests
Posted: Sun Oct 15, 2017 5:40 pm
I ran into this working on integrating TED (The Energy Monitor) into my HB system. Neither are critical (more like "Nice To Have"), but I thought I would at least post for the record.
1) The "Time" Property Type of a Device Property does not appear to support HH:MM:SS format. If I have a VBscript that does a SetPropertyValue to a property of type "Time" and the VBScript value is HH:MM:SS AM/PM the Set does not update the property. So the entire value lost. Got around this by changing the Property Type to AlphaNumeric but that may limit what can be done with the resulting value.
2) I would like to see the addition of a 'Pause' action to a timer. Currently, If you want to stop then restart a timer at the point it was stopped, there doesn't appear a way to do that, as the "Remaining Time" property is Read-Only (so you can't grab its value, save it, Stop the timer, then set the Remaining Time property to the stored value before the timer is restarted.
There may be ways around both of these but for my particular application they are not critical and therefore not worth jumping though hoops.
1) The "Time" Property Type of a Device Property does not appear to support HH:MM:SS format. If I have a VBscript that does a SetPropertyValue to a property of type "Time" and the VBScript value is HH:MM:SS AM/PM the Set does not update the property. So the entire value lost. Got around this by changing the Property Type to AlphaNumeric but that may limit what can be done with the resulting value.
2) I would like to see the addition of a 'Pause' action to a timer. Currently, If you want to stop then restart a timer at the point it was stopped, there doesn't appear a way to do that, as the "Remaining Time" property is Read-Only (so you can't grab its value, save it, Stop the timer, then set the Remaining Time property to the stored value before the timer is restarted.
There may be ways around both of these but for my particular application they are not critical and therefore not worth jumping though hoops.