Skip to content

Commit

Permalink
Updated washer and dryer states
Browse files Browse the repository at this point in the history
  • Loading branch information
ollo69 committed May 20, 2020
1 parent 45a98fa commit c9aeb66
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 8 deletions.
2 changes: 1 addition & 1 deletion custom_components/smartthinq_sensors/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Support to interface with LGE ThinQ Devices.
"""

__version__ = "0.4.6"
__version__ = "0.4.7"
PROJECT_URL = "https://github.com/ollo69/ha-smartthinq-sensors/"
ISSUE_URL = "{}issues".format(PROJECT_URL)

Expand Down
26 changes: 19 additions & 7 deletions custom_components/smartthinq_sensors/wideq/dryer_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class STATE_DRYER_DRYLEVEL(enum.Enum):
LOW = "Low"
MORE = "More"
NORMAL = "Normal"
NORMAL_ECO = "Normal Eco"
SPEED = "Speed"
TURBO = "Turbo"
VERY = "Very"
Expand Down Expand Up @@ -103,6 +104,13 @@ class STATE_DRYER_ERROR(enum.Enum):
"@WM_OPTION_DRY_MORE_DRY_W": STATE_DRYER_DRYLEVEL.MORE,
"@WM_OPTION_DRY_NORMAL_W": STATE_DRYER_DRYLEVEL.NORMAL,
"@WM_OPTION_DRY_VERY_DRY_W": STATE_DRYER_DRYLEVEL.VERY,
"@WM_OPTION_DRY_TIME_30_W": STATE_DRYER_DRYLEVEL.TIME_30,
"@WM_OPTION_DRY_TIME_60_W": STATE_DRYER_DRYLEVEL.TIME_60,
"@WM_OPTION_DRY_TIME_90_W": STATE_DRYER_DRYLEVEL.TIME_90,
"@WM_OPTION_DRY_TIME_120_W": STATE_DRYER_DRYLEVEL.TIME_120,
"@WM_OPTION_DRY_TIME_150_W": STATE_DRYER_DRYLEVEL.TIME_150,
"@WM_MX_OPTION_DRY_TURBO_W": STATE_DRYER_DRYLEVEL.TURBO,
"@WM_MX_OPTION_DRY_WIND_W": STATE_DRYER_DRYLEVEL.WIND,
"@WM_DRY24_DRY_LEVEL_CUPBOARD_W": STATE_DRYER_DRYLEVEL.CUPBOARD,
"@WM_DRY24_DRY_LEVEL_DAMP_W": STATE_DRYER_DRYLEVEL.DAMP,
"@WM_DRY24_DRY_LEVEL_EXTRA_W": STATE_DRYER_DRYLEVEL.EXTRA,
Expand Down Expand Up @@ -145,13 +153,17 @@ class STATE_DRYER_ERROR(enum.Enum):
"@WM_FL24_TITAN_DRY_90_W": STATE_DRYER_DRYLEVEL.TIME_90,
"@WM_FL24_TITAN_DRY_120_W": STATE_DRYER_DRYLEVEL.TIME_120,
"@WM_FL24_TITAN_DRY_150_W": STATE_DRYER_DRYLEVEL.TIME_150,
"@WM_MX_OPTION_DRY_TURBO_W": STATE_DRYER_DRYLEVEL.TURBO,
"@WM_MX_OPTION_DRY_WIND_W": STATE_DRYER_DRYLEVEL.WIND,
"@WM_OPTION_DRY_TIME_30_W": STATE_DRYER_DRYLEVEL.TIME_30,
"@WM_OPTION_DRY_TIME_60_W": STATE_DRYER_DRYLEVEL.TIME_60,
"@WM_OPTION_DRY_TIME_90_W": STATE_DRYER_DRYLEVEL.TIME_90,
"@WM_OPTION_DRY_TIME_120_W": STATE_DRYER_DRYLEVEL.TIME_120,
"@WM_OPTION_DRY_TIME_150_W": STATE_DRYER_DRYLEVEL.TIME_150,
"@WM_FL24_BIGIN_DRY_NORMAL_W": STATE_DRYER_DRYLEVEL.NORMAL,
"@WM_FL24_BIGIN_DRY_ECO_W": STATE_DRYER_DRYLEVEL.ECO,
"@WM_FL24_BIGIN_DRY_IRON_W": STATE_DRYER_DRYLEVEL.IRON,
"@WM_FL24_BIGIN_DRY_LOW_W": STATE_DRYER_DRYLEVEL.LOW,
"@WM_FL24_BIGIN_DRY_SPEED_W": STATE_DRYER_DRYLEVEL.SPEED,
"@WM_FL24_BIGIN_DRY_COOLING_W": STATE_DRYER_DRYLEVEL.COOLING,
"@WM_FL24_BIGIN_DRY_NORMAL_ECO_W": STATE_DRYER_DRYLEVEL.NORMAL_ECO,
"@WM_FL24_BIGIN_DRY_30_W": STATE_DRYER_DRYLEVEL.TIME_30,
"@WM_FL24_BIGIN_DRY_60_W": STATE_DRYER_DRYLEVEL.TIME_60,
"@WM_FL24_BIGIN_DRY_90_W": STATE_DRYER_DRYLEVEL.TIME_90,
"@WM_FL24_BIGIN_DRY_120_W": STATE_DRYER_DRYLEVEL.TIME_120,
}

DRYERTEMPS = {
Expand Down
17 changes: 17 additions & 0 deletions custom_components/smartthinq_sensors/wideq/washer_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ class STATE_WASHER_ERROR(enum.Enum):
"@WM_FL24_TITAN_TEMP_50_W": STATE_WASHER_WATERTEMP.TEMP_50,
"@WM_FL24_TITAN_TEMP_60_W": STATE_WASHER_WATERTEMP.TEMP_60,
"@WM_FL24_TITAN_TEMP_95_W": STATE_WASHER_WATERTEMP.TEMP_95,
"@WM_FL24_BIGIN_TEMP_COLD_W": STATE_WASHER_WATERTEMP.COLD,
"@WM_FL24_BIGIN_TEMP_20_W": STATE_WASHER_WATERTEMP.TEMP_20,
"@WM_FL24_BIGIN_TEMP_30_W": STATE_WASHER_WATERTEMP.TEMP_30,
"@WM_FL24_BIGIN_TEMP_40_W": STATE_WASHER_WATERTEMP.TEMP_40,
"@WM_FL24_BIGIN_TEMP_50_W": STATE_WASHER_WATERTEMP.TEMP_50,
"@WM_FL24_BIGIN_TEMP_60_W": STATE_WASHER_WATERTEMP.TEMP_60,
"@WM_FL24_BIGIN_TEMP_95_W": STATE_WASHER_WATERTEMP.TEMP_95,
}

WASHERSPINSPEEDS = {
Expand Down Expand Up @@ -191,6 +198,16 @@ class STATE_WASHER_ERROR(enum.Enum):
"@WM_FL24_TITAN_SPIN_SPEED_1400_W": STATE_WASHER_SPINSPEED.SPEED_1400,
"@WM_FL24_TITAN_SPIN_SPEED_1600_W": STATE_WASHER_SPINSPEED.SPEED_1600,
"@WM_FL24_TITAN_SPIN_SPEED_MAX_W": STATE_WASHER_SPINSPEED.SPEED_MAX,
"@WM_FL24_BIGIN_SPIN_NO_SPIN_W": STATE_WASHER_SPINSPEED.NO_SPIN,
"@WM_FL24_BIGIN_SPIN_SPEED_400_W": STATE_WASHER_SPINSPEED.SPEED_400,
"@WM_FL24_BIGIN_SPIN_SPEED_600_W": STATE_WASHER_SPINSPEED.SPEED_600,
"@WM_FL24_BIGIN_SPIN_SPEED_700_W": STATE_WASHER_SPINSPEED.SPEED_700,
"@WM_FL24_BIGIN_SPIN_SPEED_800_W": STATE_WASHER_SPINSPEED.SPEED_800,
"@WM_FL24_BIGIN_SPIN_SPEED_1000_W": STATE_WASHER_SPINSPEED.SPEED_1000,
"@WM_FL24_BIGIN_SPIN_SPEED_1100_W": STATE_WASHER_SPINSPEED.SPEED_1100,
"@WM_FL24_BIGIN_SPIN_SPEED_1200_W": STATE_WASHER_SPINSPEED.SPEED_1200,
"@WM_FL24_BIGIN_SPIN_SPEED_1400_W": STATE_WASHER_SPINSPEED.SPEED_1400,
"@WM_FL24_BIGIN_SPIN_SPEED_1600_W": STATE_WASHER_SPINSPEED.SPEED_1600,
}

WASHREFERRORS = {
Expand Down

0 comments on commit c9aeb66

Please sign in to comment.