homebridge-globalcache-itach-flex

A homebridge plugin for Global Cache iTach Flex devices

Usage no npm install needed!

<script type="module">
  import homebridgeGlobalcacheItachFlex from 'https://cdn.skypack.dev/homebridge-globalcache-itach-flex';
</script>

README

homebridge-globalcache-itach

This homebridge plugin adds support for Global Cache iTach devices. Example configuration is below. Relays and IR devices are supported.

"platforms": [{
    "platform": "GlobalCacheItach",
    "name": "Global Cache Itach",
    "devices": [{
        "name": "ItachFlex",
        "host": "192.168.0.XXX",
        "enableLearnLogging": true,
        "ports": [{
            "name": "TV",
            "port": "1",
            "commands": {
                "on": "1,37091,50,1,20,112,35,112,35,112,108,39,36,112,35,112,35,780,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,780,111,39,36,112,35,112,35,112,108,39,36,112,35,112,35,781,111,39,36,112,35,112,35,112,108,39,36,112,35,112,35,790,111,39,36,112,35,112,35,112,108,39,36,112,35,112,35,3709",
                "off": "1,37000,4,1,32,32,32,32,32,32,64,32,32,32,32,32,32,161,32,32,32,64,32,32,64,32,32,32,32,32,32,32,32,32,32,64,64,2731,32,32,32,32,32,32,64,32,32,32,32,32,32,161,32,32,32,64,32,32,64,32,32,32,32,32,32,32,32,32,32,64,64,1200"
            }
        }, {
            "name": "Air Conditioner",
            "port": "1",
            "commands": {
                "on": "1,37091,50,1,20,112,35,112,35,112,108,39,36,112,35,112,35,780,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,780,111,39,36,112,35,112,35,112,108,39,36,112,35,112,35,781,111,39,36,112,35,112,35,112,108,39,36,112,35,112,35,790,111,39,36,112,35,112,35,112,108,39,36,112,35,112,35,3709",
                "off": "1,37000,4,1,32,32,32,32,32,32,64,32,32,32,32,32,32,161,32,32,32,64,32,32,64,32,32,32,32,32,32,32,32,32,32,64,64,2731,32,32,32,32,32,32,64,32,32,32,32,32,32,161,32,32,32,64,32,32,64,32,32,32,32,32,32,32,32,32,32,64,64,1200"
            }
        }, {
            "name": "Cable TV",
            "port": "2",
            "commands": {
                "on": [
                  "1,37091,5,1,20,112,35,112,35,112,108,39,36,112,35,112,35,780,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,780,111,39,36,112,35,112,35,112,108,39,36,112,35,112,35,781,111,39,36,112,35,112,35,112,108,39,36,112,35,112,35,790,111,39,36,112,35,112,35,112,108,39,36,112,35,112,35,100",
                  "1,36982,1,1,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,781,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,780,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,781,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,790,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,781,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,781,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,780,111,38,36,112,35,112,35,112,108,359,36,112,35,112,35,4733"
                ],
                "off": "1,36982,1,1,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,781,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,780,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,781,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,790,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,781,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,781,111,38,36,112,35,112,35,112,108,39,36,112,35,112,35,780,111,38,36,112,35,112,35,112,108,359,36,112,35,112,35,4733"

            }
        }]
    }]
}]

Note that IR commands besides on and off may be defined, but they will break Siri capabilities for turning the device on and off. This is because there are multiple switches defined for the accessory. Details here: https://github.com/dustindclark/homebridge-globalcache-itach/issues/4.