You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the bottom after the description section, I have a working device config yaml, which works for me.
Log message
2025-01-25 14:38:44.448 DEBUG (SyncWorker_6) [custom_components.tuya_local.helpers.device_config] Loaded device config 1tuya_smart_water_vale.yaml
2025-01-25 14:38:44.450 DEBUG (SyncWorker_3) [custom_components.tuya_local.helpers.device_config] Loaded device config 1tuya_smart_water_vale.yaml
2025-01-25 14:38:44.451 DEBUG (SyncWorker_2) [custom_components.tuya_local.helpers.device_config] Loaded device config 1tuya_smart_water_vale.yaml
2025-01-25 14:38:44.451 DEBUG (MainThread) [custom_components.tuya_local.helpers.config] Adding number for number_flow_min_rate_set
2025-01-25 14:38:44.451 DEBUG (MainThread) [custom_components.tuya_local.helpers.config] Adding number for number_flow_max_rate_set
2025-01-25 14:38:44.452 DEBUG (MainThread) [custom_components.tuya_local.helpers.config] Adding switch for switch_valve_open
2025-01-25 14:38:44.452 DEBUG (MainThread) [custom_components.tuya_local.helpers.config] Adding select for select_flow_rate_unit
2025-01-25 14:38:44.476 DEBUG (MainThread) [custom_components.tuya_local.device] Tuya Smart Water Valve received {"1": false, "5": 0, "6": 523, "102": 1440, "108": 800, "109": 1310, "116": "3", "121": "0", "123": false, "124": true, "125": 0, "126": "on", "127": "on", "full_poll": true}
2025-01-25 14:38:44.476 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 5 value from 0 to 0.0
2025-01-25 14:38:44.476 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 5 value from 0 to 0.0
2025-01-25 14:38:44.477 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 5 value from 0 to 0.0
2025-01-25 14:38:44.477 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 5 value from 0 to 0.0
2025-01-25 14:38:44.477 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 6 value from 523 to 197.97857440284665
2025-01-25 14:38:44.477 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 6 value from 523 to 197.97857440284665
2025-01-25 14:38:44.477 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 6 value from 523 to 52.3
2025-01-25 14:38:44.477 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 6 value from 523 to 52.3
2025-01-25 14:38:44.477 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 125 value from 0 to 0.0
2025-01-25 14:38:44.477 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 125 value from 0 to 0.0
2025-01-25 14:38:44.477 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 126 value from on to True
2025-01-25 14:38:44.477 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 126 value from on to True
2025-01-25 14:38:44.477 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 127 value from on to True
2025-01-25 14:38:44.477 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 127 value from on to True
2025-01-25 14:38:44.477 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 116 value from 3 to L
2025-01-25 14:38:44.477 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Tuya Smart Water Valve: Mapped dps 116 value from 3 to L
2025-01-25 14:38:44.738 DEBUG (MainThread) [custom_components.tuya_local.device] Tuya Smart Water Valve persistant connection set to True
I have created an own device YAML file which work in my Home Assistant almost perfectly. I produce two attributes for "flow per hour" one in gal/hand one in L/h. Unfortunately I can't round the value in mapping statement to two decimal places. Here is my definition:
@louispires You could open file editor or Studio Code Server and create a file like 1tuya_smart_water_valve.yaml in path Config/custom_components/tuya_local/devices/. Copy/paste the content of the yaml definition above.
Be aware that the file will be overwritten after each update. That's why this request solves this.
At the bottom after the description section, I have a working device config yaml, which works for me.
Log message
Product ID
7lpbjkvri3bnpny2
Product Name
Tuya Smart Water Valve
DPS information
I can describe the dp_id's.
Information about how the device functions
The Tuya product Smart Water Valve isn't supported by Home Assistant core nor with xtend Tuya.
Here is the link to this product: Smart Water Valve
In Tuya Smart following properies are available:
Status of valve
Flow rate in units gal/h, m3/h or L/h
High traffic flow rate alarm linkage
Low traffic flow rate alarm linkage
Flow rate alarm on/off
Actions:
Here are two screen shots of Tuya App:
![Image](https://private-user-images.githubusercontent.com/2463365/406665786-f1d21a15-e239-42e7-ba68-bcdbb0101e3b.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNzQ1ODAsIm5iZiI6MTczOTI3NDI4MCwicGF0aCI6Ii8yNDYzMzY1LzQwNjY2NTc4Ni1mMWQyMWExNS1lMjM5LTQyZTctYmE2OC1iY2RiYjAxMDFlM2IuanBnP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTE0NDQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGUyYWE1Nzk0YjBhOWQ1NGRkNDYxOWQ5MWY2YWVlOTI1OGJhM2RkMWJlMWQ3MTNiYzI2MDQ2MDczNjM4YTgwYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.aQQT5bzkWZWPw0J8BdUfLUnUqRrZmkM7nDS2fAkJdUQ)
Device YAML config
I have created an own device YAML file which work in my Home Assistant almost perfectly. I produce two attributes for "flow per hour" one in
gal/h
and one inL/h
. Unfortunately I can't round the value in mapping statement to two decimal places. Here is my definition:Could you check the code if it's enough for your quality and put it into the repo officially.
Thank you very much.
The text was updated successfully, but these errors were encountered: