Homebridge Plugin

Contribute source code here. Anything not accompanied by source code will be removed.

Re: Homebridge Plugin

Postby tommyd75 » Sat Dec 30, 2017 9:48 am

Works great! :D I was able to add some smokes and one Co detector.
Thanks again.
FullSizeRender.jpg
FullSizeRender.jpg (116.15 KiB) Viewed 117203 times

Sent from my iPhone using Tapatalk
tommyd75
newt
newt
 
Posts: 15
Joined: Sat Nov 25, 2017 10:54 am

Re: Homebridge Plugin

Postby tommyd75 » Sat Dec 30, 2017 10:49 am

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 117122 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!
tommyd75
newt
newt
 
Posts: 15
Joined: Sat Nov 25, 2017 10:54 am

Re: Homebridge Plugin

Postby aficustree » Sat Dec 30, 2017 12:33 pm

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.
aficustree
Junior Nut
Junior Nut
 
Posts: 23
Joined: Sun Jun 11, 2017 7:20 pm

Re: Homebridge Plugin

Postby tommyd75 » Sat Dec 30, 2017 12:49 pm

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?
tommyd75
newt
newt
 
Posts: 15
Joined: Sat Nov 25, 2017 10:54 am

Re: Homebridge Plugin

Postby aficustree » Sat Dec 30, 2017 1:09 pm

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.
aficustree
Junior Nut
Junior Nut
 
Posts: 23
Joined: Sun Jun 11, 2017 7:20 pm

Re: Homebridge Plugin

Postby tommyd75 » Sat Dec 30, 2017 3:31 pm

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 ] }
tommyd75
newt
newt
 
Posts: 15
Joined: Sat Nov 25, 2017 10:54 am

Re: Homebridge Plugin

Postby aficustree » Sun Dec 31, 2017 12:32 pm

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 .
aficustree
Junior Nut
Junior Nut
 
Posts: 23
Joined: Sun Jun 11, 2017 7:20 pm

Re: Homebridge Plugin

Postby tommyd75 » Mon Jan 01, 2018 4:02 pm

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: [] }
tommyd75
newt
newt
 
Posts: 15
Joined: Sat Nov 25, 2017 10:54 am

Re: Homebridge Plugin

Postby kevin » Mon Jan 01, 2018 5:27 pm

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
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Homebridge Plugin

Postby tommyd75 » Mon Jan 01, 2018 5:34 pm

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.
tommyd75
newt
newt
 
Posts: 15
Joined: Sat Nov 25, 2017 10:54 am

PreviousNext

Return to Code Contributions

Who is online

Users browsing this forum: No registered users and 0 guests

cron