Zigbee2MQTT Tuya Moes Smart Knob (ERS-10TZBVK-AA)

Thanks! Much appreciated.

Has anyone gotten this blueprint to work on Z2M? It auto joins but nothing is working via the blueprint

1 Like

Trying to use this on a hue but brigthness change is not smooth and very clunky. Can it be made smooth like a fade effect.

Has anyone written it for command mode (lights)???
Thanks.

not written it for comand mode, but have wrote two automations/scripts so you can choose it to work with either temprature, or us it for cycling scenes (push and rotate) under non push and rotate its is just brightness.

I had same issue and followed Zigbee2MQTT - Tuya 4-button Scene Switch (TS0044) - #54 by just.bondarenko

Seemed to resolve it for me.

Trying to use this on a hue but brigthness change is not smooth and very clunky. Can it be made smooth like a fade effect.

I’ve integrated the smart knob to Z2M as command mode and I’ve created a simple action on node red (one click to on or off). This action is working fine.
The intention here is this button controls a Sonoff D1 dimmer.
To my surprise the rotation is working as well for the dimmer, despite I haven’t any action/programming on node red for the rotation.
It should be ok with less work, but the problem is that the brightness value is wrong… the system (I don’t know if the Z2M or Node Red) gets the rotation value as the new brightness, so let’s suppose I’m with 150 as brightness and I want to increase a little more and rotate it 30, for instance, the new brightness value is 30 and not 180 (150 + 30). This is hard because I have to discover the right “size” of rotation for the perfect brightness I want for that, and it should work as a volume button, where you rotate a small part of it and the volume increase or decrease that small part for the present volume.
In the Z2M logs I can see both values (example below), and as I’ve described above the new brightness comes from the value of action_step_size and not from the brightness.

Info 2022-09-07 22:38:58MQTT publish: topic 'zigbee2mqtt/Botao_Dimmer_Casal', payload '{"action":"brightness_step_up","action_rate":null,"action_step_size":25,"action_transition_time":0.01,"battery":100,"brightness":240,"linkquality":69,"operation_mode":"command","voltage":3000}'

Does anyone know how could I change it? I’d like to work with the brightness value, which changes perfectly (increasing or decreasing from the previous value).
Thanks a lot.

Thanks. This is rather exciting. I have the knob linked to my dimmable light.
I see 1 turn changes 10%. But if I turn fast (feel many clicks), it still does 10%. It doesn’t feel like it’s doing sth.
How can this be made to change more?

It also doesn’t respond sometimes. Eg today the bp triggered but none of the actions did.

image

It only saves 5 traces, so I can’t find older ones where it worked.

It can’t. It’s a largely useless device.

I completely, agree, it’s fine as a button but for the rest it won’t do smooth light transition. It just doesn’t transmit rotation consistenly and quickly enough.

Too bad because it’s the entire point of a device looking like this. Oh well.

1 Like

I wonder if it works this badly even (turning the knob not feeling “analogue”) with the official Tuya app. Can anyone check? I don’t have a Tuya box to try.

I tested a little and in command mode it is faster a little, let's say functional.
To try it (with only single press, rotate right, rotate left),
1) change 'single' by  'toggle'
2) change 'rotate_right' by ''brightness_step_up''
2) change 'rotate_left' by ''brightness_step_down''

Also in command mode, we have info to set proportional values (action_step_size and action_transition_time. I think with tuya app  success to have something good with that and we can do same here

1 Like

or use this

blueprint:
  name: Zigbee2MQTT (ALEX) - Tuya Moes Smart Knob (Operation Mode = event)
  description: Automate your Tuya Smart Knob - ERS-10TZBVK-AA
  domain: automation
  input:
    switch:
      name: Tuya Smart Knob
      description: Tuya Smart Knob used as Button
      selector:
        entity:
          integration: mqtt
          domain: sensor
          multiple: false
    button_short_press:
      name: Single Press
      description: Action to run on single press (careful not to turn knob instead)
      default: []
      selector:
        action: {}
    button_double_press:
      name: Double Press
      description: Action to run on double press (careful not to turn knob instead)
      default: []
      selector:
        action: {}
    button_long_press:
      name: Long Press
      description:
        Action to run on long press (at least 4 seconds - careful not to
        turn knob instead)
      default: []
      selector:
        action: {}
    button_rotate_right:
      name: Rotate Right
      description: Action to run when Smart Knob is rotated right
      default: []
      selector:
        action: {}
    button_rotate_left:
      name: Rotate Left
      description: Action to run when Smart Knob is rotated left
      default: []
      selector:
        action: {}
  source_url: https://community.home-assistant.io/t/zigbee2mqtt-tuya-moes-smart-knob-ers-10tzbvk-aa/419989
mode: restart
max_exceeded: silent
trigger:
  - platform: state
    entity_id: !input switch
action:
  - variables:
      command: "{{ trigger.to_state.state }}"
  - choose:
      - conditions:
          - "{{ command == 'toggle' }}"
        sequence: !input button_short_press
      - conditions:
          - "{{ command == 'double' }}"
        sequence: !input button_double_press
      - conditions:
          - "{{ command == 'hold' }}"
        sequence: !input button_long_press
      - conditions:
          - "{{ command == 'brightness_step_up' }}"
        sequence: !input button_rotate_right
      - conditions:
          - "{{ command == 'brightness_step_down' }}"
        sequence: !input button_rotate_left

1 Like

Now it seem usable :slight_smile:
Make it to support 2 light, to control the second light, press the knob and turn … if you just press more than 3 second, it toggle it

blueprint:
  name: Zigbee2MQTT (ALEX) - Tuya Moes Smart Knob (Operation Mode = command and need "Home Assistant legacy entity attributes" check)
  description: Automate your Tuya Smart Knob - ERS-10TZBVK-AA
  domain: automation
  input:
    switch:
      name: Tuya Smart Knob
      description: Tuya Smart Knob used as Button
      selector:
        entity:
          integration: mqtt
          domain: sensor
          multiple: false
    light1:
      name: light 1
      description: light when know is not pressed
      selector:
        entity:
          domain: light
      default: []
    light2:
      name: light 2
      description: light when know is pressed
      selector:
        entity:
          domain: light
      default: []
    speed:
      name: speed of the knob
      description: multiplicator of the speed of light ;)
      selector:
        number:
          min: 0.1
          max: 1.0
          step: 0.1
      default: 0.5

mode: restart
max_exceeded: silent
trigger:
  - platform: state
    entity_id: !input switch
    not_to: ""
    attribute: action
action:
  - variables:
      command: "{{ trigger.to_state.state }}"
      step: "{{ trigger.to_state.attributes.action_step_size }}"
      time: "{{ trigger.to_state.attributes.action_transition_time }}"
      speed: !input speed
  - choose:
      - conditions:
          - "{{ command == 'toggle' }}"
        sequence:
          - service: light.toggle
            entity_id: !input light1
      - conditions:
          - "{{ command == 'hue_move' }}"
        sequence:
          - service: light.toggle
            entity_id: !input light2
      - conditions:
          - "{{ command == 'brightness_step_up' }}"
        sequence:
          - service: light.turn_on
            entity_id: !input light1
            data:
              brightness_step_pct: "{{speed*step}}"
      - conditions:
          - "{{ command == 'brightness_step_down' }}"
        sequence:
          - service: light.turn_on
            entity_id: !input light1
            data:
              brightness_step_pct: "-{{speed*step}}"
      - conditions:
          - "{{ command == 'color_temperature_step_up' }}"
        sequence:
          - service: light.turn_on
            entity_id: !input light2
            data:
              brightness_step_pct: "{{speed*step}}"
      - conditions:
          - "{{ command == 'color_temperature_step_down' }}"
        sequence:
          - service: light.turn_on
            entity_id: !input light2
            data:
              brightness_step_pct: "-{{speed*step}}"
4 Likes

Hi, i have it connected to official tuya app, and it is working fine, dimming lights without any issues.

And there isn’t a way to translate that (smooth behavior) to HA, is there? I’d like to control Sonos volume with it for example.

Is there a way to besides turning on a device, also set its brightness to the max?

For example:

type: toggle
device_id: 123456789
entity_id: light.livingroom_light
domain: light

if:
  - condition: device
    type: is_on
    device_id: 123456789
    entity_id: light.livingroom_light
    domain: light
then:
  - service: mqtt.publish
    data:
      topic: zigbee2mqtt/livingroom_light/set
      payload: "{\"brightness\": \"254\"}"

I tried to do this, but it didn’t work.
How I am suppose to use the “single press” to toggle the light and if the light is on, also set its brightness?

Thanks :smiley: