Skip to content

[Question] internal buttons on CardGrid #54

@trashmaster9000

Description

@trashmaster9000

Hey,

i want to control my two living room covers, i've created in esphome three internal buttons that trigger the HA actions (open, close, stop) which i want to activate using the TFT without exposing these to HA.
is there a way to do this?

relevant code:

nspanel_lovelace:
...
...
    - type: cardGrid
      title: Rollo
      id: rollo
      hidden: true
      entities:
        - entity_id: button.cover_wz_open
          icon: chevron-double-up
          name: Auf
        - entity_id: button.cover_wz_stop
          icon: stop
          name: Stop
        - entity_id: button.cover_wz_close
          icon: chevron-double-down
          name: Zu

button:
  - platform: template
    id: cover_wz_open
    internal: true
    on_press:
      - homeassistant.action:
          action: cover.open_cover
          data:
            target:
              "area_id: b973d73bfc3511eab52731eb6f81cdc5"

  - platform: template
    id: cover_wz_close
    internal: true
    on_press:
      - homeassistant.action:
          action: cover.close_cover
          data:
            target:
                "area_id: b973d73bfc3511eab52731eb6f81cdc5"

  - platform: template
    id: cover_wz_stop
    internal: true
    on_press:
      - homeassistant.action:
          action: cover.stop_cover
          data:
            target:
                "area_id: b973d73bfc3511eab52731eb6f81cdc5"

HA Log entry:

Logger: homeassistant.helpers.service
Quelle: helpers/target.py:131
Erstmals aufgetreten: 16:09:43 (2 Vorkommnisse)
Zuletzt protokolliert: 16:09:45

Referenced entities button.cover_wz_stop are missing or not currently available
Referenced entities button.cover_wz_open are missing or not currently available

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions