Page 1 of 1

Custom Notification Error - HOOBS

PostPosted: Wed Dec 02, 2020 4:02 pm
by davidw963
Just integrated Alarmdecoder with HOOBS and homekit - and so far it seems to work well. However, setting up custom notifications to see when doors/windows have been opened/closed has been a challenge. I have set the custom notification up, and I can get the alarm state and button states, however when a sensor state changes, it puts out an error in the app log as follows in red:

2020-12-02 12:25:21,271 INFO: Background notification function CustomNotification._do_post() starting. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:149]
2020-12-02 12:25:21,396 INFO: Event: 0590299:0:0:1:0:0:0 [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:521]
2020-12-02 12:25:24,038 INFO: Event: 1024384:1:1:0:1:1:0 [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:521]
2020-12-02 12:25:24,156 INFO: Event: 126600000000606c02456cf5ec0101010000 [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:521]
2020-12-02 12:25:24,336 INFO: Event: Ready status has changed to True [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:521]
2020-12-02 12:25:24,380 INFO: Background notification function CustomNotification._do_post() starting. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:149]
2020-12-02 12:25:24,483 INFO: Event: 1666000000006163024543f531fb456cf5ec03010101 [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:521]
2020-12-02 12:25:25,544 INFO: Background notification functions running 2. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:438]
2020-12-02 12:25:25,546 INFO: Background notification function CustomNotification._do_post() finished with gaierror(-2, 'Name or service not known') line 1137. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:454]
2020-12-02 12:25:25,547 INFO: Background notification function CustomNotification._do_post() finished with gaierror(-2, 'Name or service not known') line 1137. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:454]

2020-12-02 12:26:00,329 INFO: Event: 0921330:0:0:1:0:0:0 [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:521]
2020-12-02 12:26:00,451 INFO: Event: 126600000000626c02456cf5ec0101010000 [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:521]
2020-12-02 12:26:00,633 INFO: Event: Ready status has changed to False [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:521]
2020-12-02 12:26:00,673 INFO: Background notification function CustomNotification._do_post() starting. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:149]
2020-12-02 12:26:00,743 INFO: Event: 1666000000006363024543f531fb456cf5ec03020106 [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:521]
2020-12-02 12:26:03,630 INFO: Event: 0921330:0:0:0:0:0:0 [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:521]
2020-12-02 12:26:03,751 INFO: Event: 126600000000646c02456cf5ec0101010000 [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:521]
2020-12-02 12:26:03,867 INFO: Event: 1666000000006563024543f531fb456cf5ec03010101 [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:521]
2020-12-02 12:26:04,126 INFO: Event: Ready status has changed to True [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:521]
2020-12-02 12:26:04,163 INFO: Background notification function CustomNotification._do_post() starting. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:149]
2020-12-02 12:26:05,554 INFO: Background notification functions running 2. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:438]
2020-12-02 12:26:05,556 INFO: Background notification function CustomNotification._do_post() finished with gaierror(-2, 'Name or service not known') line 1137. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:454]
2020-12-02 12:26:05,558 INFO: Background notification function CustomNotification._do_post() finished with gaierror(-2, 'Name or service not known') line 1137. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:454]

I have the notification set up url to the Homebridge device (HOOBS) IP, including the port. So unsure where I am going sideways.

Cheers

Re: Custom Notification Error - HOOBS

PostPosted: Thu Dec 03, 2020 10:03 pm
by davidw963
OK Update -

looked over my notification IP as the POST/gaierror is a DNS issue - so removed the http:// and placed in my numeric IP and Port. Getting closer, but now it turns into a 404 not found error.

2020-12-03 21:59:07,489 INFO: Event Custom Notification Failed [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:1143]
2020-12-03 21:59:11,318 INFO: Background notification functions running 1. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:438]
2020-12-03 21:59:11,320 INFO: Background notification function CustomNotification._do_post() finished with Exception('Custom Notification Failed (404) Not Found',) line 1144. [in /opt/alarmdecoder-webapp/ad2web/notifications/types.py:454]

Thanks for any help you can give. Cheers

Re: Custom Notification Error - HOOBS

PostPosted: Sat Dec 05, 2020 6:44 am
by davidw963
SOLVED! After a bit of digging around, there were some port assignment issues that had to be addressed in HOOBS. Crisis averted.

Cheers

Re: Custom Notification Error - HOOBS

PostPosted: Thu Oct 28, 2021 2:35 pm
by gkdavids57
I'm having the same 404 error with my HOOBS integration. Could anyone share the port number one should use to POST back to a HOOBS server?

Re: Custom Notification Error - HOOBS

PostPosted: Tue Nov 02, 2021 8:25 am
by gkdavids57
The URL (including port number) one places in the custom notification configuration within AlarmDecoder web app must be the same as the "port" number one set in the config.json for the AlarmDecoder-platform plugin. Here's an excerpt from my config.json...
{
"platform": "alarmdecoder-platform",
"name": "ADT Security",
"port": "10000",

I placed "10000" in the custom configuration URL as follows: xx.xx.xx.xx:10000 and all worked as I expected. The actual value doesn't much matter so long as they match AND don't conflict with used port numbers on either system (Homebridge and AlarmDecoder).