Page 2 of 6

Re: Homebridge Plugin

PostPosted: Sat Dec 30, 2017 9:48 am
by tommyd75
Works great! :D I was able to add some smokes and one Co detector.
Thanks again.
FullSizeRender.jpg
FullSizeRender.jpg (116.15 KiB) Viewed 113972 times

Sent from my iPhone using Tapatalk

Re: Homebridge Plugin

PostPosted: Sat Dec 30, 2017 10:49 am
by tommyd75
I just realized that the characteristic you added was a C02 detector but my Honeywell wireless detector is a Co detector, I was able to change the characteristic in the index.js file to show it as a Co and not a Co2 and restarted it all and it shows correctly now.
Not sure if you want to update your Github repository to reflect that.

Image-1.png
Image-1.png (14.37 KiB) Viewed 113891 times

Also one last question, I noticed that I am able to change my window and door sensors in the Home app to be either door contacts or windows, is there any way for me to have them come up this way automatically once I add them the first time instead of having to select the type on contact that it is?


Thanks again!

Re: Homebridge Plugin

PostPosted: Sat Dec 30, 2017 12:33 pm
by aficustree
Lol, thanks, yes, should have been Carbon Monoxide, i've made the changes and will push it to the dev and master branch. I didn't actually realize you could specify the type of contact sensor. That said, i've gone through the source code of HAP-NodeJS and i can't seem to find anywhere you can set that programatically. Since the platform searches for cached accessories, you should only have to set it once and it should persist across reboots. I'll keep an eye out if there appears a way to change it in the future.

Re: Homebridge Plugin

PostPosted: Sat Dec 30, 2017 12:49 pm
by tommyd75
Thanks for all the work so far, I just noticed that the smokes are not showing alarms in the Home app, anything I can do to change this in notifications?

Re: Homebridge Plugin

PostPosted: Sat Dec 30, 2017 1:09 pm
by aficustree
as in it doesn't even show it being triggered? do you see the zone fault come across the home bridge log? Sadly my testing abilities are limited without one but let me know if you see the faulted zone in the log. If you do, that means it's likely the param i'm passing to homekit.

Re: Homebridge Plugin

PostPosted: Sat Dec 30, 2017 3:31 pm
by tommyd75
I just tried it again, it shows in the Homebridge log.....


{ last_message_received: '[00010001110000000A--],029,[f7150004002900002a0200000004fc],"ALARM 029 1ST FLOOR SMOKE


"',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: false,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [ 29 ] }

Re: Homebridge Plugin

PostPosted: Sun Dec 31, 2017 12:32 pm
by aficustree
i've got no idea, on the dev branch, i've updated some debug code, you should see in the logs

Code: Select all
zone is a smoke sensor, status is '+alarmZone.faulted


which will tell us whether or not it's picking it up as a smoke sensor and the status.

You might also clear out the persist and accessory cache just to double check .

Re: Homebridge Plugin

PostPosted: Mon Jan 01, 2018 4:02 pm
by tommyd75
Ok, I updated it and deleted the cachedaccesories and persist files and reimported all the devices as if they were new.

I get a notification once perform the first disarm it shows alarm and I get the notification it stays in alarm on the Home app until I clear it by doing the second disarm. I let it go into alarm for at least a minute. So it will not send the notification until the fire alarm has been acknowledged here's the log.......


[2018-1-1 17:54:48] [Security System] zone is a smoke sensor, status is false
[2018-1-1 17:54:48] [Security System] zone is a smoke sensor, status is false
[2018-1-1 17:54:48] [Security System] zone is a smoke sensor, status is false
[2018-1-1 17:55:17] [Security System] getting state for 32 1st Flr Carbon Monoxide Detector
[2018-1-1 17:55:17] [Security System] getting state for 26 2nd Flr Smoke Detector
[2018-1-1 17:55:17] [Security System] getting state for 30 Basement Smoke Detector
[2018-1-1 17:55:17] [Security System] getting state for Security System
[2018-1-1 17:55:17] [Security System] getting state for Security System
[2018-1-1 17:55:17] [Security System] getting state for 29 1st Flr Smoke detector
[2018-1-1 17:55:17] [Security System] { last_message_received: '[00010501110001000A--],026,[f7150004002605212a0200000004fc],"FIRE 026 2ND FLOOR SMOKE "',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: true,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [ 5, 6 ] }
[2018-1-1 17:55:17] [Security System] { last_message_received: '[00010501110001000A--],026,[f7150004002605212a0200000004fc],"FIRE 026 2ND FLOOR SMOKE "',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: true,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [ 5, 6 ] }
[2018-1-1 17:55:17] [Security System] { last_message_received: '[00010501110001000A--],026,[f7150004002605212a0200000004fc],"FIRE 026 2ND FLOOR SMOKE "',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: true,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [ 5, 6 ] }
[2018-1-1 17:55:17] [Security System] { last_message_received: '[00010501110001000A--],026,[f7150004002605212a0200000004fc],"FIRE 026 2ND FLOOR SMOKE "',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: true,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [ 5, 6 ] }
[2018-1-1 17:55:17] [Security System] { last_message_received: '[00010501110001000A--],026,[f7150004002605212a0200000004fc],"FIRE 026 2ND FLOOR SMOKE "',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: true,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [ 5, 6 ] }
[2018-1-1 17:55:17] [Security System] { last_message_received: '[00010501110001000A--],026,[f7150004002605212a0200000004fc],"FIRE 026 2ND FLOOR SMOKE "',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: true,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [ 5, 6 ] }
[2018-1-1 17:55:17] [Security System] { last_message_received: '[00010501110001000A--],026,[f7150004002605212a0200000004fc],"FIRE 026 2ND FLOOR SMOKE "',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: true,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [ 5, 6 ] }
[2018-1-1 17:55:17] [Security System] { last_message_received: '[00010501110001000A--],026,[f7150004002605212a0200000004fc],"FIRE 026 2ND FLOOR SMOKE "',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: true,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [ 5, 6 ] }
[2018-1-1 17:55:17] [Security System] { last_message_received: '[00010501110001000A--],026,[f7150004002605212a0200000004fc],"FIRE 026 2ND FLOOR SMOKE "',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: true,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [ 5, 6 ] }
[2018-1-1 17:55:17] [Security System] { last_message_received: '[00010501110001000A--],026,[f7150004002605212a0200000004fc],"FIRE 026 2ND FLOOR SMOKE "',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: true,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [ 5, 6 ] }
[2018-1-1 17:55:17] [Security System] { last_message_received: '[00010501110001000A--],026,[f7150004002605212a0200000004fc],"FIRE 026 2ND FLOOR SMOKE "',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: true,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [ 5, 6 ] }
[2018-1-1 17:55:18] [Security System] Getting current state since ping received
[2018-1-1 17:55:18] [Security System] Received notification and body data:
[2018-1-1 17:55:18] [Security System]
[2018-1-1 17:55:18] [Security System] { last_message_received: '[00010501100000003A--],026,[f71500040026050d280200000004fc],"****DISARMED**** ZONES IN ALARM "',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: false,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [ 5 ] }
[2018-1-1 17:55:18] [Security System] zone is a smoke sensor, status is false
[2018-1-1 17:55:18] [Security System] zone is a smoke sensor, status is false
[2018-1-1 17:55:18] [Security System] zone is a smoke sensor, status is false
[2018-1-1 17:55:25] [Security System] Getting current state since ping received
[2018-1-1 17:55:25] [Security System] Received notification and body data:
[2018-1-1 17:55:25] [Security System]
[2018-1-1 17:55:26] [Security System] { last_message_received: '[00010501110001000A--],026,[f7150004002605212a0200000004fc],"FIRE 026 2ND FLOOR SMOKE "',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: true,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [] }
[2018-1-1 17:55:26] [Security System] zone is a smoke sensor, status is false
[2018-1-1 17:55:26] [Security System] zone is a smoke sensor, status is false
[2018-1-1 17:55:26] [Security System] zone is a smoke sensor, status is false
[2018-1-1 17:55:51] [Security System] Getting current state since ping received
[2018-1-1 17:55:51] [Security System] Received notification and body data:
[2018-1-1 17:55:51] [Security System]
[2018-1-1 17:55:52] [Security System] { last_message_received: '[00010101110000000A--],026,[f7150004002601002a0200000004fc],"ALARM 026 2ND FLOOR SMOKE "',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: false,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [ 26 ] }
[2018-1-1 17:55:52] [Security System] zone is a smoke sensor, status is false
[2018-1-1 17:55:52] [Security System] zone is a smoke sensor, status is true
[2018-1-1 17:55:52] [Security System] zone is a smoke sensor, status is false
[2018-1-1 17:56:17] [Security System] Getting current state since ping received
[2018-1-1 17:56:17] [Security System] Received notification and body data:
[2018-1-1 17:56:17] [Security System]
[2018-1-1 17:56:17] [Security System] { last_message_received: '[10010101100000003A--],026,[f71500040026011c28020000000000]," SMARTHOME READY TO ARM "',
panel_alarming: false,
panel_armed: false,
panel_armed_stay: false,
panel_bypassed: {},
panel_fire_detected: false,
panel_on_battery: false,
panel_panicked: false,
panel_powered: true,
panel_relay_status: [],
panel_type: 'ADEMCO',
panel_zones_faulted: [] }

Re: Homebridge Plugin

PostPosted: Mon Jan 01, 2018 5:27 pm
by kevin
With regard to not clearing until 2nd disarm - this is correct behavior and should be mirrored at a physical keypad as well - note this only applies to fires/smokes/co's

Re: Homebridge Plugin

PostPosted: Mon Jan 01, 2018 5:34 pm
by tommyd75
Yes, I'm aware of that behavior, what I'm trying to say is the device doesn't show as in alarm or "faulted' until I clear it.
At least it's updating status, maybe it's the way notifications come in from the AD2Pi, I noticed that Fire alarms are a separate box that you have to check.