Author Topic: HAI UPB links  (Read 9406 times)

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
HAI UPB links
« on: June 29, 2011, 09:17:44 am »
Any chance of triggering off of UPB links directly? Now I have to set a link to change an output state, then trigger Elve off the output change. Would make more sense to trigger off the link itself.

Also, theres a typo in the HAI rules, thermostat is spelled "termostat current humidity changed"

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: HAI UPB links
« Reply #1 on: June 29, 2011, 11:11:55 pm »
Are you asking for something different than the Link Activated and Link Deactivated events that are in the UPB driver?
John Hughes
Codecore Technologies

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: HAI UPB links
« Reply #2 on: June 30, 2011, 05:39:57 am »
Those would be great if they were in the HAI driver.

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: HAI UPB links
« Reply #3 on: June 30, 2011, 07:48:54 am »
Ahh, you didn't specify which driver you were referring to for that line. :) I'll take a look and see what that would take.
John Hughes
Codecore Technologies

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: HAI UPB links
« Reply #4 on: June 30, 2011, 04:17:47 pm »
Sorry, thought the title explained that.

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
HAI UPB links
« Reply #5 on: June 30, 2011, 10:09:45 pm »
Lol I guess the letters all blend together. :)
John Hughes
Codecore Technologies

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: HAI UPB links
« Reply #6 on: June 30, 2011, 11:23:54 pm »
Unfortunately HAI never documented their SDK so the next beta will include some logging when a UPB Link event message is received. You should see some thing like the following in the log:

The HAI driver received a UPBLinkOff EventLogItem message.

This will be followed by some more information. Please note what Device ID and/or Link ID you are experimenting with and post the resulting messages from the log. You shouldn't need to turn on diagnostic logging to see the messages.
John Hughes
Codecore Technologies

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: HAI UPB links
« Reply #7 on: July 01, 2011, 09:50:03 am »
Will do.
Thanks.

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: HAI UPB links
« Reply #8 on: July 02, 2011, 06:54:06 am »
Tried this today, nothings logging. Upstart sees the link activate fine though.
PC Access also sees it fine.
I have a rule in Elve to send an email based on this link. In PC Access I have the link change the state of an output, this works fine, then I have Elve set to trigger (or event I guess) off of the "HAI Output State Changed". Then in the "Whenever" tab, the only entry is "PropertyIndex", would this be the unit number for the output I'm using?? Not very descriptive. Shouldn't there be some options here like what the changed state is or something?
BTW, it isn't working.

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: HAI UPB links
« Reply #9 on: July 02, 2011, 07:36:50 pm »
1. I'm surprised nothing was logged. I'll have to dig through the SDK to see if I see anything to get that activated.

2. I updated the Output State Changed event criteria to be more descriptive. This will be in v1.1.0.51.

3. Since you aren't seeing the event get triggered please watch the Output States property in Elve Management Studio when you know an output changes state and let me know if you see the appropriate output's state change.
John Hughes
Codecore Technologies

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: HAI UPB links
« Reply #10 on: July 03, 2011, 05:37:05 pm »
I posted a new beta which will log a more general message ... if the message is even received by the device.

Please also turn on diagnostics logging for the driver just in case something else is logged that might be helpful.  Keep an eye on the log when the link is activated.

Thanks
John Hughes
Codecore Technologies

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: HAI UPB links
« Reply #11 on: July 04, 2011, 04:43:30 pm »
The link was activated at 7:38:56.

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: HAI UPB links
« Reply #12 on: July 05, 2011, 12:50:29 pm »
Great, I'll take a closer look.
John Hughes
Codecore Technologies

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: HAI UPB links
« Reply #13 on: July 06, 2011, 11:09:57 pm »
Excellent, the log was very helpful.

Do you know the link # that you de/activated? I need that know if I am getting the correct data.

I posted a new version which will hopefully log the upb link command and the link number.
John Hughes
Codecore Technologies

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: HAI UPB links
« Reply #14 on: July 07, 2011, 05:52:59 am »
Sure do. Link 194.
I'll give the new beta a shot and see what it logs.