Skip to content

Alternative dashboard for codes #16

Description

@bcjmk

I wanted something more concise so I used the EXPANDER card from HACS with the layout. It's a little more mobile friendly and can easily be tweaked to generate various alternatives. May have to tweak indentations. I put this on its own dashboard view. Could be updated to show EMPTY as a name, potentially with some styling to make it stand out.

- type: masonry
  path: table-view
  title: Table View
  subview: false
  cards:
    {% for i in range(1, 10) %}
    {% set myvar = "input_text.lock_code_slot_" ~ i ~ "_name" %}
    - type: custom:expander-card
      title-card:
        type: markdown
        content: "## Code {{i}} - {{ states( myvar ) }}"
      cards:
        - type: vertical-stack
          cards:
            - type: entities
              show_header_toggle: false
              entities:
                - entity: input_text.lock_code_slot_{{i}}_name
                  secondary_info: none
                  name: Name
                - entity: input_text.lock_code_slot_{{i}}_pin
                  name: Code
                - type: divider
                - entity: input_boolean.lock_code_slot_{{i}}_state
                  name: Enabled
                - entity: input_boolean.lock_code_slot_{{i}}_notify
                  name: Notify
      {% endfor %}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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