Open brokkolo opened 1 month ago
not sure i posted the correct dps mapping, this is what i get from iot.tuya -> "querry properties":
{ "result": { "properties": [ { "code": "switch", "custom_name": "", "dp_id": 1, "time": 1716013133000, "value": false }, { "code": "fault", "custom_name": "", "dp_id": 4, "time": 1715944749000, "value": 0 }, { "code": "water_once", "custom_name": "", "dp_id": 5, "time": 1715937485628, "value": 0 }, { "code": "water_total", "custom_name": "", "dp_id": 6, "time": 1664603774000, "value": 0 }, { "code": "battery_percentage", "custom_name": "", "dp_id": 7, "time": 1716013134000, "value": 100 }, { "code": "weather_delay", "custom_name": "", "dp_id": 10, "time": 1716013135000, "value": "cancel" }, { "code": "countdown", "custom_name": "", "dp_id": 11, "time": 1716013139000, "value": 600 }, { "code": "work_state", "custom_name": "", "dp_id": 12, "time": 1716013138000, "value": "idle" }, { "code": "use_time_one", "custom_name": "", "dp_id": 15, "time": 1715937485628, "value": 0 }, { "code": "cycle_timing", "custom_name": "", "dp_id": 16, "time": 1716013138000, "value": "AA==" }, { "code": "timer", "custom_name": "", "dp_id": 17, "time": 1716013138000, "value": "AQIAAQwpAAoAAAAKAAAAAA==" }, { "code": "no_irrigation_timing", "custom_name": "", "dp_id": 28, "time": 1716011831252 }, { "code": "work_mode_1", "custom_name": "", "dp_id": 101, "time": 1716013140000, "value": "time_irri" }, { "code": "next_time_1", "custom_name": "", "dp_id": 102, "time": 1716011834000, "value": "BRMMKQ==" }, { "code": "flow_countdown_1", "custom_name": "", "dp_id": 103, "time": 1715937485628, "value": 1 }, { "code": "total_work_time_1", "custom_name": "", "dp_id": 104, "time": 1715942493000, "value": 600 }, { "code": "total_work_flow_1", "custom_name": "", "dp_id": 105, "time": 1715937485628, "value": 0 }, { "code": "last_work_time_flow_1", "custom_name": "", "dp_id": 106, "time": 1664603775000, "value": "AAAABAAAAAA=" }, { "code": "flow_unit_set", "custom_name": "", "dp_id": 110, "time": 1716013140000, "value": "L" }, { "code": "temp_unit_set", "custom_name": "", "dp_id": 111, "time": 1716013140000, "value": "C" }, { "code": "water_comsumption_total", "custom_name": "", "dp_id": 112, "time": 1716013139000, "value": 0 }, { "code": "equiment_time", "custom_name": "", "dp_id": 113, "time": 1716012112658, "value": "2024/05/18 08:01" }, { "code": "time_format_set", "custom_name": "", "dp_id": 115, "time": 1716013140000, "value": "24H" }, { "code": "switch_2", "custom_name": "", "dp_id": 121, "time": 1716013133000, "value": false }, { "code": "water_once_2", "custom_name": "", "dp_id": 122, "time": 1715937485628, "value": 0 }, { "code": "water_total_2", "custom_name": "", "dp_id": 123, "time": 1664603780000, "value": 0 }, { "code": "weather_delay_2", "custom_name": "", "dp_id": 124, "time": 1716013139000, "value": "cancel" }, { "code": "countdown_2", "custom_name": "", "dp_id": 125, "time": 1716013139000, "value": 600 }, { "code": "work_state_2", "custom_name": "", "dp_id": 126, "time": 1716013138000, "value": "idle" }, { "code": "use_time_one_2", "custom_name": "", "dp_id": 127, "time": 1715937485628, "value": 0 }, { "code": "work_mode_2", "custom_name": "", "dp_id": 128, "time": 1716013140000, "value": "time_irri" }, { "code": "next_time_2", "custom_name": "", "dp_id": 129, "time": 1716011834000, "value": "BRMMKQ==" }, { "code": "flow_countdown_2", "custom_name": "", "dp_id": 130, "time": 1715937485628, "value": 1 }, { "code": "total_work_time_2", "custom_name": "", "dp_id": 131, "time": 1715942501000, "value": 600 }, { "code": "total_work_flow_2", "custom_name": "", "dp_id": 132, "time": 1715937485628, "value": 0 }, { "code": "last_work_time_flow_2", "custom_name": "", "dp_id": 133, "time": 1664603781000, "value": "AAAAAgAAAAA=" } ] }, "success": true, "t": 1716015114560, "tid": "1ccd8ce414e311ef9a8e62f092a4528b" }
the log message in first post is missing some dps, this is what i get when no match is found:
2024-05-22 16:46:05.077 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches None with quality of 0%. DPS: {"updated_at": 1716389164.9678242, "1": false, "4": 0, "6": 0, "7": 100, "10": "cancel", "11": 7200, "12": "idle", "101": "time_irri", "104": 7200, "110": "L", "111": "C", "112": 24, "113": "2024/05/21 20:45", "115": "24H", "121": false, "123": 0, "124": "cancel", "125": 600, "126": "idle", "128": "time_irri"}
Unfortunately I've returned this irrigation timer as it was choking the pressure in my system, thus I will not be able to test it. :(
I just created a working yaml-file for the DWV010. It is still very basic with switches for the two valves and battery+water consumption information.
name: Dual water timer products:
Just save as diivoo_dwv010.yaml and put into devices folder.
How did you add it i get key error in Local Tuya
With the diivoo_dwv010.yaml in the tuya-local devices folder when adding a new device via tuya-local the valve is recognised as DWV010 with 8 entities instead of a simple switch.
Log Message
Information about DPS mappings
Product ID
r6ya07uz
Information about how the device functions
https://www.amazon.com/Diivoo-Wireless-Sprinkler-Watering-Leakproof/dp/B0CPPFV35T