Skip to content

Instantly share code, notes, and snippets.

@elupus
Last active November 8, 2022 10:42
Show Gist options
  • Save elupus/0f8f3f98eb97cba3e1dc2f20a4564fef to your computer and use it in GitHub Desktop.
Save elupus/0f8f3f98eb97cba3e1dc2f20a4564fef to your computer and use it in GitHub Desktop.
Blueprint: IKEA Symfonisk to KNX dimmer
blueprint:
name: IKEA Symfonisk Rotary Dimmer
description: Use symfonisk as knx relative dimmer
domain: automation
input:
rotary_device:
name: Source device
selector:
device:
integration: zha
model: SYMFONISK Sound Controller
relative_dimming_address:
name: Relative Dimming Address
description: >
Group address for handling relative dimming. DPT 3.007
Example: '1/2/3'
light:
name: Light entities controlled
description: >
The light entity to use for toggle commands.
selector:
target:
entity:
domain: light
mode: restart
max_exceeded: silent
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: !input rotary_device
command: "move"
args:
- 0
- 195
id: "move_right"
- platform: event
event_type: zha_event
event_data:
device_id: !input rotary_device
command: "move"
args:
- 1
- 195
id: "move_left"
- platform: event
event_type: zha_event
event_data:
device_id: !input rotary_device
command: "stop"
id: "stop"
- platform: event
event_type: zha_event
event_data:
device_id: !input rotary_device
command: "toggle"
id: "toggle"
action:
- choose:
- conditions:
condition: trigger
id: "move_left"
sequence:
- service: knx.send
data:
address: 1/2/16
payload: 1
- conditions:
condition: trigger
id: "move_right"
sequence:
- service: knx.send
data:
address: 1/2/16
payload: 9
- conditions:
condition: trigger
id: "stop"
sequence:
- service: knx.send
data:
address: 1/2/16
payload: 0
- conditions:
condition: trigger
id: "toggle"
sequence:
- service: light.toggle
target: !input light
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment