rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.8k stars 543 forks source link

Robot vacuum where to find DP/DATAPOINTS? #740

Open Princessalbert opened 2 years ago

Princessalbert commented 2 years ago

Connected everything and checked debug device in tuya iot platformand also al api functions.. The recommended datapoints don't seam to work that well when adding to hass.io Should I just try different combos or is it possible to get dp's from my device?

j54j6 commented 2 years ago

Hey ^^,

I had the same problem with my ONSON J20C - i've simply used a combo of the SmartLife App changed the values and look at the Local Tuya "Live" values (simply re-add your device multiple times) and used the Tuya debug mode... device (TUYA Product numer: F3960(ONSON/J20C)) - but there is a little twist... sometimes not all values are found by local Tuya...

in my case DP 15 & 16 cant be found anymore....

If your vaccum have the same configuration structure, this should help a little bit..

DP Number -> Description DP 1 -> Device (APP) Active (Not used in my Conf) DP2 -> Power (POWER DP) DP 3 -> Current Mode DP 4 -> current direction or stop in standby DP 5 -> Current Status DP 6 -> Battery DP 7 -> LT Sidebrush DP 8 -> LT Brush DP 9 -> LT Filter DP 10 -> Not figured out yet... DP 11 -> Not figured out yet... DP 12 -> Not figured out yet... DP 13 -> Not figured out yet... DP 14 -> Fan Speed (In my case I need to use numbers instead of LOW, NORMAL, HIGH -> (0 => None, 1 => Small, 2 => AUTO, 3 => BIG, 4 => OFF) DP 15 -> Last Changed? (Not sure) - (Not found by localTuya anymore) DP 16 -> Cleaned Area DP (Not found by localTuya anymore...) DP 17 -> Cleaning time DP 18 -> Error (BOOL) DP 101 -> Water Status (Not sure why I can modify this value my vaccum doesn't have a water tank...) DP 102 -> Product Numer (Model) DP 103 -> Data Alarm DP 104 -> Curent Mode DP 105 -> Data Debug DP 106 -> Time Calibration value DP 107 -> CarpetAdaptive

I don't know if this is helpful for you but maybe another "newbie" to localtuya with my device (or similar datapoints) can use this (or correct this list...) In my case the status is always "Cleaning" in HASS - hope this will be fixed soon...

CloCkWeRX commented 2 years ago

Related: #93

https://github.com/make-all/tuya-local/tree/main/custom_components/tuya_local/devices may also be of some help.