Skip to content

How is the "Next Trains" block in the "Neighborhood" view made? #18

Answered by modelstudent101
johanohly asked this question in Q&A
Discussion options

You must be logged in to vote

Right -- I spent some time re-creating this.

The card uses the multiple-entity row from HACS.

Here's a formatted card. I don't have the "Next train" due yet, as I just figured this out fiddling around a few minutes ago. I remembered your post, and thought I would share the love. @Madelena, I think, added some padding to the sections, as I've seen it in some other cards.

type: entities
entities:
  - entity: sensor.l_to_manhattan
    name: "L to Manhattan"
    icon: mdi:subway
    type: custom:multiple-entity-row
    show_state: false
    entities:
      - attribute: Due in
        unit: min
        styles:
          text-align: left
      - attribute: Due at
        styles:
          text-…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Madelena
Comment options

Answer selected by Madelena
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants