Announcement
Collapse
No announcement yet.
Set Timer to Variable
Collapse
X
-
My use for this would be the option to run a suspend action for an amount of time that is constantly changing, ie Thanksgiving, christmas break, mid winter break, spring or easter break. Trigger the event that suspends along with a value for how long to suspend it for thru an email.
Leave a comment:
-
Just out of curiosity, what would this be used for? I would think you could create some script logic that calculates a delta value from a timer as a substitute.
Leave a comment:
-
Unfortunately the value for the timer is stored as some sort of complex object in the database so you can't make some sort of direct update of it's value there (probably a million and one reasons not to do that anyway), I think everyone is stuck until there is some traction on that bug. I could use it myself also...
Leave a comment:
-
Yeah, Spud had pointed me to that bugzilla a couple of months back. I +1'd it back then but nothing happened. Was hoping it could be something that his EasyTrigger plug-in could handle if HS would add it.
Thanks guys,
-Travis
Leave a comment:
-
You can't set the timer to anything by script, you only have two options, reset and get it's current value. I'm not sure what to suggest, you can join the rather lonely Bugzilla club as similar options were requested in 2013 - http://bugzilla.homeseer.com/bugzill...ug.cgi?id=1222
Leave a comment:
-
Hmmmm... Not sure on that one. Might need one of the experts to chime in
Sent from my SCH-R970X using Tapatalk
Leave a comment:
-
Hi Rob,
That script looks like it would change a device to a timer value. I need the opposite. I would like to set the Minutes of a timer to the value stored in a Virtual Device. Example (IF Device:Time1 is 2, SET Timer:Timer1 to 2 Minutes. Do you or anyone know if that is possible?
-Travis
Leave a comment:
-
Great - Thanks for the sample code...
I will try it tonight!
JimO.
Leave a comment:
-
Originally posted by jameseoconnor View PostIs there any way to set a Timer to a variable (i.e. Global Variable or value stored in an HS3 device) either through an event or a script?
Thanks,
JimO.
PHP Code:hs.setDeviceString(805,hs.TimerValue("Attic Fan 1").Hours & " hrs " & hs.TimerValue("Attic Fan 1").Minutes & " mins",True)
Leave a comment:
-
Set Timer to Variable
Is there any way to set a Timer to a variable (i.e. Global Variable or value stored in an HS3 device) either through an event or a script?
Thanks,
JimO.Tags: None
Leave a comment: