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:
LG-ThinQ-Integration 2025-02-18 01:30:41 +09:00 committed by GitHub
parent 25296e1b8f
commit 04b826daa1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 48 additions and 0 deletions

View File

@ -407,6 +407,12 @@
},
"power_level_for_location": {
"default": "mdi:radiator"
},
"cycle_count": {
"default": "mdi:counter"
},
"cycle_count_for_location": {
"default": "mdi:counter"
}
}
}

View File

@ -248,6 +248,24 @@ TEMPERATURE_SENSOR_DESC: dict[ThinQProperty, SensorEntityDescription] = {
state_class=SensorStateClass.MEASUREMENT,
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] = {
ThinQProperty.USED_TIME: SensorEntityDescription(
@ -341,6 +359,10 @@ TIMER_SENSOR_DESC: dict[ThinQProperty, SensorEntityDescription] = {
}
WASHER_SENSORS: tuple[SensorEntityDescription, ...] = (
SensorEntityDescription(
key=ThinQProperty.CYCLE_COUNT,
translation_key=ThinQProperty.CYCLE_COUNT,
),
RUN_STATE_SENSOR_DESC[ThinQProperty.CURRENT_STATE],
TIMER_SENSOR_DESC[TimerProperty.TOTAL],
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],
),
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_MINI: WASHER_SENSORS,
DeviceType.WASHER: WASHER_SENSORS,

View File

@ -305,6 +305,15 @@
"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": {
"name": "Temperature"
},
@ -848,6 +857,12 @@
},
"power_level_for_location": {
"name": "{location} power level"
},
"cycle_count": {
"name": "Cycles"
},
"cycle_count_for_location": {
"name": "{location} cycles"
}
},
"select": {