tuya/tuya-home-assistant

Fan Speed & Fan Direction

Open

#362 aperta il 16 ago 2021

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari) (206 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (960 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Device normal info

** Tuya Smart Life App Screenshot

fan-tuya-app

**Device info

{ "active_time": 1627095496, "biz_type": 0, "category": "fs", "create_time": 1627095496, "icon": "smart/icon/bay1584532656526XHLd/4174877b87bb92ca949b71f3c24771c1.png", "id": "82823423e09806aab4b3", "ip": "", "lat": "", "local_key": "", "lon": "", "name": "Alfresco Fan", "online": true, "owner_id": "12383088", "product_id": "vzj97d3m05yjhchn", "product_name": "Skyfan DC", "status": [ { "code": "switch", "value": false }, { "code": "fan_speed_percent", "value": 3 } ], "sub": false, "time_zone": "+10:00", "uid": "***", "update_time": 1629047358, "uuid": "82823423e09806aab4b3" },

**Device specifications

2021-08-16 10:38:36 DEBUG (SyncWorker_1) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/82823423e09806aab4b3/specifications, params = None, body = None, t = 1629074316077 2021-08-16 10:38:36 DEBUG (Thread-5) [tuya iot] _on_log: Received CONNACK (0, 0) 2021-08-16 10:38:36 DEBUG (Thread-5) [tuya iot] connect flags->{'session present': 0}, rc->0 2021-08-16 10:38:36 DEBUG (Thread-5) [tuya iot] _on_log: Sending SUBSCRIBE (d0, m1) [(b'cloud/token/in/f2d48ca5fdbdc172ffa992f69789c2a0', 0)] 2021-08-16 10:38:36 DEBUG (SyncWorker_1) [tuya iot] Response: { "result": { "category": "fs", "functions": [ { "code": "switch", "type": "Boolean", "values": "{}" }, { "code": "fan_speed_percent", "type": "Integer", "values": "{"min":"1","max":"5","scale":"0","step":"1"}" } ], "status": [ { "code": "switch", "type": "Boolean", "values": "{}" }, { "code": "fan_speed_percent", "type": "Integer", "values": "{"min":"1","max":"5","scale":"0","step":"1"}" } ] }, "success": true, "t": 1629074316297 }

image

Guida contributor