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

GTFS examples #113

Open
BeardedTinker opened this issue Mar 4, 2024 · 1 comment
Open

GTFS examples #113

BeardedTinker opened this issue Mar 4, 2024 · 1 comment
Assignees
Labels
Enhancement New feature or request

Comments

@BeardedTinker
Copy link
Owner

BeardedTinker commented Mar 4, 2024

As I didn't cover everything in video, here are few other things I'm using.

For example, for individual tracking, I've created for each family member it's "in vicinity" sensor:
image

It will than create a bunch (if exist) stops for all transport types.

These can be used as map overlays:

image Code for card looks as follows: ``` type: custom:auto-entities card: type: map hours_to_show: 2 dark_mode: true default_zoom: 17 auto_fit: true filter: include: - entity_id: '*_local_stop_person_andrej*' - entity_id: person.andrej show_empty: true ``` Also, you can create flex table with data for everyone or just on person: image
type: custom:auto-entities
filter:
  include:
    - name: '*local_stop*'
  exclude:
    - state: unavailable
card:
  type: custom:flex-table-card
  clickable: true
  max_rows: 30
  title:  ZET departures
  sort_by:
    - next_departures_lines
  columns:
    - hidden: true
      data: next_departures_lines
      modify: x.departure
    - name: Route
      data: next_departures_lines
      modify: '''<ha-icon icon='' + x.icon + ''></ha-icon>'' + x.route'
    - name: Time
      data: next_departures_lines
      modify: x.departure
    - name: Stop
      data: next_departures_lines
      modify: x.stop_name
    - name: Headsign
      data: next_departures_lines
      modify: x.headsign
  css:
    table+: 'padding: 0px'
  card_mod:
    style: |
      ha-card {
        overflow: auto;
        max-height: 500px;
      }
@BeardedTinker BeardedTinker added the Enhancement New feature or request label Mar 4, 2024
@BeardedTinker BeardedTinker self-assigned this Mar 4, 2024
@lindsay245jpe
Copy link

Thanks so much for this. I was editing the 'local_stop' to the sensor name and that was what was wrong. My bad.

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

No branches or pull requests

2 participants