An open API service indexing awesome lists of open source software.

https://github.com/classlfz/homebridge-lirc-thermostat


https://github.com/classlfz/homebridge-lirc-thermostat

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# homebridge-lirc-thermostat

[![Build and Lint](https://github.com/classLfz/homebridge-lirc-thermostat/actions/workflows/build.yml/badge.svg)](https://github.com/classLfz/homebridge-lirc-thermostat/actions/workflows/build.yml)

A homebridge plugin for lirc thermostat.

## install

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

```
sudo npm install -g homebridge-lirc-thermostat
```

## config

```json
{
"accessory": "HomebridgeLircThermostat",
"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"
},
// lirc send debounce time, unit: millisecond.
"debounceTime": 1000,
// update state commands.
"stateCommands": {
"OFF": "THERMOSTAT OFF",
"HEAT": "THERMOSTAT HEAT",
"COOL": "THERMOSTAT COOL",
"AUTO": "THERMOSTAT AUTO"
},
"tempsCommands": {
// use a template command,
"template": "THERMOSTAT TEMP_{tempNum}",
// or list all temperature commands.
"10": "THERMOSTAT TEMP_10",
// ...
"31": "THERMOSTAT TEMP_31"
}
}
```