tuya/tuya-home-assistant

Add support for wxkg SmartSwitch M2 plz

Open

#794 opened on Apr 8, 2022

View on GitHub
 (0 comments) (1 reaction) (0 assignees) (206 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (960 stars)
PR merge metrics
 (PR metrics pending)

Description

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 }

Contributor guide