Add Tuya pool heating pumps (#118415)

Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
cRemE-fReSh
2024-06-22 12:42:32 +02:00
committed by GitHub
parent cb045a794d
commit f8c1710753
3 changed files with 24 additions and 0 deletions

View File

@@ -277,6 +277,14 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = {
device_class=NumberDeviceClass.TEMPERATURE,
),
),
# Pool HeatPump
"znrb": (
NumberEntityDescription(
key=DPCode.TEMP_SET,
translation_key="temperature",
device_class=NumberDeviceClass.TEMPERATURE,
),
),
}

View File

@@ -1132,6 +1132,15 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
suggested_unit_of_measurement=UnitOfPower.WATT,
),
),
# Pool HeatPump
"znrb": (
TuyaSensorEntityDescription(
key=DPCode.TEMP_CURRENT,
translation_key="temperature",
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
),
}
# Socket (duplicate of `kg`)

View File

@@ -672,6 +672,13 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = {
entity_category=EntityCategory.CONFIG,
),
),
# Pool HeatPump
"znrb": (
SwitchEntityDescription(
key=DPCode.SWITCH,
translation_key="switch",
),
),
}
# Socket (duplicate of `pc`)