timschuerewegen / homebridge-nikobus

Nikobus platform plugin for Homebridge (https://github.com/nfarina/homebridge)
5 stars 6 forks source link

homebridge-nikobus

Nikobus platform plugin for Homebridge (https://github.com/nfarina/homebridge)

Installation

  1. Install Homebridge.
    • npm install -g homebridge
  2. Install this plugin.
    • npm install -g homebridge-nikobus
  3. Configure the plugin by editing your Homebridge configuration file (config.json).
    • see sample-config.json in this repository for an example
  4. Start Homebridge

Configuration

See sample-config.json in this repository for a complete example.

This is the syntax for the Nikobus platform:

{
    "platforms": [
        {
            "platform": "Nikobus",
            "name": "Nikobus",
            "port": "/dev/ttyS0",
            "loglevel": 0,
            "modules": [
                ...
            ]
        }
    ]
}

Switch module

This is the syntax for a Switch module:

{
    "type": "switch",
    "name": "Switch Module 1",
    "address": "1234",
    "model": "05-000-02",
    "outputs": [
        ...
    ]
}

This is the syntax for an output:

{
    "number": 3,
    "name": "Light 2",
    "service": "lightbulb"
}

Pushbutton module

This is the syntax for a Pushbutton module:

{
    "type": "pushbutton",
    "name": "Pushbutton 1",
    "address": "123456",
    "model": "05-000-02",
    "buttons": [
        ...
    ]
}

This is the syntax for a button:

{
    "number": "A",
    "name": "Television On",
    "service": "lightbulb"
}