This is what I use, repeated double clicks cycle through a range of dimnesses.
- id: dblclick Dining
alias: dbl click dining
trigger:
platform: event
event_type: deconz_event
event_data:
id: double_switch_1
event: 2004
action:
- entity_id: light.dining_room
data_template:
brightness: >
{% if is_state('light.dining_room','off') -%}
30
{%- else -%}
{% if ( states.light.dining_room.attributes.brightness + 75) > 255 -%}
0
{%- else -%}
{{ states.light.dining_room.attributes.brightness + 75 }}
{%- endif %}
{%- endif %}
service: light.turn_on