EdwardNavarro / homebridge-globalcache-itach

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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": "Gate",
		"host": "192.168.0.XXX",
		"ports": [{
			"name": "Gate",
			"toggleMode": true
		}, {
			"disable": true
		}, {
			"disable": true
		}]
	}, {
		"name": "Roomba",
		"host": "192.168.0.XXX",
		"enableLearnLogging": true,
		"ports": [{
			"name": "IR1",
			"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"
			}
		}, {
			"disable": true
		}, {
			"name": "Roomba 572 Pet Series",
			"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: dustindclark#4.

About

License:MIT License


Languages

Language:JavaScript 100.0%