tuya/tuya-home-assistant

Add support for wxkg SmartSwitch M2 plz

Open

#794 创建于 2022年4月8日

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

仓库指标

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

描述

Hello,

Get a Zigbee SmartSwitch from Aliexpress. HA didn't get any entity from this switch.

Can you please add this in https://github.com/tuya/tuya-home-assistant/milestone/2 ?

Thanks :)

Device Information Product Name : 智能二键场景开关(电池ZigBee)plus Product Category : wxkg

Result from API Explorer :

{ "result": { "category": "wxkg", "status": [ { "code": "switch1_value", "name": "无线开关1", "type": "Enum", "values": "{"range":["single_click","double_click","long_press"]}" }, { "code": "switch_mode2", "name": "无线开关2", "type": "Enum", "values": "{"range":["click","double_click","press"]}" }, { "code": "battery_percentage", "name": "电池电量", "type": "Integer", "values": "{"unit":"%","min":0,"max":100,"scale":0,"step":1}" } ] }, "success": true, "t": 1649398864392, "tid": "11833d71b70411ecac0832109786e029" }

Standard Status set :

switch1_value Enum { "range": [ "single_click", "double_click", "long_press" ] }
switch_mode2 Enum { "range": [ "click", "double_click", "press" ] }
battery_percentage Integer { "unit": "%", "min": 0, "max": 100, "scale": 0, "step": 1 }

贡献者指南