joeyhage / homebridge-alexa-smarthome

Connect Alexa devices to HomeKit
MIT License
81 stars 20 forks source link

Implement onGet for CurrentHeatingCoolingState #98

Closed nickkoul closed 8 months ago

nickkoul commented 8 months ago

Description

Implements onGet for CurrentHeatingCoolingState so that it is not always set to OFF. Runs a reduce on the ThermostatState and adds a 1 if heat is on, and 2 if it is on cool. It is initialized at 0 so that if nothing is set it stays off.

Testing

Verified with my Alexa thermostats

joeyhage commented 8 months ago

@nickkoul Thanks for contributing! I'll release this in v2.1.1