Shelly RGBW2 weißer Kanal über 2 Homematic IP Taster dimmen

Hallo Zusammen,

bin dabei von iobroker auf HA umzustellen.

Möchte den weißen Kanal von Shelly RGBW2 über kontinuierliches langes Drücken von Homematic IP Tastern dimmen. Einer für heller und der andere für dunkler. An und aus funktioniert schon über Automationen. Würde gerne ein Skript oder die direkte Bearbeitung der yaml vermeiden. Hat jemand ne Lösung direkt über die Automationen GUI oder Rednode etc.

Danke Schorty

Keiner Erfahrung mit der Kombi Homeatic und Shelly in HA?

Grüße Schorty

Ich Dimme über eine Taste meiner HmIP-RC8 z.B. Zigbee Lampen in einer Gruppe der Action part davon sieht z.B. so aus:

        sequence:
          - choose:
              - conditions:
                  - condition: state
                    entity_id: event.hmip_rc8_remote_control_ch3
                    attribute: event_type
                    state: press_short
                sequence:
                  - metadata: {}
                    data: {}
                    target:
                      entity_id:
                        - light.wohnzimmer_stehlampe
                    action: light.toggle
              - conditions:
                  - condition: state
                    entity_id: event.hmip_rc8_remote_control_ch3
                    attribute: event_type
                    state: press_long_start
                sequence:
                  - if:
                      - condition: numeric_state
                        entity_id: light.wohnzimmer_stehlampe
                        above: 128
                        attribute: brightness
                    then:
                      - repeat:
                          sequence:
                            - action: light.turn_on
                              data:
                                brightness_step_pct: -5
                              target:
                                entity_id: light.wohnzimmer_stehlampe
                            - delay:
                                hours: 0
                                minutes: 0
                                seconds: 0
                                milliseconds: 700
                          until:
                            - condition: state
                              entity_id: event.hmip_rc8_remote_control_ch3
                              attribute: event_type
                              state: press_long_release
                    else:
                      - repeat:
                          sequence:
                            - action: light.turn_on
                              data:
                                brightness_step_pct: 5
                              target:
                                entity_id: light.wohnzimmer_stehlampe
                            - delay:
                                hours: 0
                                minutes: 0
                                seconds: 0
                                milliseconds: 700
                          until:
                            - condition: state
                              entity_id: event.hmip_rc8_remote_control_ch3
                              attribute: event_type
                              state: press_long_release

Und mir fällt kein Grund ein warum das nicht mit Shelly funktionieren soll.

Hier ist sonst die ganze Automation als yaml, kannst die ja mal in HA einfügen und dir in der UI angucken wie ich das dimmen von ch3 gemacht habe.
alias: Wohnzimmer HmIP-RC8
description: ""
triggers:
  - entity_id:
      - event.hmip_rc8_remote_control_ch1
    id: ch1
    trigger: state
  - entity_id:
      - event.hmip_rc8_remote_control_ch2
    id: ch2
    trigger: state
  - entity_id:
      - event.hmip_rc8_remote_control_ch3
    id: ch3
    trigger: state
  - entity_id:
      - event.hmip_rc8_remote_control_ch4
    id: ch4
    trigger: state
  - entity_id:
      - event.hmip_rc8_remote_control_ch5
    id: ch5
    trigger: state
  - entity_id:
      - event.hmip_rc8_remote_control_ch6
    id: ch6
    trigger: state
  - entity_id:
      - event.hmip_rc8_remote_control_ch7
    id: ch7
    trigger: state
  - entity_id:
      - event.hmip_rc8_remote_control_ch8
    id: ch8
    trigger: state
conditions:
  - condition: template
    value_template: "{{trigger.from_state.state != 'unavailable'}}"
actions:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - ch1
        sequence:
          - choose:
              - conditions:
                  - condition: state
                    entity_id: event.hmip_rc8_remote_control_ch1
                    attribute: event_type
                    state: press_short
                sequence:
                  - metadata: {}
                    data: {}
                    target:
                      entity_id: light.esstischlampe_white
                    action: light.toggle
                alias: ch1 kurz
              - conditions:
                  - condition: state
                    entity_id: event.hmip_rc8_remote_control_ch1
                    attribute: event_type
                    state: press_long_start
                sequence:
                  - metadata: {}
                    data: {}
                    target:
                      entity_id: light.ambiant
                    action: light.toggle
                alias: ch1 lang
        alias: ch1
      - conditions:
          - condition: trigger
            id:
              - ch2
        sequence:
          - choose:
              - conditions:
                  - condition: state
                    entity_id: event.hmip_rc8_remote_control_ch2
                    attribute: event_type
                    state: press_short
                sequence:
                  - metadata: {}
                    data: {}
                    target:
                      entity_id: switch.wohnen
                    action: switch.toggle
              - conditions:
                  - condition: state
                    entity_id: event.hmip_rc8_remote_control_ch2
                    attribute: event_type
                    state: press_long
                sequence:
                  - action: media_player.select_source
                    target:
                      entity_id:
                        - media_player.denon_avr_x1800h
                    data:
                      source: TV
        alias: ch2
      - conditions:
          - condition: trigger
            id:
              - ch3
        sequence:
          - choose:
              - conditions:
                  - condition: state
                    entity_id: event.hmip_rc8_remote_control_ch3
                    attribute: event_type
                    state: press_short
                sequence:
                  - metadata: {}
                    data: {}
                    target:
                      entity_id:
                        - light.wohnzimmer_stehlampe
                    action: light.toggle
              - conditions:
                  - condition: state
                    entity_id: event.hmip_rc8_remote_control_ch3
                    attribute: event_type
                    state: press_long_start
                sequence:
                  - if:
                      - condition: numeric_state
                        entity_id: light.wohnzimmer_stehlampe
                        above: 128
                        attribute: brightness
                    then:
                      - repeat:
                          sequence:
                            - action: light.turn_on
                              data:
                                brightness_step_pct: -5
                              target:
                                entity_id: light.wohnzimmer_stehlampe
                            - delay:
                                hours: 0
                                minutes: 0
                                seconds: 0
                                milliseconds: 700
                          until:
                            - condition: state
                              entity_id: event.hmip_rc8_remote_control_ch3
                              attribute: event_type
                              state: press_long_release
                    else:
                      - repeat:
                          sequence:
                            - action: light.turn_on
                              data:
                                brightness_step_pct: 5
                              target:
                                entity_id: light.wohnzimmer_stehlampe
                            - delay:
                                hours: 0
                                minutes: 0
                                seconds: 0
                                milliseconds: 700
                          until:
                            - condition: state
                              entity_id: event.hmip_rc8_remote_control_ch3
                              attribute: event_type
                              state: press_long_release
        alias: ch3
      - conditions:
          - condition: trigger
            id:
              - ch4
        sequence:
          - choose:
              - conditions:
                  - condition: state
                    entity_id: event.hmip_rc8_remote_control_ch4
                    attribute: event_type
                    state: press_short
                sequence:
                  - metadata: {}
                    data: {}
                    target:
                      entity_id:
                        - light.stehlampe_sofa
                    action: light.toggle
        alias: ch4
      - conditions:
          - condition: trigger
            id:
              - ch5
        sequence:
          - choose:
              - conditions:
                  - condition: state
                    entity_id: event.hmip_rc8_remote_control_ch5
                    attribute: event_type
                    state: press_short
                sequence:
                  - metadata: {}
                    data:
                      qos: 0
                      retain: false
                      topic: rollo/wohnzimmer/command_topic
                      payload: OPEN
                    action: mqtt.publish
        alias: ch5
      - conditions:
          - condition: trigger
            id:
              - ch6
        sequence:
          - choose:
              - conditions:
                  - condition: state
                    entity_id: event.hmip_rc8_remote_control_ch6
                    attribute: event_type
                    state: press_short
                sequence:
                  - metadata: {}
                    data:
                      qos: 0
                      retain: false
                      topic: rollo/wohnzimmer/command_topic
                      payload: CLOSE
                    action: mqtt.publish
        alias: ch6
      - conditions:
          - condition: trigger
            id:
              - ch7
        sequence:
          - choose:
              - conditions:
                  - condition: state
                    entity_id: event.hmip_rc8_remote_control_ch7
                    attribute: event_type
                    state: press_short
                sequence:
                  - metadata: {}
                    data:
                      qos: 0
                      retain: false
                      topic: rollo/balkon/command_topic
                      payload: OPEN
                    action: mqtt.publish
        alias: ch7
      - conditions:
          - condition: trigger
            id:
              - ch8
        sequence:
          - choose:
              - conditions:
                  - condition: state
                    entity_id: event.hmip_rc8_remote_control_ch8
                    attribute: event_type
                    state: press_short
                sequence:
                  - metadata: {}
                    data:
                      qos: 0
                      retain: false
                      topic: rollo/balkon/command_topic
                      payload: CLOSE
                    action: mqtt.publish
        alias: ch8
mode: single

LG
Tobi

Hi Tobi,

vielen Dank für Deine AW. War auf jeden Fall ein guter Startpunkt.

entity_id: funktioniert bei mir nicht. In den Entwicklerwerkzeugen bekomme ich hier auch keinen Trigger.

event_type: homematic.keypress und device_id : funktionieren und man kann ja entsprechend kurzem und langem Drücken im Nachgang filtern.

Wenn ich dein Skript umschreibe bekomme ich immer nur pro langem Drücken etwas gedimmt und nicht komplett.

Die KI meint ich soll auf X verschiedene Automatisierungen aufsplitten, was mir aber zu unübersichtlich ist. Habe in Summe 14 Dimmer zu bedienen.

Ab Besten würde mir ne Lösung im Red Node add on gefallen. Bin die ‘graphische Programierung’ von ioBroker gewöhnt.

Grüße

Alex

Ist ja auch Blödsinn, KI halt.
Bei mir bekommt ein Gerät eine Automation fertig.

Sollte auch gehen, bin in NodeRED aber nicht mehr so drin.

Joa kann sein das man nicht überall eine event. Entität bekommt.

LG
Tobi

Willkommen im Forum

Ich kann dir zwar nicht direkt helfen, aber vielleicht hilft die Info das die Shelly Geräte mit Hilfe von cuxd in der CCU3/OpenCCU direkt bedient werden können. Dieses Video ist zwar schon älter und betrifft nur einen Shelly 1, sollte aber auch auf die Dimmfunktion anwendbar sein. Eventuell ist es möglich die Funktionen zu extrahieren.

Hallo Marcello,

dank Dir für Deinen Hinweis. Hatte ich schon mal testweise vor 3 Jahren auf der CCU3 am laufen. Habe mich dann sehr lange mit einem Mitarbeiter von ELV unterhalten. Seine Empfehlung war die CCU so ‘clean’ wie möglich zu halten. Drum hatte ich alles im iobroker implementiert. Letztendlich hätte ich jetzt schon gerne alles in HA. Muss mir doch nochmal die cuxd Geschichte paralell anschauen.

Grüß

Schorty