Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ultrasonic level sensor #964

Open
stefanobettipro opened this issue Nov 12, 2023 · 6 comments
Open

Ultrasonic level sensor #964

stefanobettipro opened this issue Nov 12, 2023 · 6 comments
Labels
enhancement Request new features help wanted Extra attention is needed

Comments

@stefanobettipro
Copy link

Device normal info

  • Brand: EPT Tech
  • Model: Smart TLC2206

Device info (please complete the following information, which can be found in log):
like this:
{
"active_time": 1699101903,
"biz_type": 0,
"category": "ywcgq",
"create_time": 1698697618,
"icon": "smart/icon/bay1610529967139OoVI/f4194654ecceabe31d6174fa1c51ff1c.png",
"id": "bf7d88e7cb634381730xsl",
"ip": "",
"lat": "
",
"local_key": "",
"lon": "
",
"model": "EPT_Ultrasonic level sensor",
"name": "Serbatoio acqua San Lorenzo",
"online": true,
"owner_id": "71576573",
"product_id": "wtzwyhkev3b4ubns",
"product_name": "Tank A Level",
"status": [
{
"code": "liquid_state",
"value": "upper_alarm"
},
{
"code": "liquid_depth",
"value": 69
},
{
"code": "max_set",
"value": 90
},
{
"code": "mini_set",
"value": 10
},
{
"code": "installation_height",
"value": 800
},
{
"code": "liquid_depth_max",
"value": 120
},
{
"code": "liquid_level_percent",
"value": 100
}
],
"sub": false,
"time_zone": "+01:00",
"uid": "***",
"update_time": 1699585130,
"uuid": "1437d065c7ef82dc"
},

Device specifications (please complete the following information, which can be found in log):
Same device's id, like this:
2023-11-12 18:15:05.494 DEBUG (SyncWorker_23) [tuya_iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/bf7d88e7cb634381730xsl/specifications, params = None, body = None, t = 1699809305494
2023-11-12 18:15:05.583 DEBUG (SyncWorker_23) [tuya_iot] Response: {
"result": {
"category": "ywcgq",
"functions": [
{
"code": "max_set",
"type": "Integer",
"values": "{"unit":"%","min":0,"max":100,"scale":0,"step":1}"
},
{
"code": "mini_set",
"type": "Integer",
"values": "{"unit":"%","min":0,"max":100,"scale":0,"step":1}"
},
{
"code": "installation_height",
"type": "Integer",
"values": "{"unit":"m","min":200,"max":2500,"scale":3,"step":1}"
},
{
"code": "liquid_depth_max",
"type": "Integer",
"values": "{"unit":"m","min":100,"max":2400,"scale":3,"step":1}"
}
],
"status": [
{
"code": "liquid_state",
"type": "Enum",
"values": "{"range":["normal","lower_alarm","upper_alarm"]}"
},
{
"code": "liquid_depth",
"type": "Integer",
"values": "{"unit":"m","min":0,"max":10000,"scale":2,"step":1}"
},
{
"code": "max_set",
"type": "Integer",
"values": "{"unit":"%","min":0,"max":100,"scale":0,"step":1}"
},
{
"code": "mini_set",
"type": "Integer",
"values": "{"unit":"%","min":0,"max":100,"scale":0,"step":1}"
},
{
"code": "installation_height",
"type": "Integer",
"values": "{"unit":"m","min":200,"max":2500,"scale":3,"step":1}"
},
{
"code": "liquid_depth_max",
"type": "Integer",
"values": "{"unit":"m","min":100,"max":2400,"scale":3,"step":1}"
},
{
"code": "liquid_level_percent",
"type": "Integer",
"values": "{"unit":"%","min":0,"max":100,"scale":0,"step":1}"
}
]
},
"success": true,
"t": 1699809311062,
"tid": "0933b8fa817f11eeab249a6504bbc951"
}

@stefanobettipro stefanobettipro added enhancement Request new features help wanted Extra attention is needed labels Nov 12, 2023
@randvoorhies
Copy link

I have a WIP branch for support here: home-assistant/core@dev...randvoorhies:core:tuya-ywcgq-tank-level-sensor

I'm hoping I can get a friendly dev to review, as this will be my first contribution to HA.

@Pro
Copy link

Pro commented Mar 30, 2024

@randvoorhies I took your changes and put them into a pull request:
home-assistant/core#114481

@axute
Copy link

axute commented Apr 1, 2024

I think you need to remove the draft status, but I'm not entirely sure.

@Pro
Copy link

Pro commented Apr 1, 2024

I think you need to remove the draft status, but I'm not entirely sure.

Jep, will do that after I was able to test the changes locally and the necessary checklist done. Will get the sensor in a few days.

If you have the sensor already, feel free to test the changes and leave comments in the pull request.

@stefanobettipro
Copy link
Author

stefanobettipro commented Apr 1, 2024 via email

@vmasmitja
Copy link

Hi @stefanobettipro! Have you seen the PR updates? home-assistant/core#114481. Maybe can be your solution. Seems the same issue as described here https://community.home-assistant.io/t/something-is-wrong-with-tuya-tank-level-sensors-with-the-new-official-integration/689321.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request new features help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants