controllerx icon indicating copy to clipboard operation
controllerx copied to clipboard

Extend ZHA for TuYaERS10TZBVKAA

Open OliverDudgeon opened this issue 1 year ago • 0 comments

New Device Support

Device Information

  • Device Model: TuYaERS10TZBVKAA

Integrations

Integration: zha

Actions

The controller has two modes that are switched between with a triple click (triggers x2 Knob 2 Attribute Updated event was fired events). From the device manual these are called:

  • remote mode
  • scene mode

The actions received by ZHA depend on this mode.

In remote mode:

  • Knob 2 Remote Button Short Press - Button event was fired : single click
  • no event : double click
  • Knob 2 Remote Button Long Release - Button event was fired with parameters: {'options_mask': None, 'options_override': None} followed by Knob 2 Move Hue event was fired with parameters: {'move_mode': <MoveMode.Up: 1>, 'rate': 15, 'options_mask': None, 'options_override': None} : long press (min 3 seconds)
  • Knob 2 Step event was fired with parameters: {'step_mode': <StepMode.Up: 0>, 'step_size': 25, 'transition_time': 1, 'options_mask': None, 'options_override': None} : clockwise turn (one notch)
  • Knob 2 Step event was fired with parameters: {'step_mode': <StepMode.Down: 1>, 'step_size': 13, 'transition_time': 1, 'options_mask': None, 'options_override': None} : anticlockwise turn (one notch)
  • Knob 2 Step Color Temp event was fired with parameters: {'step_mode': <StepMode.Up: 1>, 'step_size': 52, 'Knob 2 Step Color Temp event was fired with parameters: {'step_mode': <StepMode.Up: 1>, 'step_size': 154, 'transition_time': 3, 'color_temp_min_mireds': 153, 'color_temp_max_mireds': 500, 'options_mask': None, 'options_override': None} : press and turn clockwise
  • Knob 2 Step Color Temp event was fired with parameters: {'step_mode': <StepMode.Down: 3>, 'step_size': 256, 'transition_time': 3, 'color_temp_min_mireds': 153, 'color_temp_max_mireds': 500, 'options_mask': None, 'options_override': None} : press and turn anticlockwise

N.B. each notch equates to about 12.5 for the step_size

In scene mode:

  • Knob 2 Press Type event was fired with parameters: {'press_type': 0} : single click
  • Knob 2 Remote Button Double Press - Button 1 event was fired followed by Knob 2 Press Type event was fired with parameters: {'press_type': 1} : double click
  • Knob 2 Remote Button Long Press - Button 1 event was fired followed by Knob 2 Press Type event was fired with parameters: {'press_type': 2} : long press (min 3 seconds)
  • Knob 2 Device Rotated - Left event was fired : anticlockwise turn (one notch)
  • Knob 2 Device Rotated - Right event was fired followed by Knob 2 Rotate Type event was fired with parameters: {'rotate_type': 0} : clockwise turn (one notch)

Notes

#830, #625

OliverDudgeon avatar Apr 23 '23 12:04 OliverDudgeon