tuya/tuya-home-assistant

Add support for wxkg SmartSwitch M2 plz

Open

#794 aberto em 8 de abr. de 2022

Ver no GitHub
 (0 comments) (1 reaction) (0 assignees) (206 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (960 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

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 }

Guia do colaborador