tuya/tuya-home-assistant

Smart dimmer Switch

Open

#442 创建于 2021年9月4日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人) (206 fork)github user discovery
enhancementhelp wanted

仓库指标

Star
 (960 star)
PR 合并指标
 (PR 指标待抓取)

描述

Smart Dimmer Switch, WiFi Dimmer Light Switch This device does not appear as an entity, while it was working in tuya v1 (although only as a switch, not actually as a dimmer.

Device info { "active_time": 1623084960, "biz_type": 18, "category": "tgkg", "create_time": 1623084960, "icon": "smart/icon/bay15877086634937aF9/ba7d5485be442e99add786dcdc0f2c98.jpg", "id": "bfddc7448369c3ef0btdks", "ip": "", "lat": "", "local_key": "", "lon": "", "model": "Bsc-ds-1", "name": "Light living room", "online": true, "owner_id": "29448985", "product_id": "blg23kzmuce4xd6b", "product_name": "", "status": [ { "code": "switch_led_1", "value": false }, { "code": "bright_value_1", "value": 703 }, { "code": "brightness_min_1", "value": 10 }, { "code": "led_type_1", "value": "led" }, { "code": "work_mode", "value": "light_white" }, { "code": "light_mode", "value": "pos" } ], "sub": false, "time_zone": "+02:00", "uid": "***", "update_time": 1628419109, "uuid": "0b672d46fa9c07a4" }

**Device specifications ** 2021-09-04 10:23:20 DEBUG (SyncWorker_1) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/bfddc7448369c3ef0btdks/specifications, params = None, body = None, t = 1630743800337 2021-09-04 10:23:20 DEBUG (SyncWorker_1) [tuya iot] Response: { "result": { "category": "tgkg", "functions": [ { "code": "switch_led_1", "type": "Boolean", "values": "{}" }, { "code": "bright_value_1", "type": "Integer", "values": "{"min":10,"max":1000,"scale":0,"step":1}" }, { "code": "brightness_min_1", "type": "Integer", "values": "{"min":10,"max":1000,"scale":0,"step":1}" }, { "code": "led_type_1", "type": "Enum", "values": "{"range":["led","incandescent","halogen"]}" }, { "code": "work_mode", "type": "Enum", "values": "{"range":["light_white"]}" }, { "code": "light_mode", "type": "Enum", "values": "{"range":["none","relay","pos"]}" } ], "status": [ { "code": "switch_led_1", "type": "Boolean", "values": "{}" }, { "code": "bright_value_1", "type": "Integer", "values": "{"min":10,"max":1000,"scale":0,"step":1}" }, { "code": "brightness_min_1", "type": "Integer", "values": "{"min":10,"max":1000,"scale":0,"step":1}" }, { "code": "led_type_1", "type": "Enum", "values": "{"range":["led","incandescent","halogen"]}" }, { "code": "work_mode", "type": "Enum", "values": "{"range":["light_white"]}" }, { "code": "light_mode", "type": "Enum", "values": "{"range":["none","relay","pos"]}" } ] }, "success": true, "t": 1630743800383 }

贡献者指南