homebridge-govee
homebridge-govee copied to clipboard
Adding ac capabilities to thermo sensor leveraging HTTP calls
This is the first time I am doing some development on homebridge and I had a couple of issues along the way. So expect this to not be perfect. I am hoping to get some feedback so we can fine tune it and actually share it with more people.
The idea behind this change is to leverage the thermo sensor to control an air conditioning unit. My home has one main AC unit and motorized vents on each room. I've "reversed engineered" the AC controller that's on each room (which is a touch screen thermostat) and been able to replace it with an ESP8266 on each room. So that the ESP8266 can issue the ON / OFF ignal to the motorized vent and to the AC main unit.
I've exposed this as an HTTP server on those ESP8266. And now, this is where this MR comes into play. Since my AC setup is quite simple, I can turn on and off the AC using a simple GET request. http://127.0.0.1/AC=ON
and http://127.0.0.1/AC=OFF
. Going to http://127.0.0.1
says the sate of the current vent. So It can say if its on or off.
With Govee (and this plugin) I can configure it as a thermostat, controlling the vent based on the temperature that the thermostat is reporting. I tried searching for something already done around to avoid myself the trouble but didn't find anything quite like this... Hopefully it can be useful for somebody else out there.
Hi @devtekve
Thanks for this request. I've just pushed some changes that I think would be better.
The main one is a separate device type file for the thermostat accessory.
I don't think there is any reason for an accessory to have all of a thermostat service, temperature sensor and a humidity sensor, as the thermostat already has characteristics for current temperature and humidity.
If you are able to try this out and let me know if it's (still) working for you?
This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi @devtekve
Any updates on this?
I think it would be a nice feature to the plugin if you are happy to try my latest changes out?
Thanks!
This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed.