homebridge-multi

This is a homebridge plugin executing command


Keywords
homebridge-plugin, homebridge, command
License
MIT
Install
npm install homebridge-multi@1.0.1

Documentation

homebridge-multi

Multi accessories plugin for homebridge.

Installation

  1. Implement programs.
  2. Install homebridge sudo npm install -g homebridge.
  3. Install this plugin sudo npm install -g homebridge-multi.
  4. Update your coufigulation file, see below.
  5. Run homebridge homebridge

Configuration

Configuration sample:

"accessories": [
        {
            "Name": "ドア",
            "name": "ドア",
            "Lock Current State": {
                "get": "cat /home/pi/test1.txt"
            },
            "Lock Target State": {
                "set": "bash /home/pi/script.sh",
                "get": "cat /home/pi/test1.txt"
            },
            "accessory": "Multi",
            "service": "LockMechanism"
        },
        {
            "Name": "かっこいい扇風機",
            "name": "かっこいい扇風機",
            "On": {
                "set": "echo 0 > /home/pi/test1.txt"
            },
            "Off": "echo 1 > /home/pi/test1.txt",
            "accessory": "Multi",
            "service": "Fan"
        }
]