tattn / homebridge-rm-mini3

Broadlink RM mini3 plugin for Homebridge
Apache License 2.0
54 stars 18 forks source link

Thermostat Example #18

Open lprhodes opened 7 years ago

lprhodes commented 7 years ago

Hey,

I created a fork that includes a thermostat/air conditioner example that I'm using with the RM 3 Pro and thought I'd leave this here for anyone who's looking to do the same. It only sends commands (it does not listen to IR commands sent back with temp data etc) and I've only programmed it to allow for cooling/heating depending on whether the temperature set is under/over 22C rather than specific temperatures. it could be expanded easily to allow all mode and all temperatures but I wasn't going to sit and sniff the UDP packets of every combination for my air conditioner and it suits my needs as is.

https://github.com/lprhodes/homebridge-rm-mini3/tree/patch-1

Credit to @PJCzx as most of the thermostat code came from the homebridge-thermostat repo.