NinjaBlock plugin for HomeBridge
- Install homebridge using: npm install -g homebridge
- Install this plugin using: npm install -g homebridge-ninjablock-alarmstatedevice
- Update your configuration file. See sample config.json snippet below.
Enable the States Service in Settings: Services if you haven't already. You'll see a new Widget on your Dashboard, called 'Generic State Device'. Use the cog (Widget Menu) and add a new Custom State. Name it 'stay armed'. Do this again for: 'disarmed', 'alarm triggered', 'away armed' and 'night armed'
Configuration sample:
{
"accessory": "NinjaBlock-AlarmStateDevice",
"statedevice_url" : "<YOUR URL GOES HERE>",
"service" : "Security System",
"name" : "NinjaBlock Security System"
}
Fields:
- "accessory": Must always be "NinjaBlock-AlarmStateDevice" (required)
- "statedevice_url": Get the API Endpoint URL from the NinjaBlocks Dashboard, add "?user_access_token=" and add your API Access Token.
- Example: https://a.ninja.is/rest/v0/device/4412BB000300_0101_0_30?user_access_token=abc123"
- "service": Must always be "Security System" (required)
- "name": Can be anything but is required and will be picked by SIRI as the name of your accessory.