Klimaanlage (HA Daikin Integration) mit KNX Glastaster II (KNX Integration) steuern

Hallo zusammen,

hat evtl. Jemand eine Steuerung umgesetzt in der HA Klimageräte per KNX Taster gesteuert werden?
Leider wird meistens KNX per HA gesteuert und nicht HA per KNX, sodass ich bisher nichts dazu finden konnte.
Hätte jemand evtl. einen Tipp?

Gruß Andi

Hi Andi,

ich kann dir zwar nicht bei der Klimaanalge helfen, aber bei deinem Weg per KNX HA zu steuern schon. Ich habe da schon einiges gemacht. Vielleicht kann ich dir helfen.

Es gibt verschiedene Möglichkeiten.
Du kannst dir Sensoren in HA anlegen denen du eine Gruppenadresse gibst:

binary_sensor:

  - name: Wohnzimmer.Bewegung
    state_address: '6/1/0'
    device_class: 'motion'

oder über eine Automatisierung:

- id: bd151961-d189-45c0-9306-3ee05b9f0d15
  alias: "Sleepmode: Childroom 1 Test"
  variables:
    state_adress: '10/2/10'
    entity_list: 
      - switch.adaptive_lighting_sleep_mode_default_childroom
  trigger:
    - platform: homeassistant
      event: start
    - platform: event
      event_type: automation_reloaded
    - platform: event
      event_type: knx_event
      event_data:
        destination: '10/2/10'
  action:
    - choose:
      - conditions:
          - condition: template
            value_template: '{{ trigger is defined and trigger.platform == "event" and trigger.event.event_type == "knx_event" }}'
        sequence:
          - choose:
            # TURN ON
            - conditions:
                - condition: template
                  value_template: "{{ trigger.event.data.destination == state_adress and trigger.event.data.data == 1 }}"
              sequence:
                - service: switch.turn_on
                  data:
                    entity_id: "{{ entity_list }}"
            # TURN OFF
            - conditions:
                - condition: template
                  value_template: "{{ trigger.event.data.destination == state_adress and trigger.event.data.data == 0 }}"
              sequence:
                - service: switch.turn_off
                  data:
                    entity_id: "{{ entity_list }}"
      # INITIALIZE
      - conditions:
          condition: or
          conditions:
          - condition: template
            value_template: "{{ trigger is not defined }}"
          - condition: template
            value_template: '{{ trigger.platform == "homeassistant" }}'
          - condition: template
            value_template: '{{ trigger.platform == "event" and trigger.event.event_type == "automation_reloaded" }}'
        sequence:
          - service: knx.event_register
            data:
              address: '{{ state_adress }}'

oder als Blueprint:

blueprint:
  name: Virtual KNX Device - Switch
  description: Vitual KNX Device that represant Switch
  domain: automation
  input:
    address:
      name: Address
      description: KNX group address for switching the switch on and off. DPT 1.001
    state_address:
      name: State Address
      description: KNX group address for exposing the switch state of the switch. DPT 1.001
    target_switch:
      name: Switch
      description: The switch to keep in sync.
      selector:
        entity:
          domain: switch
variables:
  address: !input 'address'
trigger:
- platform: homeassistant
  event: start
- platform: event
  event_type: automation_reloaded
- platform: event
  event_type: knx_event
  event_data:
    destination: !input 'address'
action:
- choose:
  - conditions:
    - condition: template
      value_template: '{{ trigger is defined and trigger.platform == "event" and trigger.event.event_type == "knx_event" }}'
    sequence:
      - choose:
        # TURN ON
        - conditions:
          - condition: template
            value_template: '{{ trigger.event.data.destination == address and trigger.event.data.data == 1 }}'
          sequence:
            - service: switch.turn_on
              data:
                entity_id: !input target_switch
                
        # TURN OFF
        - conditions:
          - condition: template
            value_template: '{{ trigger.event.data.destination == address and trigger.event.data.data == 0 }}'
          sequence:
            - service: switch.turn_off
              data:
                entity_id: !input target_switch
                
  # INITIALIZE
  - conditions:
      condition: or
      conditions:
      - condition: template
        value_template: '{{ trigger is not defined }}'
      - condition: template
        value_template: '{{ trigger.platform == "homeassistant" }}'
      - condition: template
        value_template: '{{ trigger.platform == "event" and trigger.event.event_type == "automation_reloaded" }}'
    sequence:
      - service: knx.event_register
        data:
          address: '{{ address }}'
      - service: knx.exposure_register
        data:
          address: !input state_address
          type: binary
          entity_id: !input target_switch

Guß
Pascal