Skip to content

Commit

Permalink
Merge pull request #13 from danielrivard/12-auto-mode-not-supported-b…
Browse files Browse the repository at this point in the history
…y-airleaf-remove-it-from-supported-commands

fix: Disable Auto Mode for AirLeaf
  • Loading branch information
danielrivard authored Jan 31, 2023
2 parents dc9a5b7 + 5ce0736 commit 598edd0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ JSON returned by status endpoint:
|Fan Function|POST|/set/fan|value=[1-4]|1=auto,2=night,3=min,4=max|
|Cooling|POST|/set/mode/cooling|||
|Heating|POST|/set/mode/heating|||
|Auto|POST|/set/mode/auto|||


JSON returned by status endpoint:
Expand Down Expand Up @@ -156,7 +155,7 @@ JSON returned by status endpoint:
},
"RESULT": {
"sp": 200, <--- Temperature Set point (x10)
"wm": 3, <--- Mode: 0=auto, 3=heating. 5=cooling
"wm": 3, <--- Mode: 3=heating. 5=cooling
"fn": 1, <--- Fan Function: 1=auto, 2=night, 3=min, 4=max
"kl": 0,
"lastworkingModeSet": 0,
Expand Down
4 changes: 1 addition & 3 deletions innova_controls/airleaf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@

class AirLeaf(InnovaDevice):
class Modes(InnovaDevice.Modes):
AUTO = Mode("set/mode/auto", 0, auto=True)
HEATING = Mode("set/mode/heating", 3, heat=True)
COOLING = Mode("set/mode/cooling", 5, cool=True)

codes: dict = {
0: AUTO,
3: HEATING,
5: COOLING,
}
Expand Down Expand Up @@ -133,7 +131,7 @@ async def set_cooling(self) -> bool:
return await super()._set_mode(self.Modes.COOLING)

async def set_auto(self) -> bool:
return await super()._set_mode(self.Modes.AUTO)
pass

async def set_dehumidifying(self) -> bool:
pass
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name="innova-controls",
version="2.1.1",
version="2.1.2",
description="Innova Air Conditioner Control API",
license="Apache",
long_description=long_description,
Expand Down

0 comments on commit 598edd0

Please sign in to comment.