Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make more entities based on future: <number> #24

Open
IIIdefconIII opened this issue Jul 3, 2019 · 0 comments
Open

make more entities based on future: <number> #24

IIIdefconIII opened this issue Jul 3, 2019 · 0 comments

Comments

@IIIdefconIII
Copy link
Contributor

IIIdefconIII commented Jul 3, 2019

Hi Paul, we spoke before on Discord.
Currently i have a few entities so it will show like the picture below.
To improve the code is it possible to use a single entitie with a value of future: that will automatically add the next few bus times?

Something like

entities:
        - entity: sensor.tram_23_templated
          icon: 'mdi:tram'
          future: 5
  - card:
      columns: 5
      entities:
        - entity: sensor.tram_23_templated
          icon: 'mdi:tram'
        - entity: sensor.tram_23_future_1_templated
          icon: 'mdi:x'
        - entity: sensor.tram_23_future_2_templated
          icon: 'mdi:x'
        - entity: sensor.tram_23_future_3_templated
          icon: 'mdi:x'
        - entity: sensor.tram_23_future_4_templated
          icon: 'mdi:x'
      show_header_toggle: false
      show_name: false
      title: Tram 23
      type: glance
    cards: null
    style:
      background-image: url(/local/images/tram.png?v=0.6)
    type: 'custom:card-modder'

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant