mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Add sensors for washer and system boiler in LG ThinQ (#137514)
Co-authored-by: yunseon.park <yunseon.park@lge.com>
This commit is contained in:
parent
25296e1b8f
commit
04b826daa1
@ -407,6 +407,12 @@
|
|||||||
},
|
},
|
||||||
"power_level_for_location": {
|
"power_level_for_location": {
|
||||||
"default": "mdi:radiator"
|
"default": "mdi:radiator"
|
||||||
|
},
|
||||||
|
"cycle_count": {
|
||||||
|
"default": "mdi:counter"
|
||||||
|
},
|
||||||
|
"cycle_count_for_location": {
|
||||||
|
"default": "mdi:counter"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -248,6 +248,24 @@ TEMPERATURE_SENSOR_DESC: dict[ThinQProperty, SensorEntityDescription] = {
|
|||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
translation_key=ThinQProperty.CURRENT_TEMPERATURE,
|
translation_key=ThinQProperty.CURRENT_TEMPERATURE,
|
||||||
),
|
),
|
||||||
|
ThinQPropertyEx.ROOM_AIR_CURRENT_TEMPERATURE: SensorEntityDescription(
|
||||||
|
key=ThinQPropertyEx.ROOM_AIR_CURRENT_TEMPERATURE,
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
translation_key=ThinQPropertyEx.ROOM_AIR_CURRENT_TEMPERATURE,
|
||||||
|
),
|
||||||
|
ThinQPropertyEx.ROOM_IN_WATER_CURRENT_TEMPERATURE: SensorEntityDescription(
|
||||||
|
key=ThinQPropertyEx.ROOM_IN_WATER_CURRENT_TEMPERATURE,
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
translation_key=ThinQPropertyEx.ROOM_IN_WATER_CURRENT_TEMPERATURE,
|
||||||
|
),
|
||||||
|
ThinQPropertyEx.ROOM_OUT_WATER_CURRENT_TEMPERATURE: SensorEntityDescription(
|
||||||
|
key=ThinQPropertyEx.ROOM_OUT_WATER_CURRENT_TEMPERATURE,
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
translation_key=ThinQPropertyEx.ROOM_OUT_WATER_CURRENT_TEMPERATURE,
|
||||||
|
),
|
||||||
}
|
}
|
||||||
WATER_FILTER_INFO_SENSOR_DESC: dict[ThinQProperty, SensorEntityDescription] = {
|
WATER_FILTER_INFO_SENSOR_DESC: dict[ThinQProperty, SensorEntityDescription] = {
|
||||||
ThinQProperty.USED_TIME: SensorEntityDescription(
|
ThinQProperty.USED_TIME: SensorEntityDescription(
|
||||||
@ -341,6 +359,10 @@ TIMER_SENSOR_DESC: dict[ThinQProperty, SensorEntityDescription] = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
WASHER_SENSORS: tuple[SensorEntityDescription, ...] = (
|
WASHER_SENSORS: tuple[SensorEntityDescription, ...] = (
|
||||||
|
SensorEntityDescription(
|
||||||
|
key=ThinQProperty.CYCLE_COUNT,
|
||||||
|
translation_key=ThinQProperty.CYCLE_COUNT,
|
||||||
|
),
|
||||||
RUN_STATE_SENSOR_DESC[ThinQProperty.CURRENT_STATE],
|
RUN_STATE_SENSOR_DESC[ThinQProperty.CURRENT_STATE],
|
||||||
TIMER_SENSOR_DESC[TimerProperty.TOTAL],
|
TIMER_SENSOR_DESC[TimerProperty.TOTAL],
|
||||||
TIMER_SENSOR_DESC[TimerProperty.RELATIVE_TO_START_WM],
|
TIMER_SENSOR_DESC[TimerProperty.RELATIVE_TO_START_WM],
|
||||||
@ -470,6 +492,11 @@ DEVICE_TYPE_SENSOR_MAP: dict[DeviceType, tuple[SensorEntityDescription, ...]] =
|
|||||||
RUN_STATE_SENSOR_DESC[ThinQProperty.CURRENT_STATE],
|
RUN_STATE_SENSOR_DESC[ThinQProperty.CURRENT_STATE],
|
||||||
),
|
),
|
||||||
DeviceType.STYLER: WASHER_SENSORS,
|
DeviceType.STYLER: WASHER_SENSORS,
|
||||||
|
DeviceType.SYSTEM_BOILER: (
|
||||||
|
TEMPERATURE_SENSOR_DESC[ThinQPropertyEx.ROOM_AIR_CURRENT_TEMPERATURE],
|
||||||
|
TEMPERATURE_SENSOR_DESC[ThinQPropertyEx.ROOM_IN_WATER_CURRENT_TEMPERATURE],
|
||||||
|
TEMPERATURE_SENSOR_DESC[ThinQPropertyEx.ROOM_OUT_WATER_CURRENT_TEMPERATURE],
|
||||||
|
),
|
||||||
DeviceType.WASHCOMBO_MAIN: WASHER_SENSORS,
|
DeviceType.WASHCOMBO_MAIN: WASHER_SENSORS,
|
||||||
DeviceType.WASHCOMBO_MINI: WASHER_SENSORS,
|
DeviceType.WASHCOMBO_MINI: WASHER_SENSORS,
|
||||||
DeviceType.WASHER: WASHER_SENSORS,
|
DeviceType.WASHER: WASHER_SENSORS,
|
||||||
|
@ -305,6 +305,15 @@
|
|||||||
"current_temperature": {
|
"current_temperature": {
|
||||||
"name": "Current temperature"
|
"name": "Current temperature"
|
||||||
},
|
},
|
||||||
|
"room_air_current_temperature": {
|
||||||
|
"name": "Indoor temperature"
|
||||||
|
},
|
||||||
|
"room_in_water_current_temperature": {
|
||||||
|
"name": "Inlet temperature"
|
||||||
|
},
|
||||||
|
"room_out_water_current_temperature": {
|
||||||
|
"name": "Outlet temperature"
|
||||||
|
},
|
||||||
"temperature": {
|
"temperature": {
|
||||||
"name": "Temperature"
|
"name": "Temperature"
|
||||||
},
|
},
|
||||||
@ -848,6 +857,12 @@
|
|||||||
},
|
},
|
||||||
"power_level_for_location": {
|
"power_level_for_location": {
|
||||||
"name": "{location} power level"
|
"name": "{location} power level"
|
||||||
|
},
|
||||||
|
"cycle_count": {
|
||||||
|
"name": "Cycles"
|
||||||
|
},
|
||||||
|
"cycle_count_for_location": {
|
||||||
|
"name": "{location} cycles"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user