homebridge-file-switch

0.0.2 • Public • Published

Homebridge File Switch

Observer and write a (text) file and display it as switch accessory in Home app. Each time the file changes it will automagicaly update the accesory status.

Requirements

  • Homebridge HomeKit support for the impatient
  • A text file that can be read and modify by this plugin

Example config

Use Homebridge config UI X, or manually edit your config.json and add this configuration:

    {
        "accessories": [
            {
                "name": "The name",
                "file": "/path/to/your/file.txt",
                "onValue": "true",
                "offValue": "false"
            }
        ],
        "debug": false,
        "platform": "fileSwitchPlatform"
    }

Package Sidebar

Install

npm i homebridge-file-switch

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

9.01 kB

Total Files

7

Last publish

Collaborators

  • dwaan