https://github.com/classlfz/homebridge-lirc-thermostat
https://github.com/classlfz/homebridge-lirc-thermostat
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/classlfz/homebridge-lirc-thermostat
- Owner: classLfz
- License: apache-2.0
- Created: 2021-08-15T03:39:45.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-15T15:48:28.000Z (almost 5 years ago)
- Last Synced: 2025-01-28T21:15:51.115Z (over 1 year ago)
- Language: TypeScript
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# homebridge-lirc-thermostat
[](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"
}
}
```