Add water_level sensor to Tuya pet fountain cwysj (#146602)

Co-authored-by: Norbert Rittel <norbert@rittel.de>
This commit is contained in:
Fredrik Mårtensson 2025-07-01 15:57:17 +02:00 committed by GitHub
parent 922720576a
commit 510e3977df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 0 deletions

View File

@ -393,6 +393,7 @@ class DPCode(StrEnum):
WATER_RESET = "water_reset" # Resetting of water usage days
WATER_SET = "water_set" # Water level
WATER_TIME = "water_time" # Water usage duration
WATER_LEVEL = "water_level"
WATERSENSOR_STATE = "watersensor_state"
WEATHER_DELAY = "weather_delay"
WET = "wet" # Humidification

View File

@ -334,6 +334,9 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
state_class=SensorStateClass.MEASUREMENT,
entity_registry_enabled_default=False,
),
TuyaSensorEntityDescription(
key=DPCode.WATER_LEVEL, translation_key="water_level_state"
),
),
# Air Quality Monitor
# https://developer.tuya.com/en/docs/iot/hjjcy?id=Kbeoad8y1nnlv

View File

@ -617,6 +617,14 @@
"water_level": {
"name": "Water level"
},
"water_level_state": {
"name": "Water level",
"state": {
"level_1": "[%key:common::state::low%]",
"level_2": "[%key:common::state::medium%]",
"level_3": "[%key:common::state::full%]"
}
},
"total_watering_time": {
"name": "Total watering time"
},