So I am trying to figure this out.
What i wanted to do was utilize the step_size to make the increase the values faster or slower depending on amount of steps. E.g 0-15, 10% 16-30, 20% etc etc.
But then i walked into this.
The device seems to send two different payloads (dial_rotate*
and brightness_step*
) at the approximately same time (within 0.1s).
Both contain unique values. E.g action_direction
and action_step_size
.
This automation/blueprint seems to work with the first type of payload, rendering it impossible (as is) to get hold of the step_size.
I also notices that sometimes, instead of only 2 events. I get 4. i.e two of each kind, when spinning the dial fast, creating one a “slow” and a “fast” event for a single turn of the dial.
This made me start looking into de-bounce in z2m.
But doing that it will overwrite the action, and depending on what action triggered first i guess it will retain common attributes.
I do not know, is this intended behavior or not and is there other mitigation to be made and not only denounce?
I guess one could add a choice to act differently if the action is a _fast/_slow?
E.g slow = 10%, fast 20%.
Thoughts and suggestions?
payload_json:
action: dial_rotate_right_fast
action_direction: right
action_step_size: null
action_time: 90
action_type: step
battery: 100
brightness: null
last_seen: '2025-01-08T19:21:36+01:00'
linkquality: 98
update:
installed_version: 33569561
latest_version: 33569561
state: idle
payload_json:
action: brightness_step_up
action_direction: null
action_step_size: 38
action_time: null
action_transition_time: 0.04
action_type: null
battery: 100
brightness: null
last_seen: '2025-01-08T19:21:36+01:00'
linkquality: 94
update:
installed_version: 33569561
latest_version: 33569561
state: idle
Debounce set to 0.1
payload_json:
action: brightness_step_up
action_direction: right
action_step_size: 26
action_time: 60
action_transition_time: 0.04
action_type: rotate
battery: 100
brightness: null
last_seen: '2025-01-08T19:30:58+01:00'
linkquality: 58
update:
installed_version: 33569561
latest_version: 33569561
state: idle