tuya/tuya-home-assistant

Add support for wxkg SmartSwitch M2 plz

Open

#794 ouverte le 8 avr. 2022

Voir sur GitHub
 (0 commentaires) (1 réaction) (0 assignés) (206 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (960 stars)
Métriques de merge PR
 (Métriques PR en attente)

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 }

Guide contributeur