Rolladen Card mit 3 Optionen

Hi!

ich habe gerade mein ersten Shelly Plus 2PM erfolgreich installiert und läuft soweit auch schon auf HA.

Ich möchte jetzt noch eine Dashboard Kachel anlegen, die mein Rollo auf 3 Standart Positionen fährt. Offen, 23% (ist bei meinem Rollo soweit geschlossen das es auf der Fensterbank aufliegt) und komplett geschlossen. Alles dazwischen wäre mir erstmal egal.
Wie bekomme ich sowas am besten hin? Momentan benutze ich nur die Standart HA Kacheln und die Mushroom Cards.
Ich stelle mir also im Idealfall eine Kachel mit 3 Buttons vor, die man dann einfach drücken kann.

Danke schonmal

Da könnte die Enhanced-shutter-card aus HACS etwas für dich sein.

Z.B. als Karte die Mushroom Chip Karte verwenden.

Und als Aktion die Position anfahren, bzw. Schließen und Öffnen.

type: custom:mushroom-chips-card
chips:
  - type: action
    icon: mdi:window-shutter
    tap_action:
      action: perform-action
      perform_action: cover.close_cover
      target:
        entity_id: cover.jalousie
      data: {}
  - type: action
    tap_action:
      action: perform-action
      perform_action: cover.set_cover_position
      target:
        entity_id: cover.jalousie
      data:
        position: 23
    icon: mdi:roller-shade
  - type: action
    icon: mdi:window-shutter-open
    tap_action:
      action: perform-action
      perform_action: cover.open_cover
      target:
        entity_id: cover.jalousie
      data: {}

Gruß Osorkon

Perfekt danke! Ich habe den Code noch so angepasst, dass die aktiven Positionen farblich markiert sind

type: vertical-stack
cards:
  - type: custom:mushroom-title-card
    title: Rollo Küche
    alignment: center
  - type: custom:mushroom-chips-card
    alignment: center
    grid_options:
      columns: 6
      rows: auto
    chips:
      - type: template
        entity: cover.shelly_rolladen_kuche
        icon: mdi:window-shutter
        content: Zu
        icon_color: >
          {% set p =
          state_attr('cover.shelly_rolladen_kuche','current_position')|int(0) %}
          {% if p <= 5 %} red {% else %} disabled {% endif %}
        tap_action:
          action: perform-action
          perform_action: cover.close_cover
          target:
            entity_id: cover.shelly_rolladen_kuche
      - type: template
        entity: cover.shelly_rolladen_kuche
        icon: mdi:roller-shade
        content: Halb
        icon_color: >
          {% set p =
          state_attr('cover.shelly_rolladen_kuche','current_position')|int(0) %}
          {% if 20 <= p <= 26 %} amber {% else %} disabled {% endif %}
        tap_action:
          action: perform-action
          perform_action: cover.set_cover_position
          target:
            entity_id: cover.shelly_rolladen_kuche
          data:
            position: 23
      - type: template
        entity: cover.shelly_rolladen_kuche
        icon: mdi:window-shutter-open
        content: Offen
        icon_color: >
          {% set p =
          state_attr('cover.shelly_rolladen_kuche','current_position')|int(0) %}
          {% if p >= 90 %} green {% else %} disabled {% endif %}
        tap_action:
          action: perform-action
          perform_action: cover.open_cover
          target:
            entity_id: cover.shelly_rolladen_kuche
grid_options:
  columns: 6
  rows: 2

1 „Gefällt mir“