0.5.0-rc23 • Published 4 years ago

homebridge-isy v0.5.0-rc23

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

Homebridge ISY

Note: The npm package has been changed to homebridge-ISY (ISY API lib is now called isy-nodejs)

Fork of homebridge-isy-js by rodtoll

Build Status

(C) Rod Toll 2015-2017, Licensed under the MIT-LICENSE.

Major Updates

Requires Homebridge v1.0+. Please see revised installation notes below.

New Functionality

  • Support for ISY 5.0.16+

  • Installable & Configurable using Homebridge Config-UI X WORKS as of RC3

  • NEW: Configurable device naming convention (See sample config below).

    You can now configure how the device name should be passed to its corresponding Accessory (using javascript string interpolation syntax). For example, if "${location ?? folder} ${spokenName : name}" is provided to the config, all devices will be named according to the convention, location unless blank, then folder + spoken name, unless blank, then name.

  • Pulls folders and notes from ISY

    1. Default behavior is that folder names will be appended to the device name e.g. if "Vent Switch" is in folder "Bathroom", the display name passed to homebridge will be Bathroom Switch Vent.
    2. If notes are in the ISY and have been populated fully, location and spoken name will be used to render the display name. E.g. if Bathroom.Switch.Vent has been updated with Bathroom as the Location and Vent as the spoken name, then Bathroom Vent will be used as the display name.
  • Additional parameters available to filter devices (Device Family (e.g. Insteon, Zigbee, ZWave, etc...), Folder (ref. above), ISY Type Code (e.g. 15.1.1.1) and NodeDef (KeypadButton_ADV) if you want to use either NodeDef or Type Code please let me know)

  • Global Renames - i.e. replace any instance of '.' with ' ' -> Switch.Vent -> Switch Vent or remove any instance of certain words e.g. Bathroom.Switch.Vent -> Bathroom Vent... see config sample below

  • Support for additional devices (Need Testers): Insteon Thermostat/Thermostat Adapters Leak Sensors CO/Smoke Bridges (WIP) Remotes

Bug Fixes/Under the hood:

  • Uses more robust handling for device status changes from ISY and sending updates to ISY (e.g. using updateCharacteristic vs. setCharacteristic to not fire events)
  • Migrated to typescript
  • Upgraded to use latest version of hap-nodejs (requires homebridge-beta).

TODO:

  • Re-add support for non-insteon/elk native devices (ZWave & Zigbee)
  • Test garage door openers & MorningLinc locks (Need Testers)
  • Add support for Zigbee Devices
  • Add Keypad Button support (Keypad Buttons will map to Stateless Programmable Switches)
  • Incorporate individual device status in scene definitions
  • Create configurable mappings for IOLinc to other types of accessories (e.g. curtains, sprinkler control & garage door openers)

Future Work:

  • Add NodeServer support. May implement or may implement in ISY-nodejs only, as using native homebridge plugins may be better solution. E.g. for nest devices, you would use a Nest NodeServer to integrate with the ISY, and the Nest homebridge plugin to integrate with HomeKit.

Installation

  1. Install homebridge using: npm install -g homebridge@beta
  2. Install this plugin using: npm install -g homebridge-isy
  3. Update your configuration file. See sampleconfig.json in this repository for a sample. Please note that the platform name has been changed to "ISY".

IMPORTANT NOTE: Since the package and platform names are different (and the way accessory IDs are assigned), you can have both original version homebridge-isy-js and homebridge-isy installed (you will have two platform sections (one ISY and the other isy-js) your homebridge config). this is something I recommend if you have a lot of devices configured currently, and anything like the garage door opener/locks/elk that need to be tested. This way, you can wait to uninstall the old version once you've got everything configured and working correctly.

Requirements

Only the ISY 994 and newer devices running 5.0.16+ are supported. The ISY 99i device is no longer supported as this library depends on a later version of the REST/Websocket interface.

Configuration

Configuration sample (please refer to the homebridge-config-ui-x readme to add a section for that, and refer to the above if you want to add an additional section for homebridge-isy-js):

     "platforms": [
        {
            "platform": "ISY",
            "name": "ISY",
            "host": "10.0.1.12",
            "username": "admin",
            "password": "password",
            "elkEnabled": true,
            "useHttps": false,
            "debugLoggingEnabled": false,
            "garageDoors": [
                { "address": "17 79 81 1", "name": "Garage Door", "timeToOpen": 12000 }
            ],
             "deviceDefaults":
            {
                "exclude":false
            },
            "deviceNaming": {
                "format": "${location ?? folder} ${spokenName ?? name}",
                "remove": [
                    "Dimmer",
                    "Switch",
                    "Fan "
                ],
                "replace": [{
                    "replace": ".",
                    "with": " "
                }]
            },
            "devices": [{
                    "filter": {
                        "filterType": "family",
                        "family": "Scene"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "filterType": "nodeDef",
                        "nodeDef": "KeypadButton"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "filterType": "name"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "name": "ApplianceLinc",
                        "filterType": "name"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "name": "S -",
                        "filterType": "name"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "name": "ApplianceLink",
                        "filterType": "name"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "address": "1 24 A5 1",
                        "filterType": "address"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "filterType": "family"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "folder": "Old Stuff",
                        "filterType": "folder"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "nodeDef": "KeypadButton",
                        "filterType": "nodeDef"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "name": "Unused",
                        "filterType": "name"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "name": "Remote",
                        "filterType": "name"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "name": "Keypad",
                        "filterType": "name",
                        "lastAddressDigit": "2"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "name": "Keypad",
                        "filterType": "name",
                        "lastAddressDigit": "3"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "name": "Keypad",
                        "filterType": "name",
                        "lastAddressDigit": "4"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "name": "Keypad",
                        "filterType": "name",
                        "lastAddressDigit": "5"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "name": "Keypad",
                        "filterType": "name",
                        "lastAddressDigit": "6"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "name": "Keypad",
                        "filterType": "name",
                        "lastAddressDigit": "7"
                    },
                    "exclude": true
                },
                {
                    "filter": {
                        "name": "Keypad",
                        "filterType": "name",
                        "lastAddressDigit": "8"
                    },
                    "exclude": true
                }
            ]
        }
    ]

Implementation Notes

  • Scenes will not show as on until all light devices are on. This allows the UI to send an 'on' request to light up the rßest of them.
  • Garage door openers (in this case an I/O Linc used in a garage kit) are complex to get correct. We only have the current state of the contact sensor to determine current status. In particular, if you startup the system while the garage door is changing state (opening or closing) the code will likely get the state incorrect. If you get into this state, close the garage door and restart homebridge. The garage door is assumed open at startup and closed at startup if the contact sensor says the door is open or closed respectively.

History

  • 0.2.0 - Development resumed.
    • Support for v5.0.12+
    • Support for Insteon Thermostat/Insteon Thermostat Adapter added
    • Fixed characteristic update logic to capture externally initiated changes w/o triggering update back to isy.
    • Requires new version of isy-js
  • 0.1.9 - (Rodtoll) Active development ended.
  • 0.1.8 - Fixed crash in tests (race condition) and fixed crash in garage door device.
  • 0.1.7 - Fixed crash when there is no ignoreDevices entry. Also added new renameDevices section to enable device renaming. Added note to highlight ISY 99 is no longer supported, you needed an ISY 994 or newer. Added checks to ensure device list doesn't exceed 100 devices. Simplified ignore syntax so blank elements no longer needed.
  • 0.1.6 - Addressed crash when identify called on lights.
  • 0.1.4 - Release for testing alternative garage logic. No change for anyone wanting to use it with the standard logic.
  • 0.1.3 - Added improved debug output. Fixed bug where plugin would crash when there are no garage door opener present.
  • 0.1.2 - Added garage door opener support
  • Previous - Changes not tracked in this document.
0.5.0-rc23

4 years ago

0.5.0-rc22

4 years ago

0.5.0-rc21

4 years ago

0.5.0-rc17

4 years ago

0.5.0-rc19

4 years ago

0.5.0-rc18

4 years ago

0.5.0-rc20

4 years ago

0.5.0-rc15

4 years ago

0.5.0-rc14

4 years ago

0.5.0-rc16

4 years ago

0.5.0-rc13

4 years ago

0.5.0-rc12

4 years ago

0.5.0-rc11

5 years ago

0.5.0-rc10

5 years ago

0.5.0-rc9

5 years ago

0.5.0-rc8

5 years ago

0.5.0-rc7

5 years ago

0.5.0-rc6

5 years ago

0.5.0-rc5

5 years ago

0.5.0-rc4

5 years ago

0.5.0-rc3

5 years ago

0.5.0-rc2

5 years ago

0.5.0-rc.2

5 years ago

0.5.0-rc.1

5 years ago

0.5.0-rc1

5 years ago

0.5.0-beta.32

5 years ago

0.5.0-beta.28

5 years ago

0.5.0-beta.29

5 years ago

0.5.0-beta.30

5 years ago

0.5.0-beta.31

5 years ago

0.5.0-beta.27

5 years ago

0.5.0-beta.26

5 years ago

0.5.0-beta.22

5 years ago

0.5.0-beta.23

5 years ago

0.5.0-beta.21

5 years ago

0.5.0-beta.24

5 years ago

0.5.0-beta.20

5 years ago

0.5.0-beta.18

5 years ago

0.5.0-beta.17

5 years ago

0.5.0-beta.16

5 years ago

0.5.0-beta.12

5 years ago

0.5.0-beta.15

5 years ago

0.5.0-beta.14

5 years ago

0.5.0-beta.10

5 years ago

0.5.0-beta.9

5 years ago

0.5.0-beta.8

5 years ago

0.5.0-beta.7

5 years ago

0.5.0-beta.6

5 years ago

0.5.0-beta.5

5 years ago

0.5.0-beta.4

5 years ago

0.5.0-beta.3

5 years ago

0.5.0-beta.1

5 years ago

0.5.0-beta.2

5 years ago

0.5.0

5 years ago

0.6.27

5 years ago

0.6.26

5 years ago

0.6.21

5 years ago

0.6.20

5 years ago

0.6.23

5 years ago

0.6.22

5 years ago

0.6.25

5 years ago

0.6.24

5 years ago

0.6.18

5 years ago

0.6.17

5 years ago

0.6.19

5 years ago

0.6.16

5 years ago

0.6.15

5 years ago

0.6.10

5 years ago

0.6.12

5 years ago

0.6.11

5 years ago

0.6.7

5 years ago

0.6.6

5 years ago

0.6.9

5 years ago

0.6.8

5 years ago

0.6.14

5 years ago

0.6.13

5 years ago

0.6.5

5 years ago

0.6.4

5 years ago

0.6.3

5 years ago

0.6.2

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago