-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Hi there, I've been using your connector for some time now and it's been working great. I recently added a new device to monitor my water tank level. However, your driver recognizes it as a Generic Heating Device and therefore it sees the tank level as temperature.
Could support for this device be included? I tried to provide as much information as I could from the logs.
Here is the log output.
[dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.537 AMdebugWater Tank status [code:Forcetime, value:0] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.534 AMdebugWater Tank status [code:C_Mode, value:PAISHUI] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.531 AMdebugWater Tank status [code:Delay1, value:0] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.528 AMdebugWater Tank status [code:RELAY2, value:false] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.525 AMdebugWater Tank status [code:Sensorstatus, value:OK] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.522 AMdebugWater Tank status [code:ALARM, value:false] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.519 AMdebugWater Tank status [code:DOWN_LEVEL, value:0] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.516 AMdebugWater Tank status [code:UP_LEVEL, value:100] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.513 AMdebugWater Tank status [code:RUNLEVEL, value:100] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.510 AMinfoWater Tank temperature is 167.0F ([code:temp_current, value:75]) [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.507 AMdebugWater Tank status [code:temp_current, value:75] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.504 AMinfoWater Tank heating set point is 77.0F ([code:temp_set, value:25]) [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.501 AMdebugWater Tank status [code:temp_set, value:25] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.498 AMinfoWater Tank switch is on [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.495 AMdebugWater Tank status [code:Power, value:true] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.490 AMdebugWater Tank workMode [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.483 AMdebugGroups: [Water Tank:[[code:Power, value:true], [code:temp_set, value:25], [code:temp_current, value:75], [code:RUNLEVEL, value:100], [code:UP_LEVEL, value:100], [code:DOWN_LEVEL, value:0], [code:ALARM, value:false], [code:Sensorstatus, value:OK], [code:RELAY2, value:false], [code:Delay1, value:0], [code:C_Mode, value:PAISHUI], [code:Forcetime, value:0]]] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.429 AMdebugTuya category rs driver [namespace:component, driver:Generic Component Heating Device] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.245 AMdebugAPI GET [uri:https://openapi.tuyaus.com, path:/v1.0/devices/XX/specifications, query:null, contentType:application/json, headers:[t:XX, nonce:XX, client_id:XX, Signature-Headers:client_id, sign:XX, sign_method:HMAC-SHA256, access_token:XX, lang:en, dev_lang:groovy, dev_channel:hubitat, devVersion:0.3], body:null, timeout:5] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.237 AMinfoRequesting cloud device specifications for XX [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.232 AMinfoReceived 1 cloud devices (has_more: false) [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.111 AMdebugAPI GET [uri:https://openapi.tuyaus.com, path:/v1.0/homes/XX/scenes, query:null, contentType:application/json, headers:[t:1743949943104, nonce:XX, client_id:XX, Signature-Headers:client_id, sign:XX, sign_method:HMAC-SHA256, access_token:XX, lang:en, dev_lang:groovy, dev_channel:hubitat, devVersion:0.3], body:null, timeout:5] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:23.103 AMdebugRequesting scenes for home 156544116 [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:22.604 AMdebugAPI GET [uri:https://openapi.tuyaus.com, path:/v1.0/users/az1684707932102a86S2/homes, query:null, contentType:application/json, headers:[t:1743949942597, nonce:b1b9e318-cf76-4cb8-9adc-a5c81dceed51, client_id:XX, Signature-Headers:client_id, sign:XX, sign_method:HMAC-SHA256, access_token:XX, lang:en, dev_lang:groovy, dev_channel:hubitat, devVersion:0.3], body:null, timeout:5] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:22.597 AMinfoRequesting Tuya Home list [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:22.594 AMdebugAPI GET [uri:https://openapi.tuyaus.com, path:/v1.0/iot-01/associated-users/devices, query:[last_row_key:], contentType:application/json, headers:[t:1743949942564, nonce:XX, client_id:XX, Signature-Headers:client_id, sign:XX, sign_method:HMAC-SHA256, access_token:XX, lang:en, dev_lang:groovy, dev_channel:hubitat, devVersion:0.3], body:null, timeout:5] [dev:841](http://192.168.86.61/logs#)2025-04-06 10:32:22.541 AMinfoRequesting cloud devices batch
I added some Log debug to print the result from tuyaGetDeviceSpecificationsResponse
Device Data: [ active_time:1684708111, biz_type:0, category:rs, create_time:1681464244, functions:[ Power:[type:Boolean], temp_set:[max:100, min:25, scale:0, step:25, type:Integer, unit:%], RUNLEVEL:[max:100, min:25, scale:0, step:25, type:Integer, unit:%], UP_LEVEL:[max:100, min:25, scale:0, step:25, type:Integer, unit:%], DOWN_LEVEL:[max:75, min:0, scale:0, step:25, type:Integer, unit:%], ALARM:[type:Boolean], Delay1:[max:30, min:0, scale:0, step:1, type:Integer, unit:秒], C_Mode:[range:[BUSHUI, PAISHUI, BUSHUITIME, PAISHUITIME], type:Enum], Forcetime:[max:720, min:0, scale:0, step:5, type:Integer, unit:分钟] ], icon:smart/icon/ay1524831691838LKBMs/1599190912a3c2f371c79.jpg, id:XX, ip:XX, lat:XX, local_key:XX, lon:-XX, model:WF96L, name:Water Tank, online:true, owner_id:XX, product_id:emv2b2azwfusstur, product_name:WF96L水位控制器, status:[ [code:Power, value:true], [code:temp_set, value:25], [code:temp_current, value:75], [code:RUNLEVEL, value:100], [code:UP_LEVEL, value:100], [code:DOWN_LEVEL, value:0], [code:ALARM, value:false], [code:Sensorstatus, value:OK], [code:RELAY2, value:false], [code:Delay1, value:0], [code:C_Mode, value:PAISHUI], [code:Forcetime, value:0] ], statusSet:[ Power:[type:Boolean], temp_set:[max:100, min:25, scale:0, step:25, type:Integer, unit:%], temp_current:[max:100, min:0, scale:0, step:25, type:Integer, unit:%], RUNLEVEL:[max:100, min:25, scale:0, step:25, type:Integer, unit:%], UP_LEVEL:[max:100, min:25, scale:0, step:25, type:Integer, unit:%], DOWN_LEVEL:[max:75, min:0, scale:0, step:25, type:Integer, unit:%], ALARM:[type:Boolean], Sensorstatus:[range:[25, 50, 75, OK, HALARM, LALARM], type:Enum], RELAY2:[type:Boolean], Delay1:[max:30, min:0, scale:0, step:1, type:Integer, unit:秒], C_Mode:[range:[BUSHUI, PAISHUI, BUSHUITIME, PAISHUITIME], type:Enum], Forcetime:[max:720, min:0, scale:0, step:5, type:Integer, unit:分钟]], sub:false, time_zone:-04:00, uid:XX, update_time:1743880724, uuid:XX ] ]
Similarly, I printed the output of $data after mapping
[ category:rs, functions:[ [code:Power, type:Boolean, values:{}], [code:temp_set, type:Integer, values:{"unit":"%","min":25,"max":100,"scale":0,"step":25}], [code:RUNLEVEL, type:Integer, values:{"unit":"%","min":25,"max":100,"scale":0,"step":25}], [code:UP_LEVEL, type:Integer, values:{"unit":"%","min":25,"max":100,"scale":0,"step":25}], [code:DOWN_LEVEL, type:Integer, values:{"unit":"%","min":0,"max":75,"scale":0,"step":25}], [code:ALARM, type:Boolean, values:{}], [code:Delay1, type:Integer, values:{"unit":"秒","min":0,"max":30,"scale":0,"step":1}], [code:C_Mode, type:Enum, values:{"range":["BUSHUI","PAISHUI","BUSHUITIME","PAISHUITIME"]}], [code:Forcetime, type:Integer, values:{"unit":"分钟","min":0,"max":720,"scale":0,"step":5}] ], status:[ [code:Power, type:Boolean, values:{}], [code:temp_set, type:Integer, values:{"unit":"%","min":25,"max":100,"scale":0,"step":25}], [code:temp_current, type:Integer, values:{"unit":"%","min":0,"max":100,"scale":0,"step":25}], [code:RUNLEVEL, type:Integer, values:{"unit":"%","min":25,"max":100,"scale":0,"step":25}], [code:UP_LEVEL, type:Integer, values:{"unit":"%","min":25,"max":100,"scale":0,"step":25}], [code:DOWN_LEVEL, type:Integer, values:{"unit":"%","min":0,"max":75,"scale":0,"step":25}], [code:ALARM, type:Boolean, values:{}], [code:Sensorstatus, type:Enum, values:{"range":["25","50","75","OK","HALARM","LALARM"]}], [code:RELAY2, type:Boolean, values:{}], [code:Delay1, type:Integer, values:{"unit":"秒","min":0,"max":30,"scale":0,"step":1}], [code:C_Mode, type:Enum, values:{"range":["BUSHUI","PAISHUI","BUSHUITIME","PAISHUITIME"]}], [code:Forcetime, type:Integer, values:{"unit":"分钟","min":0,"max":720,"scale":0,"step":5}] ] ]