Homematic Taster

04 March 2022 - 22:03 | Version 2 |

Reset und anlernen

  • Reset:
    • Hintere Taste 5 Sec drücken
    • Loslassen
    • Hintere Taste 5 Sec drücken
    • Loslassen
  • Anlernen:
    • Hintere Taste kurz drücken
    • eine der beiden vorderen Tasten kurz drücken

Events aktivieren für Homematic-IP-Produkte

Damit die Events auch bei Homeassistant ankommen, muss auf der Raspberrymatic für jeden möglichen Tastendruck ein Pseudoprogramm erstellt werden (siehe https://www.home-assistant.io/integrations/homematic/#events)

Blueprint für den 6fach-Schalter

blueprint:
  name: Actions for HmIP-WRC6
  description: When a button is pressed, the defined actions will be executed. Please keep in mind, that long-press actions might be executed multiple times, according to your configured minimum duration for long press. This can be configured in your CCU.
  domain: automation
  input:
    switch:
        name: HmIP-WRC6 Device
        description: Please select a HmIP-WRC6 entity of your Homematic (not Homematic Cloud) integration by typing in the name of the device which was set in your CCU.

    action_left_top_short:
        name: Action
        description: Left-Top-Button, Short Press
        default: []
        selector:
            action: {}
    action_left_top_long:
        name: Action
        description: Left-Top-Button, Long Press
        default: []
        selector:
            action: {}
    action_right_top_short:
        name: Action
        description: Right-Top-Button, Short Press
        default: []
        selector:
            action: {}
    action_right_top_long:
        name: Action
        description: Right-Top-Button, Long Press
        default: []
        selector:
            action: {}
    action_left_middle_short:
        name: Action
        description: Left-Middle-Button, Short Press
        default: []
        selector:
            action: {}
    action_left_middle_long:
        name: Action
        description: Left-Middle-Button, Long Press
        default: []
        selector:
            action: {}
    action_right_middle_short:
        name: Action
        description: Right-Middle-Button, Short Press
        default: []
        selector:
            action: {}
    action_right_middle_long:
        name: Action
        description: Right-Middle-Button, Long Press
        default: []
        selector:
            action: {}
    action_left_bottom_short:
        name: Action
        description: Left-Bottom-Button, Short Press
        default: []
        selector:
            action: {}
    action_left_bottom_long:
        name: Action
        description: Left-Bottom-Button, Long Press
        default: []
        selector:
            action: {}
    action_right_bottom_short:
        name: Action
        description: Right-Bottom-Button, Short Press
        default: []
        selector:
            action: {}
    action_right_bottom_long:
        name: Action
        description: Right-Bottom-Button, Long Press
        default: []
        selector:
            action: {}

trigger:
  - platform: event
    event_type: homematic.keypress
    event_data:
      name: !input 'switch'

condition: []

action:
  - choose:
      - conditions:
          - condition: template
            value_template: >-
              {{ trigger.event.data.channel == 1 and trigger.event.data.param == 'PRESS_SHORT' }}
        sequence: !input 'action_left_top_short'
      - conditions:
          - condition: template
            value_template: >-
              {{ trigger.event.data.channel == 1 and trigger.event.data.param == 'PRESS_LONG' }}
        sequence: !input 'action_left_top_long'
      - conditions:
          - condition: template
            value_template: >-
              {{ trigger.event.data.channel == 2 and trigger.event.data.param == 'PRESS_SHORT' }}
        sequence: !input 'action_right_top_short'
      - conditions:
          - condition: template
            value_template: >-
              {{ trigger.event.data.channel == 2 and trigger.event.data.param == 'PRESS_LONG' }}
        sequence: !input 'action_right_top_long'        
      - conditions:
          - condition: template
            value_template: >-
              {{ trigger.event.data.channel == 3 and trigger.event.data.param == 'PRESS_SHORT' }}
        sequence: !input 'action_left_middle_short'
      - conditions:
          - condition: template
            value_template: >-
              {{ trigger.event.data.channel == 3 and trigger.event.data.param == 'PRESS_LONG' }}
        sequence: !input 'action_left_middle_long'

      - conditions:
          - condition: template
            value_template: >-
              {{ trigger.event.data.channel == 4 and trigger.event.data.param == 'PRESS_SHORT' }}
        sequence: !input 'action_right_middle_short'
      - conditions:
          - condition: template
            value_template: >-
              {{ trigger.event.data.channel == 4 and trigger.event.data.param == 'PRESS_LONG' }}
        sequence: !input 'action_right_middle_long'        
      - conditions:
          - condition: template
            value_template: >-
              {{ trigger.event.data.channel == 5 and trigger.event.data.param == 'PRESS_SHORT' }}
        sequence: !input 'action_left_bottom_short'
      - conditions:
          - condition: template
            value_template: >-
              {{ trigger.event.data.channel == 5 and trigger.event.data.param == 'PRESS_LONG' }}
        sequence: !input 'action_left_bottom_long'

      - conditions:
          - condition: template
            value_template: >-
              {{ trigger.event.data.channel == 6 and trigger.event.data.param == 'PRESS_SHORT' }}
        sequence: !input 'action_right_bottom_short'
      - conditions:
          - condition: template
            value_template: >-
              {{ trigger.event.data.channel == 6 and trigger.event.data.param == 'PRESS_LONG' }}
        sequence: !input 'action_right_bottom_long'    

mode: parallel
max: 10

-- BeatDoebeli - 04 Mar 2022
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding wiki.doebe.li? Send feedback
This page was cached on 24 May 2025 - 11:02.