RavenSystem / esp-homekit-devices

Advanced firmware to add native Apple HomeKit and custom configurations, compatible with any SoC based on ESP32, ESP32-S, ESP32-C and ESP8266 series. (Shelly, Sonoff, Electrodragon, Tuya...)
Other
2.73k stars 360 forks source link

One click activation of thermostat devices #609

Closed macjl closed 4 years ago

macjl commented 4 years ago

Hello,

I think it would be great if we can turne on/off thermostat devices with just one click in Home App. It has been done in the homebridge-daikin-local plug-in, and working very well for me : (https://github.com/cbrandlehner/homebridge-daikin-local/issues/15)

Do you think it's possible to implement it?

Regards

RavenSystem commented 4 years ago

I think you can do it declaring an additional switch and using automations.

macjl commented 4 years ago

It should work, but it is not very user friendly.

The way it has been done in homebridge-daikin plugin was adding this characteristic :

    this.heaterCoolerService
      .getCharacteristic(Characteristic.Active)
      .on('get', this.getActive.bind(this))
      .on('set', this.setActive.bind(this)); 

With the 'setActive' action, the thermostat is powered up / powered down with just a click on the icon in home app. Is this characteristic implemented in HAA?

RavenSystem commented 4 years ago

Ahh, I see it now. I use HomeKit Thermostat Accessory and you are talking about Cooler/Heater Accessory. They are different accessory types. Thermostat is the old, and Cooler/heater is the new. "Active" characteristic is available only at the new version. I want to migrate old to new, but I have not had enough time yet.

macjl commented 4 years ago

Hello,

I have seen that you implemented it in version 0.7. I'ts working very well for me! And I was able to remove the fake switch I added to enter in setup mode.

Thank You!!