当前位置: 首页 > 软件库 > 其他开源 > 物联网 >

homebridge-alarmdecoder-platform

授权协议 Apache-2.0 License
开发语言 JavaScript
所属分类 其他开源、 物联网
软件类型 开源软件
地区 不详
投 递 者 沈子实
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

homebridge-alarmdecoder-platform

Homebridge dynamic platform plugin for the alarmdecoder (alarmdecoder.com) interface to Honeywell/DSC Systems & Interlogix (formerly GE Security, Caddx, NetworX) Systems.

  • For DSC/Homebridge: You must have a functioning alarmdecoder-webapp for the homebridge plugin to contact (via the rest API). Please make sure your webapp is updated with the latest alarmdecoder python package. The alarmdecoder webui must be setup to push alarm events and zone status changes using the enclosed directions.
  • For Interlogix/GE: You must have the Interlogix NX-584E board or a NX8E alarm system and an installed and a working installation of the NX584 Interface Library built by kk7ds. Note the Interlogix branch was written for a friend and is fairly untested, please report any issues

This plugin exposes the security system and any configured contact sensors or motion sensors (i.e., the security system's zones) to HomeKit/Homebridge for use in further automations.

IMPORTANT For Honeywell/DSC systems, the name of the zone in the AlarmDecoder WebUI or for Interlogix/GE systems, the name within config.ini must have the word 'motion', 'smoke' or 'carbon' in the name for the plugin to use the special motion, smoke or carbon monoxide services, otherwise all zones will load as contact sensors. You can name the zones in settings->zones->zone name. Contact sensors are the default so you don't have to put 'contact' in the name anywhere.

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install homebridge-alarmdecoder-platform using: npm install -g git+https://github.com/aficustree/homebridge-alarmdecoder-platform#master
  3. Update your configuration file. See sample-config.json in this repository for a sample.

Configuration

This module requires that the URLs for getting and setting the security system's state are configured correctly. This has to be done in Homebridge's config.json.You can find a sample configuration file in this repository.

The configuration options are the following:

Configuration examples can be as noted:

DSC Example

Honeywell Example

Interlogix/GE/NetworX/Caddx

  • The name parameter determines the name of the security system you will see in HomeKit.
  • the key parameter reflects the API key from the alarmdecoder GUI (honeywell/DSC only)
  • The port parameter reflects the port the alarmdecoder-sensor will listen for updates from alarmdecoder GUI. This value should be found on the https://alarmdecoder.local/settings/notifications/1/edit page by clicking on the "Custom Settings" tab.
  • The stateURL, zoneURL and setURL entries show the URL that the plugin will query for the list of zones, the state of the alarm system (and all faulted zones) and the URL to send virtual keypresses. Replace YOURIP and YOURPORT with the IP and port in the text box at the top of https://alarmdecoder.local/static/swagger/index.html on a standard install.
  • The setPIN is your PIN that you use to arm/disarm the system. Only type the base pin, do not add the arm/disarm button press (i.e., if you arm the system by typing 12342, your pin is 1234)
  • The useSwitches provides 'switch' toggles that control the setting of the alarm in away/night/stay mode or to trigger a panic function (or really any arbitrary command). USING THIS FEATURE FOR AWAY/NIGHT/STAY/DISARM IS A SECURITY RISK (panic and chime are fine) as you can now control your alarm via Siri without unlocking your iDevice (i.e., if you have a homepod someone could scream 'hey siri, turn off my Alarm Away'). This is useful if you don't care and want to control your alarm through an automation (like a geofence) without authenticating via your phone.
  • Panic Key is the key used to trigger the panic alarm (either silent or audible). By flipping this switch your alarm will go into panic mode (and your neighbors may be displeased).
  • The platformType should be set to either "DSC", "Honeywell", or "Interlogix" (use Interlogix for GE/Caddx/NetworX panels) depending on the type of alarm panel
  • Values for DSCStay, DSCAway, DSCReset and DSCExit are DSC specific
  • Interlogix plugin does not support panic or chime buttons at this time

Configuration of Alarmedecoder GUI (Honeywell/DSC Only)

  • Go to your installation of the Alarmdecoder GUI
  • Go to settings
  • Notifications
  • New Notification
  • Notification Type Custom
  • Under Notification Events Tab
  • Select / Tick the following:
    • Alarm system is triggered
    • Alarm system stops signaling
    • A panic has been detected
    • A fire is detected
    • Alarm system is armed
    • Alarm system is disarmed
    • A zone has faulted
    • A zone has been restored
  • Under 'custom settings' Tab
  • URL = the ip address of your homebridge including the Port i.e. 127.0.0.1:8888
  • Path = /
  • Method = Post

Supporting Other Panels

  • An Abstract Base Class is provided to guide development. All three functions must be overridden and appropriate logic added to the initPlatform function in index.js as to instantiate the right class for your panel (by using the PlatformType variable above).
  • The system expect to receive a 'ping' (in the form of an HTTP GET) to the port specified in the config.json. That 'ping' informs the library to query the panel for a full status/zone report getAlarmState. This function should update the state variables of any zone and the system itself and return true/false depending on the success of the call.
  • During startup, the system will call initZones to get a list of all zones. This will be compared with any cached zones and updated accordingly.
  • The 'setAlarmState' function is called by the platform whenever the user requests a state change. It is expected that the plugin makes the call and returns true/false depending on success of the request. The platform will tell homekit that the target state has been successfully set and wait for the 'ping' to update the current state. if the next ping does not show an updated current state, the target state will be returned to the original value.

Donations

If you found this useful, free free to donate.

paypal

Issues

If you find any issues or just have questions, open an issue on github. I will try my best to answer but only have my own honeywell system to troubleshoot.

License

Copyright 2018, aficustree

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

 相关资料
  • Homebridge 是一个轻量级 NodeJS 服务器,它模拟 iOS HomeKit API,提供从 HomeKit 到“智能家居”设备制造商提供的各种第三方 API 的基本桥接。通过 Homebridge 的桥接,可以让 Siri 控制完全不支持 HomeKit 的设备。 此外 Homebridge 支持插件。

  • homebridge-fritz-platform Creating and maintaining Homebridge plugins consume a lot of time and effort, if you would like to share your appreciation, feel free to "Star" or donate. Click here to revie

  • homebridge-tado-platform Creating and maintaining Homebridge plugins consume a lot of time and effort, if you would like to share your appreciation, feel free to "Star" or donate. Click here to review

  • homebridge-platform-insteonlocal Homebridge platform plugin for local Insteon control See CHANGELOG. Overview Implements local control of Insteon devices including switches, dimmers, outlets, fans, bl

  • Button Platform for Homebridge This Homebridge platform plugin creates virtual buttons that can be triggeredusing HTTP requests. It was originally created to provide HomeKit support forFlic smart butt

  • homebridge-sonybravia-platform v2.5 Homebridge Platform Plugin for Sony Bravia Android TV This is a Plugin for Homebridge to control your Sony Android TV. Note: If you are looking for the dynamic vers