-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Device Tracker #295
Comments
This is a really clever idea. I know it can be in bad form to do this, but I really like this and would like to see this at some point. One thing to consider is capping the number to the nearest 10 storms. Or something like that. But I would be happy with anything here. That said I wonder if there's a way to implement this using templates in HA Core. |
Looks like this one got missed as well. Just to be clear you're looking to plot the distance/bearing on a map to visualise which way a storm is heading? I'm not totally sure what is 100% possible in HA so will defer to @alexander0042 to see if this would be possible |
I assume that's what the OP is saying. I think it would be one of those things where you'd use the device_tracker and map functionality. You can give a device_tracker entity GPS coordinates. The hard part would be the directional heading. You can give it an icon that changes based on the severity or threat. Perhaps "mdi:weather-hail" or something like that for hail as an example. Edit: I think this would be hugely beneficial since mapping API requests tend to be extremely expensive in terms of credits per call. Aeris for example is a huge cost depending how big the map is and what layers you want. Just storm tracking would require a storm layer, a basemap map layer, and additional roads or boundary layers each each with a different cost. See here: |
Spot on, this is exactly what is required. |
Sorry for never replying to this, was focused on getting some critical historic data stuff working. The good news is that I got this working using the excellent virtual devices add on! I wrote it up as I was doing it, so let me track that down |
I'll be interested to see what you make of this. I've been playing around with this idea by using the Aeris API to get the closest storms and adding GPS to them. I haven't had a ton of time to work through how to do it but glad you found the virtual devices. I think my biggest issue is going to be how to call this efficiently in terms of API accesses. Trying to find a balance of update vs. quota cap is going to be tricky. I'm wondering if something like triggering the storm location API to start calling hourly when there's a severe watch issued or every 15 mins during a warning. Not sure. I know this is somewhat off topic, but again, i'll be curious to see where you go with this. Thanks! |
Depending on how many locations you're trying call for at once, the default 15 minute call should fall well within the free tier, so hopefully that's ok! The way I got it working was to create a
Then, I made a new automation using this yaml:
It assumes
The automation is triggered every time the nearest storm distance or bearing changes, and calls a service to update the location of the device tracker, giving me a map that looks like this: I'm very open to adding this directly into the integration somehow; however, it would be a little bit of work. The data is definitely there, but because device trackers look reasonably complex, it's not a trivial thing. |
nice work! I'll be traveling for work this week so i'll have some downtime in the hotel to take a look this week hopefully. |
There has been no activity on this issue in the last ninety days and will automatically close in seven days. Leave a comment on this issue to prevent it from closing automatically. |
I haven't had any chance to test this yet. Hoping to get around to this and a couple other things in the next few weeks. |
Describe the feature
It would be nice if there was a entity that could take the in the distance and the bearing so this could be plotted onto a map:
so you could see excatly where the heading and the distance would be.
Home Assistant version
No response
Integration version
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: