Increase default H2 EU dimmer deadzone and attempt fix for single presses being seen as stop_rotating actions
This commit is contained in:
1 parent
863f977ec0
commit
4523bdce43
1 file changed
+9
-2
@@ -45,7 +45,7 @@ blueprint:
|
||||
rotation_deadzone:
|
||||
name: Rotation Deadzone (Anti-knock)
|
||||
description: The minimum rotation angle (in degrees) required to trigger a dimming action. Increase this if you accidentally dim the lights when clicking the knob.
|
||||
default: 10
|
||||
default: 20
|
||||
selector:
|
||||
number:
|
||||
min: 0
|
||||
@@ -116,7 +116,14 @@ action:
|
||||
- variables:
|
||||
# Safely extract payload variables directly from the MQTT JSON message
|
||||
payload: "{{ trigger.payload_json if trigger.payload_json is defined else {} }}"
|
||||
action_type: "{{ payload.action | default('') }}"
|
||||
raw_action_type: "{{ payload.action | default('') }}"
|
||||
rotation_button_state: "{{ payload.action_rotation_button_state | default('') }}"
|
||||
action_type: >
|
||||
{% if raw_action_type == 'stop_rotating' and rotation_button_state == 'pressed' %}
|
||||
single
|
||||
{% else %}
|
||||
{{ raw_action_type }}
|
||||
{% endif %}
|
||||
raw_angle: "{{ payload.action_rotation_angle | default(0) | float(0) }}"
|
||||
|
||||
# Pull inputs into variables so they can be safely evaluated in templates below
|
||||
|
||||
Reference in new issue
Block a user