tuya-home-assistant
tuya-home-assistant copied to clipboard
Smart Wireless Switch support
Device normal info
- Smart Wireless Switch M2
Device info:
{ "active_time": 1624995021, "biz_type": 18, "category": "wxkg", "create_time": 1624995021, "icon": "smart/icon/ay1536047723331OpdLN/166bec229d0c60605b4d068e0d9b7e50.png", "id": "eb7669e6fb880cb4c******", "ip": "", "lat": "", "local_key": "", "lon": "", "name": "Pulsador cuarto tres", "node_id": "804b50fffe06***", "online": true, "owner_id": "10843***", "product_id": "dfgbtub0", "product_name": "Smart Wireless Switch M2", "status": [ { "code": "switch1_value", "value": "single_click" }, { "code": "switch_mode2", "value": "click" } ], "sub": true, "time_zone": "+08:00", "uid": "", "update_time": 1629213994, "uuid": "eb7669e6fb880cb***" }
Device specifications:
2021-08-17 17:51:48 DEBUG (SyncWorker_0) [tuya iot] Request: method = GET, url = https://openapi.tuyaus.com/v1.0/devices/eb7669e6fb880******/specifications, params = None, body = None, t = 1629215508769 2021-08-17 17:51:49 DEBUG (SyncWorker_0) [tuya iot] Response: { "result": { "category": "wxkg", "functions": [], "status": [ { "code": "switch1_value", "type": "Enum", "values": "{"range":["single_click","double_click","long_press"]}" }, { "code": "switch_mode2", "type": "Enum", "values": "{"range":["click","double_click","press"]}" }, { "code": "battery_percentage", "type": "Integer", "values": "{"unit":"%","min":0,"max":100,"scale":0,"step":1}" } ] }, "success": true, "t": 1629215508904 }
Can you provide your product_id?
Can you provide your product_id?
Yes. "product_id": "dfgbtub0"
Also I would like to comment, that I have another brand for the same category product, and the log looks the same as this one except that doesn't have the attribute switch_mode2, just the switch1_value one.
Thanks for adding support! If you need anything more, just let let me know
Those also:
Smart Wireless Switch M1 (unsupported) "product_id": "4upl1fcj"
Smart Wireless Switch M4 (unsupported) "product_id": "wkai4ga5",
I wanted to use them with tuya as with z2m or zha they do flash leds occasionally with no pressing the button by user.
Those also:
Smart Wireless Switch M1 (unsupported) "product_id": "4upl1fcj"
Smart Wireless Switch M4 (unsupported) "product_id": "wkai4ga5",
I wanted to use them with tuya as with z2m or zha they do flash leds occasionally with no pressing the button by user.
Have you found a solution to this problem?