Thank you!
It appeared even without removing.
But unfortunatelly it not shows all states correctly
Diagnostic "Current switch position" shows 0 always.
Event "Button" displays
"Pressed once" - after single or double press
"Released after being held down" - ather holding button two events fired, afrer releasing there no events
And I can't add automation or scene for this device - only "1SceneSwitch Current switch position" entity available
I removed the switch with clearing data from Tuya Smart.
Some time it works in Home Assistant until disappeared )
Then I reconnected it and Device ID changed:
Product Name: 旋钮开关
Device ID: bfbb3ba573b105bef1uu8h
Product Category: wxkg
But behavior in HA Matter the same.
In Device Debugging I can see such info:
Standard Instruction Set
mode Enum
{
"range": [
"remote_control",
"wireless_switch"
]
}
Standard Status Set
switch_mode1 Enum
{
"range": [
"click",
"double_click",
"press"
]
}
battery_percentage Integer
{
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
mode Enum
{
"range": [
"remote_control",
"wireless_switch"
]
}
knob_switch_mode_1 Enum
{
"range": [
"clockwise_rotation",
"anticlockwise_rotation"
]
}
and events in log
Switch 1 single click
Switch 1 double click
Switch 1 long press
knob switch Clockwise rotation
knob switch Anticlockwise rotation
after tripple click
mode wireless switch
mode remote dimming