e-mcgee / paradox_platform

Paradox alarm homebridge platform
25 stars 6 forks source link

Cannot control alarm or correctly read status #11

Closed booboisie closed 6 years ago

booboisie commented 7 years ago

Hi – thanks for your work on this plug in. I’m just getting started with the plug in and homebridge running on Rasbian against a Paradox EVO192 (v4.52) with IP150 (v1.39.02) and have run into some issues getting it up and running correctly.

The Paradox system as 15 zones (garage doors, motion sensor and contact sensors) across two “areas”. On startup of homebridge in the console, the alarm status shows as “Alarmstatus:Disarmed”, however on the Home app, it continues to show as “Arming…”.

The status of zones show as “off” in the console and the home app regardless of state – even after triggering the PGM from iParadox the plugin does not correctly report the status of the garage door, nor enable it to be controlled from the home app.

I’ve included an excerpt from my config.json file below for reference. Would appreciate any pointers on where I'm going wrong to help get this up and running.

Thanks and Regards, Chris

{ "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154", "manufacturer": "@nfarina", "model": "Homebridge", "serialNumber": "0.4.20" },

 "platforms": [

     {
        "platform": "Paradox",
        "ip": "192.168.xxx.xxx",
        "port": 10000,
        "password": "xxxxx",

"accessories": [ { "name": "Alarm", "config": { "type": "Alarm" } },

        {
          "name": "Garage Door",
          "config": {
            "type": "Garage Door",
            "zone": 21,
            "pgm": 5,
            "doorOpensInSeconds": 15
          }
        },

        {
          "name": "Stairs Hall PIR",
          "config": {
            "type": "Motion Sensor",
            "zone": 9
          }
        },
e-mcgee commented 7 years ago

Hi, the first issue you mention is related to the initial state problem. I have solved this for the PGM zones recently and need to fix for the alarm. It is easy to solve by simply setting the alarm to the correct state, i.e. disarm to match the actual state. Almost like syncing it initially. thereafter it is fine. Once I update the code it should work correctly from startup but for now the initial state is not correct.

The fact that your console states do not match the actual states means that the plugin is not getting the states from the alarm. There could be several reasons for it so you will need to troubleshoot.

An obvious issue could be that the alarm is busy with another application logged in such as iParadox. Unfortunately the alarm only allows a single login at a time. Thus if iParadox is connected nothing else can connect, and similarly if the plugin is logged in nothing else can connect. You should be able to spot this on the console as it will state that it cannot connect. To solve you need to make sure nothing else is connected at startup. It also means that iParadox will not work once the plugin is connected unfortunately. I have also not tested with your alarm type, so it can be that your alarm does not work. To confirm if it should work I suggest scanning through the various forums to see if other people had issues with your version alarm.

On the PGMs you must know that you need a reed switch (magnetic switch) that indicates whether the door is open or closed connected to the built in zone on the PGM. The plugin uses that to determine of the door is open or not. I am still battling with getting the Home app status correctly updated at the moment. I hope to solve that soon but it is a bit of trial and error at the moment. However, the plugin gets the correct status so you should be able to see that correctly once the you get the plugin to talk to your alarm.

Another pointer is that, once you have the plugin talk to your alarm the zone numbering should be confirmed as well. It could be that you are not matching the zone numbers correctly.

Last thing, note that the plugin does not support multiple partitions yet as I do not yet know how to get the second partition state read. I hope to get some input on that soon which will enable the plugin to read both partition status, but until that is resolved it only supports one.

booboisie commented 7 years ago

Thanks for the quick response @e-mcgee. I can see in the console (below) the plugin logging into the alarm (and when it has an issue logging in due to web/iParadox being connected). I've (re)checked my alarm zone numbering in config.json with the zone numbers visible through web (they /look/ ok) - I'm adding some tracing to help with my understanding of the code and further troubleshooting. Will continue to trawl through forums for pointers to others using the EVO192.

Thanks again, Chris

[2017-9-4 16:38:38] Homebridge is running on port 51826. [2017-9-4 16:38:47] Mute : [false] [2017-9-4 16:38:47] Got status [2017-9-4 16:38:47] Results: [2017-9-4 16:38:47] Zone 9 off (Stairs Hall PIR) [2017-9-4 16:38:47] Zone 10 off (Dining Room PIR) [2017-9-4 16:38:47] Zone 11 off (Living Room PIR) [2017-9-4 16:38:47] Zone 12 off (Meals PIR) [2017-9-4 16:38:47] Zone 13 off (Laundry PIR) [2017-9-4 16:38:47] Zone 14 off (Family PIR) [2017-9-4 16:38:47] Zone 15 off (Cabana PIR) [2017-9-4 16:38:47] Zone 16 off (Front Door_L RS) [2017-9-4 16:38:47] Zone 17 off (Kitchen Slide RS) [2017-9-4 16:38:47] Zone 18 off (Laundry Door RS) [2017-9-4 16:38:47] Zone 19 off (Living Hatch RS) [2017-9-4 16:38:47] Zone 20 off (Ground Hall PIR) [2017-9-4 16:38:47] Zone 21 off (Garage Door) [2017-9-4 16:38:47] Zone 22 off (Front Gate) [2017-9-4 16:38:47] Zone 23 off (Cabana Door RS) [2017-9-4 16:38:47] Alarmstatus :Disarmed [2017-9-4 16:38:47] Getting Status - Connected to alarm! [2017-9-4 16:38:48] Logging in [2017-9-4 16:38:48] Checksum : [2017-9-4 16:38:48] false [2017-9-4 16:38:48] Log in successfull [2017-9-4 16:38:49] Checksum : [2017-9-4 16:38:49] false [2017-9-4 16:38:49] Checksum : [2017-9-4 16:38:49] false [2017-9-4 16:38:50] Checksum : [2017-9-4 16:38:50] false [2017-9-4 16:38:50] Checksum : [2017-9-4 16:38:50] true [2017-9-4 16:38:51] Geting Status... [2017-9-4 16:38:51] Unknown [2017-9-4 16:38:57] Mute : [false] [2017-9-4 16:38:57] Got status [2017-9-4 16:38:57] Results: [2017-9-4 16:38:57] Zone 9 off (Stairs Hall PIR) [2017-9-4 16:38:57] Zone 10 off (Dining Room PIR) [2017-9-4 16:38:57] Zone 11 off (Living Room PIR) [2017-9-4 16:38:57] Zone 12 off (Meals PIR) [2017-9-4 16:38:57] Zone 13 off (Laundry PIR) [2017-9-4 16:38:57] Zone 14 off (Family PIR) [2017-9-4 16:38:57] Zone 15 off (Cabana PIR) [2017-9-4 16:38:57] Zone 16 off (Front Door_L RS) [2017-9-4 16:38:57] Zone 17 off (Kitchen Slide RS) [2017-9-4 16:38:57] Zone 18 off (Laundry Door RS) [2017-9-4 16:38:57] Zone 19 off (Living Hatch RS) [2017-9-4 16:38:57] Zone 20 off (Ground Hall PIR) [2017-9-4 16:38:57] Zone 21 off (Garage Door) [2017-9-4 16:38:57] Zone 22 off (Front Gate) [2017-9-4 16:38:57] Zone 23 off (Cabana Door RS) [2017-9-4 16:38:57] Alarmstatus :Disarmed [2017-9-4 16:38:57] Getting Status - Connected to alarm! [2017-9-4 16:38:58] Logging in [2017-9-4 16:38:58] Checksum : [2017-9-4 16:38:58] false [2017-9-4 16:38:59] Log in successfull [2017-9-4 16:38:59] Checksum : [2017-9-4 16:38:59] false [2017-9-4 16:38:59] Checksum : [2017-9-4 16:38:59] false [2017-9-4 16:39:00] Checksum : [2017-9-4 16:39:00] false [2017-9-4 16:39:00] Checksum : [2017-9-4 16:39:00] true [2017-9-4 16:39:01] Geting Status... [2017-9-4 16:39:01] Unknown

e-mcgee commented 6 years ago

New version available now that correctly updates status at all times. There was a bug in the homebridge version I used but all works well now that I updated to latest version (v0.4.36).

e-mcgee commented 6 years ago

Two partitions supported now

booboisie commented 6 years ago

Awesome e-mcgee, thank you! I’ve had to move out of the house with the Paradox temporarily whilst we renovate - but will be testing as soon as we get back in. Really appreciate your support and efforts making these changes.

Regards, Chris

From: e-mcgee [mailto:notifications@github.com] Sent: Friday, 2 February 2018 8:18 AM To: e-mcgee/paradox_platform paradox_platform@noreply.github.com Cc: booboisie booboisie@hotmail.com; Author author@noreply.github.com Subject: Re: [e-mcgee/paradox_platform] Cannot control alarm or correctly read status (#11)

Two partitions supported now

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fe-mcgee%2Fparadox_platform%2Fissues%2F11%23issuecomment-362404752&data=02%7C01%7C%7C6a1124411726402da5b408d569b9578f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636531167106545150&sdata=hxptN595Ijz7pP%2BWuWZ1YGfFrqqomGyG3CUHi5JVZUA%3D&reserved=0, or mute the threadhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAeGC6KZxoJQ5qDv2azPWUTscQQyQ_89Kks5tQiokgaJpZM4PLb5R&data=02%7C01%7C%7C6a1124411726402da5b408d569b9578f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636531167106545150&sdata=cVdIbMdhxV1agMZ6ritqOwEiaHRcm6E6DrTf4p0AWYc%3D&reserved=0.