Skip to content

Instantly share code, notes, and snippets.

@j4velin
Created October 24, 2025 18:55
Show Gist options
  • Select an option

  • Save j4velin/78aa893f1223af2309f316d2e2d4b4cf to your computer and use it in GitHub Desktop.

Select an option

Save j4velin/78aa893f1223af2309f316d2e2d4b4cf to your computer and use it in GitHub Desktop.
HA Blueprint to switch a Hue light from KNX
blueprint:
name: Switch Hue light from KNX
description: Turn a Hue light on or off from a KNX telegram
domain: automation
input:
knx_address:
name: KNX group address to switch the light
target_light:
name: Hue light entity to switch
selector:
target:
entity:
- domain: light
triggers:
- domain: knx
device_id: # hardcode knx device id here
type: telegram
trigger: device
group_value_write: true
incoming: true
destination: !input knx_address
actions:
- if:
- condition: template
value_template: "{{trigger.value == 'on'}}"
then:
- action: light.turn_on
target: !input target_light
else:
- action: light.turn_off
target: !input target_light
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment