homebridge-lirc-heater-cooler
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

homebridge-lirc-heater-cooler

Build and Lint

A homebridge plugin for lirc heater-cooler.

install

Make sure you had installed homebridge first, then run the following command to install homebridge-lirc-heater-cooler.

sudo npm install -g homebridge-lirc-heater-cooler

config

{
	"accessory": "HomebridgeLircHeaterCooler",
	"name": "room air conditioner",
	// node lirc settings, if use default settings, it's not anecessary to add this.
	// https://www.npmjs.com/package/node-lirc
	"lirc": {
		"commands": {
			"lircd": "lircd",
			"irrecord": "irrecord",
			"irsend": "irsend",
			"unbuffer": "unbuffer"
		},
		"lirc_driver": "default",
		"lirc_conf": "/etc/lirc/lircd.conf",
		"lirc_pid": "/var/run/lirc/lircd.pid",
		"device": "/dev/lirc0",
		"tmp_dir": "tmp/",
		"remote": "MY_REMOTE"
	},
	"activeCommands": {
		"active": "TCL.AIRCON ON",
		"inactive": "TCL.AIRCON OFF"
	},
	"stateCommands": {
		"auto": "AIRCON AUTO",
		"heat": "AIRCON HEAT",
		"cool": "AIRCON COOL"
	},
	"heatTempsCommands": {
		// use a template command,
		"template": "THERMOSTAT TEMP_{tempNum}",
		// or list all temperature commands.
		"10": "THERMOSTAT TEMP_10",
		// ...
		"31": "THERMOSTAT TEMP_31"
	},
	"coolTempsCommands": {
		// use a template command,
		"template": "THERMOSTAT TEMP_{tempNum}",
		// or list all temperature commands.
		"10": "THERMOSTAT TEMP_10",
		// ...
		"31": "THERMOSTAT TEMP_31"
	}
}

Package Sidebar

Install

npm i homebridge-lirc-heater-cooler

Weekly Downloads

2

Version

1.0.0

License

Apache-2.0

Unpacked Size

28.3 kB

Total Files

11

Last publish

Collaborators

  • classlfz