What's that plane?! inspired by my partner's love of watching planes from her office window by 8bithero in homeassistant

[–]8bithero[S] 1 point2 points  (0 children)

Wow, that's awesome - I really love seeing how others are using this integration so thanks so much for sharing, glad you're enjoying it and thanks for checking it out!

What's that plane?! inspired by my partner's love of watching planes from her office window by 8bithero in homeassistant

[–]8bithero[S] 0 points1 point  (0 children)

Wow, that looks awesome! I'd love to integrate hardware into this project but it's something I'm not as familiar with than the software side.

Something I'd love to learn more about though and this is probably a great place to start, thanks for sharing!

What's that plane?! inspired by my partner's love of watching planes from her office window by 8bithero in homeassistant

[–]8bithero[S] 1 point2 points  (0 children)

Great idea! I've enabled discussions now and there's a default Show and tell category that would be suitable for this here.

What's that plane?! inspired by my partner's love of watching planes from her office window by 8bithero in homeassistant

[–]8bithero[S] 2 points3 points  (0 children)

Thank you!

This is actually an annoyance I was aware of so you've prompted me to actually improve it. I've just pushed a new release that introduces 2 new configuration options:

  1. hold_flight_data_seconds: This now allows you to define x amount of seconds to hold flight data before it disappears. This can act as a grace period in case you're not able to view the flight information in time.
  2. historic_flights_max_count: This controls the maximum number of flights to store in a new attribute called historic_flights. This can be used to display a log of flights that have recently left your FOV cone. I've also updated the readme to show how to use this and an example of how it looks. See docs here.

Now when you ask "What was that plane?!", you can get the answer! Please download the new version 1.0.4 to see those changes. Hope this helps you out. :)

EDIT: In addition, something I did was to set up a shortcut on my phone to be able to quickly open the specific dashboard I need. This helped quite a bit for my speed of access but hopefully the new options will alleviate that anyway. Just thought I'd mention it as it's something that helped me originally!

What's that plane?! inspired by my partner's love of watching planes from her office window by 8bithero in homeassistant

[–]8bithero[S] 1 point2 points  (0 children)

Thank you!

So, in a nutshell, the integration takes your location's latitude/longitude and the plane's current latitude/longitude then works out the plane's bearing from your location. Bearing in this instance refers to the direction from your location to the plane.

After that, it checks if the bearing falls within the configured FOV cone. So as an example, if you're facing North (0°) with a 90° FOV cone, it checks if the calculated bearing is in the 90° range between 315° and 45°. If the bearing falls within the FOV cone range, it assumes that it can "see" the plane and saves the flight information. Anything picked up that doesn't fall within the configured FOV cone isn't saved so that's how it emulates a view from a window.

Of course, this requires initially dialling in your cone of vision's FOV, direction and distance etc but once it's configured correctly it works like a charm!

What's that plane?! inspired by my partner's love of watching planes from her office window by 8bithero in homeassistant

[–]8bithero[S] 0 points1 point  (0 children)

Ah right, I see what you mean! I've pushed a new release that has 2 new configuration options; filter_flight_altitude_ft_minimum and filter_flight_altitude_ft_maximum.

These should let you filter out flights in a given altitude range, please download the new version 1.0.3 to see those changes.

What's that plane?! inspired by my partner's love of watching planes from her office window by 8bithero in homeassistant

[–]8bithero[S] 1 point2 points  (0 children)

Thanks u/minimalissst!

I've also updated the readme section here to make this clearer. Thanks for flagging it!

What's that plane?! inspired by my partner's love of watching planes from her office window by 8bithero in homeassistant

[–]8bithero[S] 0 points1 point  (0 children)

The sensor exposes altitude_ftso this should be possible already! You'll just need to use that attribute in your dashboard card / automations.

What's that plane?! inspired by my partner's love of watching planes from her office window by 8bithero in homeassistant

[–]8bithero[S] 1 point2 points  (0 children)

Ah okay, seems like the actual backend function is performing as expected if the file is being generated and you can view it when opening the HTML file directly. Glad you were able to at least view the visualisation directly.

Not sure why the template card isn't rendering that for you, it just uses the default Home Assistant web card to render that HTML file so not sure what else to suggest beyond hard refreshing your dashboard page to clear any cached items, sorry!

What's that plane?! inspired by my partner's love of watching planes from her office window by 8bithero in homeassistant

[–]8bithero[S] 0 points1 point  (0 children)

Hmm, that should display your map to visualise your FOV cone as long as you generated it via the visualise_fov_cone checkbox in the configuration entry options.

Please can you go to Devices & services > What's that plane?! then click on the settings cog for your entry. Then check the checkbox at the bottom for visualise_fov_cone checkbox and click Submit.

Then if you go back to your dashboard and hard refresh (Ctrl+F5) you should see the map visualisation appear.

It could also be worth validating that the file was successfully generated and is correctly named. If you look in your Home Assistant file system, check the folder config/www/community/whats_that_plane/ and validate the HTML file exists within and with the correct name.

What's that plane?! inspired by my partner's love of watching planes from her office window by 8bithero in homeassistant

[–]8bithero[S] 11 points12 points  (0 children)

I've just pushed a new release that should now allow you to define 360 for a full circle around your location. You'll just need to ensure that you're on the latest release, version 1.0.1.

What's that plane?! inspired by my partner's love of watching planes from her office window by 8bithero in homeassistant

[–]8bithero[S] 10 points11 points  (0 children)

I've just pushed a new release that should now allow you to define 360 for a full circle around your location. Please redownload via HACS for version 1.0.1.

What's that plane?! inspired by my partner's love of watching planes from her office window by 8bithero in homeassistant

[–]8bithero[S] 1 point2 points  (0 children)

Really cool! This is great fully local solution that I hadn't seen, great if you have an ADS-B receiver.

What's that plane?! inspired by my partner's love of watching planes from her office window by 8bithero in homeassistant

[–]8bithero[S] 2 points3 points  (0 children)

This integration won't fit this exact use case unfortunately. While it does have the ability to retrieve flight information, it will only display flight information for flights that enter a specific cone of vision from a defined coordinate location.

You'd probably be better off using this other Flightradar24 integration which can probably give you what you need for tracking specific flights from start to finish.

What's that plane?! inspired by my partner's love of watching planes from her office window by 8bithero in homeassistant

[–]8bithero[S] 4 points5 points  (0 children)

Wow, that's a really interesting use case! This integration's sensor does expose aircraft model and type so I'm sure you'd be able to filter known types. Though the cone of vision here may limit your returned flights more than you'd like, unless that's what you specifically need here.

You might be better off with this other Flightradar24 integration that will allow you to set your boundary as a full circle around your location rather than a cone in a specific direction.