AlexandrErohin / home-assistant-flightradar24

Flightradar24 integration for Home Assistant
https://community.home-assistant.io/t/custom-component-flightradar24
MIT License
137 stars 15 forks source link

Not getting any data within Home Assistant #24

Closed johntdyer closed 6 months ago

johntdyer commented 7 months ago

I am trying you install, it deploys, starts, and is configured as expected

image

However I am never getting any aircraft tracking within Home Assistant

I am however sending data to fr24

image

Logs in debug mode as follows

2024-02-27 11:32:21.976 ERROR (MainThread) [custom_components.flightradar24.config_flow] FlightRadar24 Integration Exception - Your email or password is incorrect
2024-02-27 11:36:17.112 DEBUG (MainThread) [custom_components.flightradar24] Finished fetching flightradar24 data in 0.255 seconds (success: True)
2024-02-27 11:36:27.531 DEBUG (MainThread) [custom_components.flightradar24] Finished fetching flightradar24 data in 0.291 seconds (success: True)
2024-02-27 11:36:27.531 INFO (MainThread) [homeassistant.components.sensor] Setting up flightradar24.sensor
2024-02-27 11:36:47.195 DEBUG (MainThread) [custom_components.flightradar24] Finished fetching flightradar24 data in 0.332 seconds (success: True)
2024-02-27 11:37:08.793 DEBUG (MainThread) [custom_components.flightradar24] Finished fetching flightradar24 data in 0.186 seconds (success: True)
2024-02-27 11:37:29.157 DEBUG (MainThread) [custom_components.flightradar24] Finished fetching flightradar24 data in 0.295 seconds (success: True)
2024-02-27 11:37:49.182 DEBUG (MainThread) [custom_components.flightradar24] Finished fetching flightradar24 data in 0.320 seconds (success: True)
2024-02-27 11:38:09.059 DEBUG (MainThread) [custom_components.flightradar24] Finished fetching flightradar24 data in 0.197 seconds (success: True)
2024-02-27 11:38:29.145 DEBUG (MainThread) [custom_components.flightradar24] Finished fetching flightradar24 data in 0.265 seconds (success: True)
2024-02-27 11:38:49.050 DEBUG (MainThread) [custom_components.flightradar24] Finished fetching flightradar24 data in 0.188 seconds (success: True)
2024-02-27 11:39:09.059 DEBUG (MainThread) [custom_components.flightradar24] Finished fetching flightradar24 data in 0.196 seconds (success: True)
2024-02-27 11:39:29.372 DEBUG (MainThread) [custom_components.flightradar24] Finished fetching flightradar24 data in 0.348 seconds (success: True)

however current in area is empty, and given that I in Atlanta and KATL , its pretty safe to assume that there is many aircraft over me right now... Infact ADSBExchange shows several dozen right now...

Thanks, and appreciate any help you can offer :)

motoridersd commented 7 months ago

Does the flightradar24_current_in_area show 0 or unknown? I find it takes a while for data to populate.

I also suggest masking your coordinates as that's a very precise location

johntdyer commented 7 months ago

they all show zero, and thank you re: the GPS location... fixed

motoridersd commented 7 months ago

Are you sure there are aircraft within that 1 km radius? That's only 0.6 miles.

AlexandrErohin commented 7 months ago

You have set update interval to 20 seconds and radius 1000m. Aircrafts may pass 1km faster than updates do. Lets try to set update interval to 10 seconds and radius 5000m

johntdyer commented 7 months ago

That seems to have made a difference, thank you ... However the numbers are lower then I would have expected.... I am new to this whole FR24 / ADSB so what are some sane defaults for interval and radius ?

motoridersd commented 7 months ago

Look at what FlightRadar24 shows on their website to get an idea of what's in your area. I get a lot of light craft that I filter out in my cards. My radius is large enough to catch commercial airliners as they make their approach into my local airport, many of which stay in the area a long time because of their trajectory.

I've found that updating too frequently will often result in failed gets, so I'd increase your radius and then filter out things you don't want to see with the altitude filters, or maybe with other attributes provided by the sensor.

Check out my example here for some filters I use, like the existence of an airline_short value or a destination/source airport for Inbound vs Outbound https://github.com/AlexandrErohin/home-assistant-flightradar24/issues/20