ebaauw / homebridge-deconz

Homebridge plugin for deCONZ
Apache License 2.0
135 stars 7 forks source link

Option to expose temp sensors as thermostat? #75

Closed Monofin closed 1 year ago

Monofin commented 1 year ago

I've been experimenting with various mechanisms for integrating temperature sensors with switching devices for things like towel rails, using Homekit as the glue for activating switches at given temperatures.

This isn't particularly flexible, so I was wondering if it possible to have an option to expose deconz temperature sensors as thermostats?

The logic goes that the Sensor accessory could potentially be presented to HomeKit as a (FakeGato?) Thermostat with a small amount of hysteresis control and potentially 'number of activations per hour', minimum duration, etc. (Yep, you could even make it learn the response curve of a room, but that's getting quite out there....).

The real Elgato thermostats (and hopefully fakegato) have an on/off state as well as presenting a valve percentage, and automations can be hung directly off this value to associate with appropriate heating/cooling devices.

I'll have a go and see what I can pull together, but worth mentioning I'm looking at it :-)

ebaauw commented 1 year ago

if it possible to have an option to expose deconz temperature sensors as thermostats?

No. A HomeKit thermostat needs at least Current Heating Cooling State, Target Heating Cooling State, Current Temperature, and. Target Temperature. A temperature sensor only provides Current Temperature. The purpose of a Homebridge plugin is to expose devices to HomeKit, not to create virtual devices. For that, you might use a CLIP sensor in deCONZ , which Homebridge deCONZ will happily expose to HomeKit. I’m not sure if deCONZ supports CLIPThermostat yet, though.

Monofin commented 1 year ago

Fantastic - thank you for explaining, much appreciated. Good to keep the functionality clean :-) I’ll take a close look at CLIP Thermostat in deconz.