Hi, I am trying to switch Zigbee Lights from my KNX switches. But when I press a button, nothing happens. This is the first time I am trying to create an automation with a self-created blueprint.
I believe I am missing something, what could it be?
Automation Blueprint:
blueprint:
name: KNX2Zigbee Automation
description: "KNX Befehle auf Zigbee übertragen (Licht)"
domain: automation
input:
switch:
name: KNX Objekt
description: Kommunikationsobjekt (5/1/...)
selector:
entity:
domain: switch
light_1:
name: Tastendruck
description: Welche Zigbee Leuchte soll kontrolliert werden?
selector:
target:
entity:
domain: light
# mode: restart
max_exceeded: silent
trigger:
- platform: state
entity_id: !input "switch"
attribute: action
action:
- variables:
command: "{{ trigger.to_state.state }}"
- choose:
- conditions:
- "{{ command == 'off' }}"
sequence:
- service: light.turn_off
target: !input "light_1"
data: {}
- conditions:
- "{{ command == 'on' }}"
sequence:
- service: light.turn_on
data: {}
target: !input "light_1"
KNX Device:
knx:
switch:
- name: "Flur EG Licht Garderobe ZB"
address: "5/1/0"
state_address: "5/1/0"