tuya/tuya-home-assistant

Add support for wxkg SmartSwitch M2 plz

Open

#794 aperta il 8 apr 2022

Vedi su GitHub
 (0 commenti) (1 reazione) (0 assegnatari) (206 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (960 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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 }

Guida contributor