tuya/tuya-home-assistant

Smart Wireless Switch support

Open

#372 ouverte le 17 août 2021

Voir sur GitHub
 (4 commentaires) (2 réactions) (0 assignés) (206 forks)github user discovery
good first issue

Métriques du dépôt

Stars
 (960 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

Device normal info

  • Smart Wireless Switch M2

Device info:

{ "active_time": 1624995021, "biz_type": 18, "category": "wxkg", "create_time": 1624995021, "icon": "smart/icon/ay1536047723331OpdLN/166bec229d0c60605b4d068e0d9b7e50.png", "id": "eb7669e6fb880cb4c******", "ip": "", "lat": "", "local_key": "", "lon": "", "name": "Pulsador cuarto tres", "node_id": "804b50fffe06***", "online": true, "owner_id": "10843***", "product_id": "dfgbtub0", "product_name": "Smart Wireless Switch M2", "status": [ { "code": "switch1_value", "value": "single_click" }, { "code": "switch_mode2", "value": "click" } ], "sub": true, "time_zone": "+08:00", "uid": "", "update_time": 1629213994, "uuid": "eb7669e6fb880cb***" }

Device specifications:

2021-08-17 17:51:48 DEBUG (SyncWorker_0) [tuya iot] Request: method = GET, url = https://openapi.tuyaus.com/v1.0/devices/eb7669e6fb880******/specifications, params = None, body = None, t = 1629215508769 2021-08-17 17:51:49 DEBUG (SyncWorker_0) [tuya iot] Response: { "result": { "category": "wxkg", "functions": [], "status": [ { "code": "switch1_value", "type": "Enum", "values": "{"range":["single_click","double_click","long_press"]}" }, { "code": "switch_mode2", "type": "Enum", "values": "{"range":["click","double_click","press"]}" }, { "code": "battery_percentage", "type": "Integer", "values": "{"unit":"%","min":0,"max":100,"scale":0,"step":1}" } ] }, "success": true, "t": 1629215508904 }

Guide contributeur