mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 13:38:19 +00:00
Add Tuya snapshots for ywcgq category (#149948)
This commit is contained in:
parent
cf14226b02
commit
fe2bd8d09e
@ -256,6 +256,10 @@ DEVICE_MOCKS = {
|
||||
Platform.BINARY_SENSOR,
|
||||
Platform.SENSOR,
|
||||
],
|
||||
"ywcgq_wtzwyhkev3b4ubns": [
|
||||
# https://community.home-assistant.io/t/something-is-wrong-with-tuya-tank-level-sensors-with-the-new-official-integration/689321
|
||||
# not (yet) supported
|
||||
],
|
||||
"zndb_ze8faryrxr0glqnn": [
|
||||
# https://github.com/home-assistant/core/issues/138372
|
||||
Platform.SENSOR,
|
||||
|
139
tests/components/tuya/fixtures/ywcgq_wtzwyhkev3b4ubns.json
Normal file
139
tests/components/tuya/fixtures/ywcgq_wtzwyhkev3b4ubns.json
Normal file
@ -0,0 +1,139 @@
|
||||
{
|
||||
"endpoint": "https://apigw.tuyaeu.com",
|
||||
"terminal_id": "REDACTED",
|
||||
"mqtt_connected": true,
|
||||
"disabled_by": null,
|
||||
"disabled_polling": false,
|
||||
"id": "bf27a4********368f4w",
|
||||
"name": "Nivel del tanque A",
|
||||
"category": "ywcgq",
|
||||
"product_id": "wtzwyhkev3b4ubns",
|
||||
"product_name": "Tank A Level",
|
||||
"online": true,
|
||||
"sub": false,
|
||||
"time_zone": "+01:00",
|
||||
"active_time": "2024-01-05T10:22:24+00:00",
|
||||
"create_time": "2024-01-05T10:22:24+00:00",
|
||||
"update_time": "2024-01-05T10:22:24+00:00",
|
||||
"function": {
|
||||
"max_set": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "%",
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"mini_set": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "%",
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"installation_height": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "m",
|
||||
"min": 200,
|
||||
"max": 2500,
|
||||
"scale": 3,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"liquid_depth_max": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "m",
|
||||
"min": 100,
|
||||
"max": 2400,
|
||||
"scale": 3,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"status_range": {
|
||||
"liquid_state": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["normal", "lower_alarm", "upper_alarm"]
|
||||
}
|
||||
},
|
||||
"liquid_depth": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "m",
|
||||
"min": 0,
|
||||
"max": 10000,
|
||||
"scale": 2,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"max_set": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "%",
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"mini_set": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "%",
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"installation_height": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "m",
|
||||
"min": 200,
|
||||
"max": 2500,
|
||||
"scale": 3,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"liquid_depth_max": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "m",
|
||||
"min": 100,
|
||||
"max": 2400,
|
||||
"scale": 3,
|
||||
"step": 1
|
||||
}
|
||||
},
|
||||
"liquid_level_percent": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "%",
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"liquid_state": "normal",
|
||||
"liquid_depth": 77,
|
||||
"max_set": 100,
|
||||
"mini_set": 10,
|
||||
"installation_height": 980,
|
||||
"liquid_depth_max": 140,
|
||||
"liquid_level_percent": 97
|
||||
},
|
||||
"set_up": false,
|
||||
"support_local": true
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user