aficustree / homebridge-alarmdecoder-platform

Homebridge plugin for the AlarmDecoder interface for Honeywell and DSC Alarm Systems. Exposes the security system and all zones (via Contact Sensors and Motion Sensors) to Apple's Homekit. Control your alarm through Siri.
Apache License 2.0
18 stars 11 forks source link

Bad Request inside of Webapp with Webhook setup as outlined #13

Closed DrJeff closed 4 years ago

DrJeff commented 4 years ago

Custom notification not updating sensor only on start or restart of HomeBridge Getting this error in log Any Ideas?

[2020-04-29 04:14:19,197] INFO in types: Background notification function CustomNotification._do_post() starting.
[2020-04-29 04:14:19,200] INFO in types: Event: 1044296:0:0:1:1:0:0
[2020-04-29 04:14:19,299] INFO in types: Event Custom Notification Failed

[2020-04-29 04:14:20,078] INFO in types: Background notification functions running 2.
[2020-04-29 04:14:20,079] INFO in types: Background notification function CustomNotification._do_post() finished with Exception('Custom Notification Failed (400) Bad Request',) line 1144.

[2020-04-29 04:14:20,079] INFO in types: Background notification function CustomNotification._do_post() finished with Exception('Custom Notification Failed (400) Bad Request',) line 1144.

[2020-04-29 04:14:21,697] INFO in types: Background notification function CustomNotification._do_post() starting.
[2020-04-29 04:14:21,699] INFO in types: Event: 1001600:0:0:0:1:0:1
[2020-04-29 04:14:21,800] INFO in types: Event Custom Notification Failed

[2020-04-29 04:14:24,502] INFO in types: Event: Ready status has changed to True
[2020-04-29 04:14:24,591] INFO in types: Background notification function CustomNotification._do_post() starting.
[2020-04-29 04:14:24,594] DEBUG in types: Event: Zone Family Room Door (21) has been restored.
[2020-04-29 04:14:24,683] INFO in types: Event Custom Notification Failed

[2020-04-29 04:14:25,083] INFO in types: Background notification functions running 2.
[2020-04-29 04:14:25,083] INFO in types: Background notification function CustomNotification._do_post() finished with Exception('Custom Notification Failed (400) Bad Request',) line 1144.

[2020-04-29 04:14:25,084] INFO in types: Background notification function CustomNotification._do_post() finished with Exception('Custom Notification Failed (400) Bad Request',) line 1144.
aficustree commented 4 years ago

is this a log from the alarmdecoder webui? can you confirm the version of the plugin you were using? can you confirm you're using an HTTP GET from the webUI to the plugin and you have the URL correct?

DrJeff commented 4 years ago

Yes the Log is from alarmdecoder webgui, Plugin version is homebridge-alarmdecoder-platform v3.1.5 I was using POST so I changed to GET now and still problems from alarmdecoder webgui, Plugin version is homebridge-alarmdecoder-platform v3.1.5 I was using POST so I changed to GET now and still problems

Screen Shot 2020-04-29 at 11 43 06 AM Screen Shot 2020-04-29 at 11 42 42 AM

[2020-04-29 11:44:14,320] INFO in types: Event Custom Notification Failed on GET method

[2020-04-29 11:44:16,998] INFO in types: Background notification functions running 1.
[2020-04-29 11:44:16,999] INFO in types: Background notification function CustomNotification._do_get() finished with Exception('Custom Notification Failed',) line 1173.

URL in webgui is set to IP of Homebridge Server. The Port is taken from Homebridge settings config file Screen Shot 2020-04-29 at 11 43 16 AM

Not sure if it makes a difference but my Zones are wireless, So should I be checking the RFX box inside webgui custom notifications or the LRR

aficustree commented 4 years ago

it should be a POST

URL=192.168.0.233:5555 Path=/

DrJeff commented 4 years ago

Ok Now thats what was needed! Thanks Pictures helped show my mistakes!

Now my HomeBridge Log shows status but the Homekit sensors not showing updates Open, Closed of contacts any thoughts

Thanks working Now!