Blueprint HMIP-WRC6

Hallo,
ich habe eine Blueprint -Vorlage für den HMIP-WRC5 gefunden:

HMIP-WRC6

Es war kein Import-Button vorhaben… also habe ich das „Scrip“ unter blueprits–>Automationen angelegt:

Hier das Original Skrip:

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

So habe ich es angepasst… die ! entfernt:

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

Was mache ich falsch?
Es wird ein ! angezeigt und das blueprint wird nicht unter Automationen/ Blueprint angezeigt.

Vielen Dank!

1 „Gefällt mir“

Hi, dein Ablageort ist schon richtig, aber wieso veränderst du den Code und nimmst dort ! heraus? Die sind notwendig, dass der Blueprint funktioniert. Du brauchst dort keine Anpassungen vornehmen, der Bluerprint wird nach dem Einfügen in HA konfiguriert.

Nimm den originalen Code, kopiere ihn und füge ihn in deine angelegte yaml für den Taster ein. Danach machst du einen schnellen Neustart von HA und der Blueprint sollte im Anschluss unter Einstellungen, Automatisierung, Blueprints erreichbar sein.

1 „Gefällt mir“

Ich hatte die Dateiendung .yaml vergessen… jetzt funktioniert sie :slight_smile:

Die ! wurden als Fehler angezeigt, als sie das Skript als normale Texdatei abgespeichert habe… habe es anschließend dann verschlimmbessert… dass passiert mir beim nächsten mal nicht mehr :wink:

Danke für deine Unterstützung!

2 „Gefällt mir“

Das nächste Problem…
Wo finde ich HmIP-WRC6 entity-ID?
Wird diese:

Hier eingetragen?

1 „Gefällt mir“

Ich glaube bei diesen Tastern müssen erstmal alle Tasten gedrückt werden, dass sie in HA erkannt werden. Habe so ein Teil nicht, aber wir hatte das Problem schon einmal irgendwo.

Die ID aus dem Bild die ID von HA, ist also nicht die Device ID.

Wie sieht das Geräte aus, wenn du es unter Homematic, Geräte anschaust, hast du dort die Entities für die einzelnen Taster aufgeführt?

Wenn du dir eine normale Automatisierung in HA anlegst und dann als Trigger das Gerät verwendest, dann steht in der yaml die device_id:. (Aber wirklich ein Gerät und keinen Entität als Trigger anlegen).

Der WRC6 braucht eine spezielle Behandlung, je nachdem ob du eine CCU oder RaspberryMatic nutzt. Option B oder C. Schau mal hier.

So… da ich HA Integration von der CCU noch nicht nutze, musste ich ein Helferprogramm in der CCU3 anlegen:

Jetzt kommt der Status in HA… überprüft unter Entwicklertools unter Zustände.

Bei den Blueprint bin ich grade dran… der läuft noch nicht rund.

1 „Gefällt mir“
2 „Gefällt mir“

Sooo…
Hier der Link zu den „aktuellen“ und funktionieren Blueprints für alle Homematic und Homematic IP Tastern 2-8 fach und noch Zusatz-Funktionen:

https://github.com/SukramJ/custom_homematic/blob/789b37f30e07eefe9edefae6d774590e17f21bf4/blueprints/automation/homematicip_local-actions-for-6-button.yaml

Für eine normale CCU3/Raspberrymatic (mit Helfer-Programm in der CCU) funktioniert jetzt der 6 fach Taster.

Geschafft :smile:

Danke für die Geduld und Hilfe!

2 „Gefällt mir“