AD2Pi Hubitat Hub Intigration

General Discussion

AD2Pi Hubitat Hub Intigration

Postby raidflex » Thu Jan 10, 2019 12:35 pm

I switched over from Smartthings to Hubitat about 6 months ago and have moved over all my devices. I currently have a AD2Pi setup and with help from the Hubitat community have ported most of the ST app/driver code to work with Hubitat. But there is still one part left, which is the Hubitat Safety Monitor integration. This is equivalent to SHM on ST. In its current state the ported app allows me to arm/disarm the system from the Hubitat Safety monitor. But if I arm/dism from the keypad, the Hubitat Safety monitor's status does not update. Not being a developer I am looking for some assistance in both finishing the integration of Hubitat Safety Monitor and also cleaning up any old ST code that is not needed anymore.

I appreciate any assistance with this Thanks.

Below is the ported Hubitat app/driver.

https://github.com/HubitatCommunity/Hub ... armDecoder

This is some info app/driver porting and HSM.

https://community.hubitat.com/t/hubitat ... -api/934/3
https://community.hubitat.com/t/app-and ... ubitat/812
raidflex
newt
newt
 
Posts: 10
Joined: Wed May 31, 2017 10:50 am

Re: AD2Pi Hubitat Hub Intigration

Postby raidflex » Mon Feb 11, 2019 6:35 am

Bump, any help is appreciated.
raidflex
newt
newt
 
Posts: 10
Joined: Wed May 31, 2017 10:50 am

Re: AD2Pi Hubitat Hub Intigration

Postby mathewss » Mon Feb 11, 2019 4:50 pm

Thanks for the bump. This I had missed. Just looking over Hubitat and I already have many many questions. I currently use ST hub at my house but I have my issues and am more than willing to play with something else to see if it works better for me. Do they have a developer program so I can get my hands on a hub for my lab to play with?

I looked over this code but as far as I can see it looks to be the exact same thing as the ST groovy code. What exactly is this magic? Does this system support the exact same environment? It looks like from the diff I did that it has some differences in addressing things. It does not have the port # just the ip.

Best
Sean M
mathewss
Moderator
Moderator
 
Posts: 34
Joined: Fri Dec 06, 2013 11:14 am

Re: AD2Pi Hubitat Hub Intigration

Postby mathewss » Mon Feb 11, 2019 5:38 pm

I just ordered a Hubitat Elevation. This should be interesting. It looks to be focused on a few key issues that ST suffers from. One key one is the local only processing something HUGE for an alarm!

Please do let me know the "diff" or changes you have made to the driver so it works so I can get up to speed on what is needed to fix the SHM or what ever they call it in Hubitat.

Best
Sean M
mathewss
Moderator
Moderator
 
Posts: 34
Joined: Fri Dec 06, 2013 11:14 am

Re: AD2Pi Hubitat Hub Intigration

Postby raidflex » Thu Feb 21, 2019 7:14 am

mathewss wrote:I just ordered a Hubitat Elevation. This should be interesting. It looks to be focused on a few key issues that ST suffers from. One key one is the local only processing something HUGE for an alarm!

Please do let me know the "diff" or changes you have made to the driver so it works so I can get up to speed on what is needed to fix the SHM or what ever they call it in Hubitat.

Best
Sean M


There was not many changes to the Network driver, most changes were to the AlarmDecoder smartapp. It was a couple months ago so I am not sure the exact changes but if you compare these you should be able to see the changes. The original developer has updated the smartapp/driver recently so I modified my HE code to reflect these changes, so the only differences at this point should be for HE compatibility.

This is my version for HE.
https://github.com/HubitatCommunity/Hubitat-AlarmDecoder

This is the original version for ST.

https://github.com/nutechsoftware/alarmdecoder-smartthings

I also do see this error in the logs when I arm/disarm from the Hubitat Safety Monitor (SHM equivalent). But it does arm properly, its going the other way that is the issue. If I arm from the panel then HSM does not get updated with the status.

Code: Select all
dev:10342019-02-19 03:13:09.276 pm errorgroovy.lang.MissingMethodException: No signature of method: dev155025803993043685673.disarm() is applicable for argument types: () values: []
Possible solutions: isCase(java.lang.Object), is(java.lang.Object), wait(), push(), every(), find() (disarm)
raidflex
newt
newt
 
Posts: 10
Joined: Wed May 31, 2017 10:50 am

Re: AD2Pi Hubitat Hub Intigration

Postby mathewss » Mon Mar 11, 2019 11:57 am

I finally manged to slice out some time at home to get this moving. It was an easy setup and IMHO in some ways more simple that the "Graph1" pages. As noted it is all local so that is cool. I get some errors from the device when I delete the AD2* service I suspect this is a reasonable bug and not a reflection on the stability of the web services provided by the very tiny and fast Hubitat hub.

Load code was not too bad. I chose to view your changes RAW on github and load them using the URL option in the web interface.
Very easy but will need to be documented.
https://raw.githubusercontent.com/Hubit ... ice.groovy

I did find a typo I noted in github and stuff was nto working correctly so I was busy writing code last night.

The sendEvent(app,addZone,bar) recent work did not work :( I changed it to just add the zone it that worked fine.
The Hubitat Safety Monitor or for SmartThings the SHM are similar but the event names were different. I tried to change these to match the documentation for the HSM and it was not working. I will continue this evening to see why but it "should" have worked with the fixes I did.

I "think" I can support both ST and HT with one base of code. I will see about bringing these changes in and just have it be a setting for ST vs HT
Maybe better in the long run since the code is the same only different in some of the names and how addressing works. Both easy to resolve in code.

Best
Sean M
mathewss
Moderator
Moderator
 
Posts: 34
Joined: Fri Dec 06, 2013 11:14 am

Re: AD2Pi Hubitat Hub Intigration

Postby raidflex » Tue Mar 12, 2019 5:36 am

Thanks for looking at the code! If you need any testing I am more then willing to help out.
raidflex
newt
newt
 
Posts: 10
Joined: Wed May 31, 2017 10:50 am

Re: AD2Pi Hubitat Hub Intigration

Postby raidflex » Thu Apr 11, 2019 10:48 am

Thanks for the updates to the code, it seems to be working well so far. I do however see this error in the logs when arming/disarming the system from HSM. If I arm/disarm the system from the Alarmdecoder device in HE, I do not see the error, its only when using HSM.

Code: Select all
groovy.lang.MissingMethodException: No signature of method: user_app_alarmdecoder_AlarmDecoder_service_193.statusHandler() is applicable for argument types:
raidflex
newt
newt
 
Posts: 10
Joined: Wed May 31, 2017 10:50 am


Return to General

Who is online

Users browsing this forum: No registered users and 0 guests

cron