mrk-its / homeassistant-blitzortung

Custom Component for fetching lightning data from blitzortung.org
MIT License
186 stars 38 forks source link

Enhancement Idea: Allow map card #78

Open Node815 opened 11 months ago

Node815 commented 11 months ago

During an active storm, I like to watch to see where all of the strikes are and go to the built in Home Assistant Map. But that also shows my list of places/pins I've dropped for geolocation such as stores and other places.

I would like to know if there is a way I could set up a map card to only show the (LS) Strikes only? I didn't see an entity to show except where the previous ones were individually and not a group. In other words, on the same page as the strikes and distance, I would like to include a map showing my user defined radius where all of the strikes are without all of the other saved locations. Is this possible?

phillprice commented 9 months ago

It's not listed as a source in the UI but this still works:

      - type: conditional
        conditions:
          - entity: sensor.blitzortung_lightning_counter
            state_not: '0'
        card:
          type: map
          entities:
            - entity: zone.home
          geo_location_sources:
            - blitzortung
          dark_mode: false
          default_zoom: 10
          aspect_ratio: '80%'
          auto_fit: true
Node815 commented 9 months ago

Awseome! That seems to work, I just took out the conditional part though (I never have used that card, and saving the changes made it go away so I'm sure it was just because of the lack of storms here). :)

Anyway, I'm excited to see when we get the next storm in our area which TBH is far and few between! (2-3 times /year at the most in the PNW)