tuya/tuya-home-assistant

Kyvol e31 feature support

Open

#488 geöffnet am 23. Sept. 2021

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen) (206 Forks)github user discovery
enhancementhelp wanted

Repository-Metriken

Stars
 (960 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Device is identified as vacuum in Smart Life and the IoT platform, but only start/stop seems to be recognized as no other entities show in HA. Although, from the logs below, is the enhancement really just that an appropriate Lovelace Card needs to be developed since the data for everything (brush life, etc.) is in the log file? I know enough only to be 'dangerous' here...contributing to development in this fashion is new to me so please forgive any missteps.

Device normal info

  • Kyvol
  • e31

{ "active_time": 1631897881, "biz_type": 18, "category": "sd", "create_time": 1631734146, "icon": "smart/icon/ay1552647039402ueTid/9999d419105e4eba3801025aa15fbd93.png", "id": "ebd764e768104117degnv8", "ip": "", "lat": "", "local_key": "", "lon": "", "model": "F9370", "name": "Kynado", "online": true, "owner_id": "36426771", "product_id": "modhla03lopnmad8", "product_name": "E31", "status": [ { "code": "power", "value": true }, { "code": "power_go", "value": false }, { "code": "mode", "value": "chargego" }, { "code": "direction_control", "value": "stop" }, { "code": "status", "value": "Charge_Comp" }, { "code": "electricity_left", "value": 100 }, { "code": "edge_brush", "value": 44 }, { "code": "roll_brush", "value": 72 }, { "code": "reset_edge_brush", "value": false }, { "code": "reset_roll_brush", "value": false }, { "code": "reset_filter", "value": false }, { "code": "seek", "value": false }, { "code": "suction", "value": "3" }, { "code": "clean_record", "value": "20210921075200501100204" }, { "code": "clean_area", "value": 113 }

Device specifications (please complete the following information, which can be found in log):

2021-09-23 06:31:51 DEBUG (SyncWorker_3) [tuya iot] Request: method = GET, url = https://openapi.tuyaus.com/v1.0/devices/ebd764e768104117degnv8/specifications, params = None, body = None, t = 1632396711357 2021-09-23 06:31:51 DEBUG (Thread-4) [tuya iot] _on_log: Received SUBACK 2021-09-23 06:31:51 DEBUG (Thread-4) [tuya iot] _on_subscribe: 1 2021-09-23 06:31:51 DEBUG (SyncWorker_3) [tuya iot] Response: { "result": { "category": "sd", "functions": [ { "code": "power", "type": "Boolean", "values": "{}" }, { "code": "power_go", "type": "Boolean", "values": "{}" }, { "code": "direction_control", "type": "Enum", "values": "{"range":["forward","backward","turn_left","turn_right","stop"]}" }, { "code": "reset_edge_brush", "type": "Boolean", "values": "{}" }, { "code": "reset_roll_brush", "type": "Boolean", "values": "{}" }, { "code": "reset_filter", "type": "Boolean", "values": "{}" }, { "code": "seek", "type": "Boolean", "values": "{}" }, { "code": "suction", "type": "Enum", "values": "{"range":["0","1","2","3","4"]}" }, { "code": "mode", "type": "Enum", "values": "{"range":["standby","random","smart","wall_follow","mop","spiral","sroom","partial_bow","chargego"]}" } ], "status": [ { "code": "mode", "type": "Enum", "values": "{"range":["standby","random","smart","wall_follow","mop","spiral","sroom","partial_bow","chargego"]}" }, { "code": "power", "type": "Boolean", "values": "{}" }, { "code": "power_go", "type": "Boolean", "values": "{}" }, { "code": "direction_control", "type": "Enum", "values": "{"range":["forward","backward","turn_left","turn_right","stop"]}" }, { "code": "status", "type": "Enum", "values": "{"range":["Sleep","Standby","Cleaning","Cleaning_Auto","Cleaning_Random","Cleaning_Sroom","Cleaning_Edge","Cleaning_Spot","Clean_Comp","Docking","Charging_Base","Charging_DC","Charge_Comp","Fault"]}" }, { "code": "electricity_left", "type": "Integer", "values": "{"unit":"%","min":0,"max":100,"scale":0,"step":1}" }, { "code": "edge_brush", "type": "Integer", "values": "{"unit":"%","min":0,"max":100,"scale":0,"step":1}" }, { "code": "roll_brush", "type": "Integer", "values": "{"unit":"%","min":0,"max":100,"scale":0,"step":1}" }, { "code": "reset_edge_brush", "type": "Boolean", "values": "{}" }, { "code": "reset_roll_brush", "type": "Boolean", "values": "{}" }, { "code": "reset_filter", "type": "Boolean", "values": "{}" }, { "code": "seek", "type": "Boolean", "values": "{}" }, { "code": "clean_record", "type": "String", "values": "{"maxlen":255}" }, { "code": "suction", "type": "Enum", "values": "{"range":["0","1","2","3","4"]}" }, { "code": "clean_area", "type": "Integer", "values": "{"unit":"㎡","min":0,"max":9999,"scale":0,"step":1}" }

Contributor Guide