Fix reversed door closing/opening states in HomeKit (#34095)
* Fix reversed door closing/opening states in HomeKit When we closed the door we would set state 2 which is "Opening" it should have been 3 which is "Closing" When we opened the door we would set state 3 which is "Closing" it should have been 2 which is "Opening" Add constants to make this easier to catch in the future. * Remove debug * Add note about target door state
This commit is contained in:
parent
ec2c7ea932
commit
ad5a396c10
3 changed files with 76 additions and 31 deletions
|
@ -182,3 +182,10 @@ THRESHOLD_CO2 = 1000
|
|||
# #### Default values ####
|
||||
DEFAULT_MIN_TEMP_WATER_HEATER = 40 # °C
|
||||
DEFAULT_MAX_TEMP_WATER_HEATER = 60 # °C
|
||||
|
||||
# #### Door states ####
|
||||
HK_DOOR_OPEN = 0
|
||||
HK_DOOR_CLOSED = 1
|
||||
HK_DOOR_OPENING = 2
|
||||
HK_DOOR_CLOSING = 3
|
||||
HK_DOOR_STOPPED = 4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue