The idea of this very basic template is that it really doesn’t make sense to have dedicated dimming keys on the Hue Dimmer switch, since you can also just press and hold the on and off buttons.
Therefore, these two buttons can be used for other things and in this case, these other things are two brightness presets which are implemented in Home-Assistant, because in Phoscon, only Scenes could be mapped to those buttons and that would mess up the automatic color temperature of the light.
What is possible in Phoscon is also implemented in Phoscon to avoid the detour and potential breakage caused by it.
This is what you get in HA
And this is what you need to configure in Phoscon
blueprint:
name: DeCONZ Hue Dimmer Switch Presets
description: Remap the dimming keys to brightness presets without using scenes
domain: automation
input:
dimmer_switch:
name: Dimmer Switch
description: The Dimmer Switch
selector:
device:
integration: deconz
manufacturer: Philips
model: RWL021
light:
name: Light
description: The Light to control
selector:
target:
entity:
domain: light
bright_high:
name: High Brightness
description: Brightness Level for the high setting
default: 100
selector:
number:
min: 1
max: 100
unit_of_measurement: "%"
bright_low:
name: Low Brightness
description: Brightness Level for the low setting
default: 1
selector:
number:
min: 1
max: 100
unit_of_measurement: "%"
mode: restart
max_exceeded: silent
trigger:
- platform: event
event_type: deconz_event
event_data:
device_id: !input "dimmer_switch"
action:
- variables:
event: "{{ trigger.event.data.event }}"
- choose:
- conditions:
- "{{ event == 2000 }}"
sequence:
service: light.turn_on
target: !input light
data:
brightness_pct: !input bright_high
- conditions:
- "{{ event == 3000 }}"
sequence:
service: light.turn_on
target: !input light
data:
brightness_pct: !input bright_low
I’ve been using this setup for over a year now (albeit without the blueprint of course) and I’m very happy with it. For tunable white lights, two presets are really all I need.
Honestly I do wonder why this isn’t how it works officially