Building on How to: geolocation trigger distance to device_tracker
I’d like to create a PR on the geo_location integration Earthquakes feed https://www.home-assistant.io/components/usgs_earthquakes_feed/ but don’t really know how to do so (have PR’ed only some documentation pages till now…)
I do know what I think it should be configured like when possible. Right now we can do:
- platform: usgs_earthquakes_feed
feed_type: 'past_day_all_earthquakes'
radius: 2000
minimum_magnitude: 2.0
latitude: -7.12
longitude: 110.34
entity_namespace: 'quake'
which means all is fixed, and one has to be very crafty creating cards and automations based on the feed.
It would be really very helpful if templating where to be allowed here, and a dynamic dashboard in HA frontend could be established using that.
Config then could be:
- platform: usgs_earthquakes_feed
feed_type: 'past_day_all_earthquakes'
radius_template: >
{{states('input_number.quakes_radius')|float}}
minimum_magnitude_template: >
{{states('input_number.quakes_magnitude')|float}}
device: device_tracker.person_to_care_for
#latitude: -7.12
#longitude: 110.34
entity_namespace: 'quake'
Would be nice if we could use Zone too, but lon/lat is effectively the same. Using a device would make it really easy to follow our traveling family members without having to constantly change the core setup of ones HA instance.
Hope someone of you is willing to assist me to create this PR.
Thought of filing a feature request, but fear the followup on that is rather low. Pr stand a better chance
thanks!