Announcement

Collapse
No announcement yet.

Scripting Question

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

    Scripting Question

    First off, Jon - great plug-in. UPB is, IMHO, a far superior technology than X-10. UPB actually works!


    How are you coming on scripting documentation?

    I have figured out how to have an event trigger based on the activation or deactivation of links, but want to know if there is a way to trigger an event if ANY, or a specific, UPB message is received by HS.

    Thanks,

    Michael

    #2
    (I split the thread so we could have a thread on this)

    The docs are coming soon. Hopefully I can answer any specific questions here until they are done.

    There is no way currently to trigger on "UPB message received" at this time. There are hundreds of possible messages that can be passed between UPB devices, and some may not have any control or status relationship to a device we care about.

    There are triggers for anything that actually affects the UPB devices or links. Rich and I had a discussion about the appropriateness of having the plugin generate an "X10 Received" trigger for UPB messages that controlled a device and Rich decided against it since it is simply not X10 traffic.

    You can of course setup a trigger based on "Device Status Change: Any" which can fire a script any time a UPB device changes status. Another event "Device Value Change: Any" would fire any time a link message is transmitted.

    Any UPB message directed at a link or device can trigger a specific event so that should cover anything that you need. If you have a specific action that you can't seem to figure out how to get working, just ask here and I'll try to help.

    Jon



    Originally posted by MRTaylor
    First off, Jon - great plug-in. UPB is, IMHO, a far superior technology than X-10. UPB actually works!


    How are you coming on scripting documentation?

    I have figured out how to have an event trigger based on the activation or deactivation of links, but want to know if there is a way to trigger an event if ANY, or a specific, UPB message is received by HS.

    Thanks,

    Michael
    Jon Ort
    JonOrt@The--Orts.com
    (Remove the dashes in the address, spam is getting out of hand)

    Comment


      #3
      Activating / Deactivating Links

      Jon,

      I now have my HS system working as it did before changing out all my X-10 to UPB.

      I have noticed that if a link is "Deactivated" and HS knows about it, but I want to issue another "Deactivate", because a light in that particular link is on and I want it turned off, if I issue another "Deactivate", nothing happens. My work around was to set the link to "None", using a 0, then issuing a "Deactivate", using a 2. This works.

      Same if a link is already "Activated" and I want to "Activate" it again.

      Normal?

      Michael

      Comment


        #4
        Quite possibly, how are you setting the link state? Through the UI? It is quite possible that HS is not telling the plugin of the new state because it is the same as the old. The plugin will send the link command whenever HS tells it that it should.

        Jon


        Originally posted by MRTaylor
        Jon,

        I now have my HS system working as it did before changing out all my X-10 to UPB.

        I have noticed that if a link is "Deactivated" and HS knows about it, but I want to issue another "Deactivate", because a light in that particular link is on and I want it turned off, if I issue another "Deactivate", nothing happens. My work around was to set the link to "None", using a 0, then issuing a "Deactivate", using a 2. This works.

        Same if a link is already "Activated" and I want to "Activate" it again.

        Normal?

        Michael
        Jon Ort
        JonOrt@The--Orts.com
        (Remove the dashes in the address, spam is getting out of hand)

        Comment


          #5
          I am sending the link command through a script.

          Because various hard-wired UPB switches have been programmed with links (double-tap), and because lights in a group can be individually turned off, I send a "Deactivate" for that group from a script when occupancy is set to vacant, in DooMotion.

          I don't mind the workaround, just thought I would post for your info and for others who might be trying to get things to work.

          Michael

          Comment


            #6
            I wonder if DooMotion is not setting a value if the value is already set... I played a bit with links myself and I'm not seeing that problem.

            Jon


            Originally posted by MRTaylor
            I am sending the link command through a script.

            Because various hard-wired UPB switches have been programmed with links (double-tap), and because lights in a group can be individually turned off, I send a "Deactivate" for that group from a script when occupancy is set to vacant, in DooMotion.

            I don't mind the workaround, just thought I would post for your info and for others who might be trying to get things to work.

            Michael
            Jon Ort
            JonOrt@The--Orts.com
            (Remove the dashes in the address, spam is getting out of hand)

            Comment


              #7
              I don't think it is DooMotion because I am using scripts within its custom action code.

              On another subject, I have tried to use, as a trigger for an event, Device Value Change, ANY. The problem I have is that I have a 1-Wire network that updates its sensor information every minute, so my event is triggered every minute.

              What I am really looking for is to be able to trigger based on ANY UPB device change. Any thoughts?

              Michael

              Comment


                #8
                HomeSeer does not have a trigger for limiting to a specific house code. That would be nice though. The only option would be to have the first line of the script just check the house code for the action. I'll have to dig around for the code that does that...

                Jon


                Originally posted by MRTaylor
                I don't think it is DooMotion because I am using scripts within its custom action code.

                On another subject, I have tried to use, as a trigger for an event, Device Value Change, ANY. The problem I have is that I have a 1-Wire network that updates its sensor information every minute, so my event is triggered every minute.

                What I am really looking for is to be able to trigger based on ANY UPB device change. Any thoughts?

                Michael
                Jon Ort
                JonOrt@The--Orts.com
                (Remove the dashes in the address, spam is getting out of hand)

                Comment

                Working...
                X