Author Topic: Elve 2.1 Beta Download  (Read 28843 times)

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: Elve 2.1 Beta Download
« Reply #60 on: November 14, 2014, 11:39:46 am »
Disregard the "not updating" from last post.
Something weird going on... I shut down all 3 services to add the new driver, went to start them up again and couldn't connect to the master service. Had to uninstall/install again. all seems to be working now.

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: Elve 2.1 Beta Download
« Reply #61 on: November 15, 2014, 02:30:48 pm »
Two packets before the error:

Code: [Select]
Date:     11/15/2014
Time:     4:14:41 PM
Severity: Debug
Source:   DriverService
Computer: OPTIPLEX755
Context Type: Driver
Context Name: HAI Omni Pro II - Debug : HAI Omni Pro II - Debug
Description:
HAI Omni Driver received unsolicited packet (shown in hex): 21 0A 3B 02 07 00 F9 04 00 00 00 00 ED ED 00 00 F4 0E 09 CF 36 00 00 00 00 00 00 00 00 00 00 00 B9 2E 99 7D 00 00 00 00 00 00 00 00 00 00 00 00 07 4A 61 65 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 46 F2 00 00 00 B9 8C 7E EE 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Code: [Select]
Date:     11/15/2014
Time:     4:14:41 PM
Severity: Debug
Source:   DriverService
Computer: OPTIPLEX755
Context Type: Driver
Context Name: HAI Omni Pro II - Debug : HAI Omni Pro II - Debug
Description:
Setting status to negative: -96 original status: 4

broconne

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Re: Elve 2.1 Beta Download
« Reply #62 on: November 17, 2014, 08:12:04 am »
Two packets before the error:

Code: [Select]
Date:     11/15/2014
Time:     4:14:41 PM
Severity: Debug
Source:   DriverService
Computer: OPTIPLEX755
Context Type: Driver
Context Name: HAI Omni Pro II - Debug : HAI Omni Pro II - Debug
Description:
HAI Omni Driver received unsolicited packet (shown in hex): 21 0A 3B 02 07 00 F9 04 00 00 00 00 ED ED 00 00 F4 0E 09 CF 36 00 00 00 00 00 00 00 00 00 00 00 B9 2E 99 7D 00 00 00 00 00 00 00 00 00 00 00 00 07 4A 61 65 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 46 F2 00 00 00 B9 8C 7E EE 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Code: [Select]
Date:     11/15/2014
Time:     4:14:41 PM
Severity: Debug
Source:   DriverService
Computer: OPTIPLEX755
Context Type: Driver
Context Name: HAI Omni Pro II - Debug : HAI Omni Pro II - Debug
Description:
Setting status to negative: -96 original status: 4

Ok.. The driver has logic in it that subtracts 100 from the status which is why you are getting that error.  That appears to be intentional logic.. so a good question is why for a certain unit its not working.  I will have to add some logging to figure out which unit is causing that trigger and then we can see why you are getting that error.

FYI on status.  I have had to redo major portions of the driver to fix the underlying issue with pagedlists.. It has nothing to do with John's work on the driver, its just the underlying library supplied by HAI is aweful. 

So far, the redone driver has converted over units(lights, flags, outputs) and I finished thermostats yesterday.  I need to still tackle areas and zones and then will be ready for some serious beta testing.






broconne

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Re: Elve 2.1 Beta Download
« Reply #63 on: November 21, 2014, 07:41:19 am »
I have finished converting over the entire HAI driver to use the new methods...  So I need someone to help me test it out..
Also, if there is any functionality someone wants in the HAI driver now is a good time to ask while the details are still fresh for me.


Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: Elve 2.1 Beta Download
« Reply #64 on: November 21, 2014, 08:54:37 am »
I'm in!
Still need access control added.
Also, if you can find a way to get the actual "running" status of the thermostats, that would be great. Meaning when the system is actually heating or cooling.
I'll see if I can think of other things that were missing.

broconne

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Re: Elve 2.1 Beta Download
« Reply #65 on: November 21, 2014, 12:43:34 pm »
I'm in!
Still need access control added.
Also, if you can find a way to get the actual "running" status of the thermostats, that would be great. Meaning when the system is actually heating or cooling.
I'll see if I can think of other things that were missing.

What is missing from an access control perspective?  I see Lock/Unlock for doors..

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: Elve 2.1 Beta Download
« Reply #66 on: November 21, 2014, 01:14:29 pm »
No status. Nothing to bind to a boolean to tell if the door is locked or unlocked.

broconne

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Re: Elve 2.1 Beta Download
« Reply #67 on: November 21, 2014, 01:56:17 pm »
No status. Nothing to bind to a boolean to tell if the door is locked or unlocked.

Ok, I will take a look at that.  I just sent you a new driver with the thermostat support you requested.

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: Elve 2.1 Beta Download
« Reply #68 on: November 22, 2014, 10:24:50 am »
So far...WOW! So much better! Even just clicking the device in EMS, it used to take up to 5 minutes to populate, now it's almost instant. Everything about the driver is faster. Great job!

I knew there was a thread about this so I looked it up. Here it is:
http://www.codecoretechnologies.com/community/index.php?topic=430.msg2168#msg2168

Most may have already been included but I would still like to be able to view the logs from Elve. This is the equivalent of "read from controller" in pc access.

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: Elve 2.1 Beta Download
« Reply #69 on: November 22, 2014, 04:19:45 pm »
Finding some issues with rules that trigger off of flag changes. They seem to trigger multiple times and sometimes multiple rules are triggering from one flag, a flag that should only trigger one rule.
I remade all HAI rules and will see if theres any change.
Also, still getting the negative light error.

Code: [Select]
Computer: OPTIPLEX755
Context Type: Driver
Context Name: HAI Omni Pro II - Debug : HAI Omni Pro II - Debug
Description:
Setting status to negative(-95) for unit(UNIT 137) original status (5)

Code: [Select]
Date:     11/22/2014
Time:     5:01:39 PM
Severity: Debug
Source:   DriverService
Computer: OPTIPLEX755
Context Type: Driver
Context Name: HAI Omni Pro II - Debug : HAI Omni Pro II - Debug
Description:
HAI Omni Driver received unsolicited packet (shown in hex): 21 0A 3B 02 07 00 89 05 00 00 00 00 DB 1D 00 00 4E 4D 91 07 72 65 65 74 8D 94 00 00 00 00 00 00 86 00 19 4A 00 00 00 00 00 00 00 00 00 00 00 00 EF A3 1E 87 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 46 F2 00 00 00 98 D2 3A FA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Code: [Select]
Date:     11/22/2014
Time:     4:58:36 PM
Severity: Debug
Source:   DriverService
Computer: OPTIPLEX755
Context Type: Driver
Context Name: HAI Omni Pro II - Debug : HAI Omni Pro II - Debug
Description:
Setting status to negative(-96) for unit(UNIT 137) original status (4)

Code: [Select]
Date:     11/22/2014
Time:     4:58:35 PM
Severity: Debug
Source:   DriverService
Computer: OPTIPLEX755
Context Type: Driver
Context Name: HAI Omni Pro II - Debug : HAI Omni Pro II - Debug
Description:
HAI Omni Driver received unsolicited packet (shown in hex): 21 0A 3B 02 07 00 89 04 00 00 00 00 E6 DD 00 00 6F 39 68 2F 91 00 00 00 00 00 00 00 00 00 00 00 77 A9 F5 38 00 00 00 00 00 00 00 00 00 00 00 00 EF A3 1E 87 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 46 F2 00 00 00 98 D2 3A FA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

The weird thing is unit 137 isn't even used. But in Elve it does now show a level of 5, and in pc access in shows Scene D??

broconne

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Re: Elve 2.1 Beta Download
« Reply #70 on: November 23, 2014, 07:54:56 am »
Finding some issues with rules that trigger off of flag changes. They seem to trigger multiple times and sometimes multiple rules are triggering from one flag, a flag that should only trigger one rule.
I remade all HAI rules and will see if theres any change.
Also, still getting the negative light error.

Code: [Select]
Computer: OPTIPLEX755
Context Type: Driver
Context Name: HAI Omni Pro II - Debug : HAI Omni Pro II - Debug
Description:
Setting status to negative(-95) for unit(UNIT 137) original status (5)

Code: [Select]
Date:     11/22/2014
Time:     5:01:39 PM
Severity: Debug
Source:   DriverService
Computer: OPTIPLEX755
Context Type: Driver
Context Name: HAI Omni Pro II - Debug : HAI Omni Pro II - Debug
Description:
HAI Omni Driver received unsolicited packet (shown in hex): 21 0A 3B 02 07 00 89 05 00 00 00 00 DB 1D 00 00 4E 4D 91 07 72 65 65 74 8D 94 00 00 00 00 00 00 86 00 19 4A 00 00 00 00 00 00 00 00 00 00 00 00 EF A3 1E 87 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 46 F2 00 00 00 98 D2 3A FA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Code: [Select]
Date:     11/22/2014
Time:     4:58:36 PM
Severity: Debug
Source:   DriverService
Computer: OPTIPLEX755
Context Type: Driver
Context Name: HAI Omni Pro II - Debug : HAI Omni Pro II - Debug
Description:
Setting status to negative(-96) for unit(UNIT 137) original status (4)

Code: [Select]
Date:     11/22/2014
Time:     4:58:35 PM
Severity: Debug
Source:   DriverService
Computer: OPTIPLEX755
Context Type: Driver
Context Name: HAI Omni Pro II - Debug : HAI Omni Pro II - Debug
Description:
HAI Omni Driver received unsolicited packet (shown in hex): 21 0A 3B 02 07 00 89 04 00 00 00 00 E6 DD 00 00 6F 39 68 2F 91 00 00 00 00 00 00 00 00 00 00 00 77 A9 F5 38 00 00 00 00 00 00 00 00 00 00 00 00 EF A3 1E 87 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 46 F2 00 00 00 98 D2 3A FA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

The weird thing is unit 137 isn't even used. But in Elve it does now show a level of 5, and in pc access in shows Scene D??
Do you have an example rule I can make a test case?  Also, is this a rule where the hai changes the flag and elve observes?  Or is elve also adjusting flag value?

broconne

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Re: Elve 2.1 Beta Download
« Reply #71 on: November 23, 2014, 07:58:37 am »
So far...WOW! So much better! Even just clicking the device in EMS, it used to take up to 5 minutes to populate, now it's almost instant. Everything about the driver is faster. Great job!

I knew there was a thread about this so I looked it up. Here it is:
http://www.codecoretechnologies.com/community/index.php?topic=430.msg2168#msg2168

Most may have already been included but I would still like to be able to view the logs from Elve. This is the equivalent of "read from controller" in pc access.
Glad you like it.  The reason its faster is because I had to change the core of the driver and maintain the hai state in my own objects in memory.  I have no idea what the core hai library does when you query its fields, but that is why it was breaking in 2.1 the underlying hai library was too slow.

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: Elve 2.1 Beta Download
« Reply #72 on: November 23, 2014, 11:39:06 am »
Do you have an example rule I can make a test case?  Also, is this a rule where the hai changes the flag and elve observes?  Or is elve also adjusting flag value?

Elve isn't adjusting, just monitoring for changes.
Basically, I have to use flags to determine the status of my doors since the driver never had lock status. So I have one flag set to each door, locked is a 1, unlocked is a 0.
So the rule is set to "Flag level changed" as the event. On the "whenever" tab, property index is the correct flag, flag level to filter on is 0.
Action List tab:

Code: [Select]
// Get the lock status
if (omni.FlagLevels[406]==1)
backlockStatus = "Locked";
else
backlockStatus = "Unlocked";

// Determine if it changed.
changed = false;
if (vars.IsDefined( "BackLockStatus" ) == false)
changed = true;
else if (vars.BackLockStatus != backlockStatus)
changed = true;

// If it changed then set the global variable and send email.
if (changed)
{
vars.BackLockStatus = backlockStatus;
}

System.Sleep((6) * 1000);

if (omni.FlagLevels[406]==0)
{
"Sends me a message"
}

vars.BackLockStatus = backlockStatus;

I also have a rule that triggers from a "zone physical state changed" and it seems like it's being triggered from the above rule and maybe others. I think it may be that any zone is triggering every rule that is set to be triggered from a zone violated. So it's not respecting the zone set for a rule, and any zone violated is triggering all if that makes sense.
I'll try to create more zone state based rules to test this.


Update:
I just created another zone rule and sure enough, any zone violated will trigger any rule set as "zone physical status changed" . Also, the door lock rules I have filter on a flag that goes 0, I just checked them also, they trigger on any flag that goes to a 0. I tested by changing a flag I have for determining which season it is (nothing to do with any Elve rules), and setting it to a 1 did nothing, setting it to a 0 triggered all 4 door rules.
« Last Edit: November 23, 2014, 11:52:25 am by Frunple »

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: Elve 2.1 Beta Download
« Reply #73 on: November 23, 2014, 03:12:19 pm »
As an update to the negative light setting, I went into pc access last night and set unit 137 off manually. I noticed the error came in when my "sunset lighting" event would trigger (in the omni, not Elve).
With the unit turned off, I didn't get any errors today. Not sure why that unit was ever on or what turned it on but it may be corrected now. I'll monitor it to see if it comes back.

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: Elve 2.1 Beta Download
« Reply #74 on: November 23, 2014, 06:58:35 pm »
Spoke too soon.

Code: [Select]
Date:     11/23/2014
Time:     5:24:04 PM
Severity: Debug
Source:   DriverService
Computer: OPTIPLEX755
Context Type: Driver
Context Name: HAI Omni Pro II - Debug : HAI Omni Pro II - Debug
Description:
Setting status to negative(-96) for unit(UNIT 137) original status (4)

Not sure why it's triggering or what's triggering it now.