Announcement

Collapse
No announcement yet.

Adjust thermostat +2 degrees?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adjust thermostat +2 degrees?

    Hello all,

    Recent vera escapee with a SEL Pro.

    I am looking for a way to use a manually triggered event to adjust the thermostat set points a couple of degrees. I think a script could do it, using two GET statements followed by 2 SET statements to adjust both heat and cool points but my first attempts aren't going well.

    I searched the how tos without luck. I think I am missing some library includes in my script but not sure.

    Anyone have examples even vaguely close I can learn from?

  • #2
    There are aways other (maybe even better) ways to do this, but:
    Using the Easytrigger Plugin it is easy to add/subtract from the current value of a device without using scripting.
    Use "Set Device to another device", basically set the cooling/heating set point to itself +/- 2 degrees.

    If you are determined to use scripting: here is a link to the help file
    https://homeseer.com/support/homesee...lp/default.htm
    that even I was able to use to find the commands I needed.

    There are a good number of examples on this board just search for script and there should be plenty to look at to get the overall format.

    Comment


    • #3
      Originally posted by Grundcm View Post
      Using the Easytrigger Plugin it is easy to add/subtract from the current value of a device without using scripting.
      Use "Set Device to another device", basically set the cooling/heating set point to itself +/- 2 degrees.
      Ahhh, this is something I missed.

      For some reason my easytrigger isn't showing me all options all the time. I have one option on an event that I cannot find again to reuse

      https://homeseer.com/support/homesee...lp/default.htm
      that even I was able to use to find the commands I needed.

      There are a good number of examples on this board just search for script and there should be plenty to look at to get the overall format.
      I have read the docs and set up some code but I get
      Exception has been thrown by the target of an invocation.Attempted to access a missing member.

      Hence, looking for code that already worked.

      Comment


      • #4
        What is your code? Post it up and someone may see something.

        One of the only scripts I wrote is to put my time into a format that can be compared to the current time for my alarm clock (adding a 0 to the number if it is 0-9 so displayed in xx, and adding AM/PM to the end)

        Here goes:

        Sub Main(parm as object)

        Dim hh as String
        Dim mm as String
        Dim ampm as Integer

        hh=hs.DeviceValue(374)
        mm=hs.DeviceValue(375)
        ampm=hs.DeviceValue(376)

        if ampm=0 then
        if mm<10 then
        hs.SetDeviceString(377, hh & ":0" & mm & " AM", True)
        else
        hs.SetDeviceString(377, hh & ":" & mm & " AM", True)
        End If
        else
        if mm<10 then
        hs.SetDeviceString(377, hh & ":0" & mm & " PM", True)
        else
        hs.SetDeviceString(377, hh & ":" & mm & " PM", True)
        End If
        End If

        End Sub

        Comment

        Working...
        X