Announcement

Collapse
No announcement yet.

Status Change Script

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

    Status Change Script

    There used to be a status change script that came with HS. Very basic. Any Device, changed to any status it would call the script and I think the script had a select case for devices. I think it was used for chaging device strings among other things.

    Does anyone have a copy of that script. I could write it, but if it is allready done then why bother right?
    Kirk

    http://cleverhouseautomation.ca
    http://southcoastwebsitedesign.ca

    #2
    I have seen one floating around that I think was done by UltraJones that demonstated the use of the StatusChangeCB method so the script got control on every status change. I dont have it, but may be some help with search words.

    Comment


      #3
      Here you go.

      Remember you need to add the following to your startup script file in hs to get the register callback function to work.

      hs.RegisterStatusChangeCB "status_change.txt", "notify"

      Later, Terry

      oops, oh yeah you will also have to create an event set to trip on "any device changed to status "any" everyday. No output is required for this event.
      Attached Files
      Last edited by tman1; January 7, 2005, 07:40 PM.

      Comment


        #4
        excellent

        Thank you.
        Kirk

        http://cleverhouseautomation.ca
        http://southcoastwebsitedesign.ca

        Comment

        Working...
        X