custom-components / places

Component to integrate with OpenStreetMap Reverse Geocode (places)
GNU General Public License v3.0
110 stars 22 forks source link

Places not working since yesterday, no location is shown anymore #265

Closed Spartacus68 closed 5 months ago

Spartacus68 commented 6 months ago

There seems to be an issue with places since yesterday. The position is no longer available in sensor.golf I can see in the log file that it is correctly resolved, but places will only get back unknown.

What is going wrong here?

2024-02-26 12:15:02.517 DEBUG (SyncWorker_15) [custom_components.places.sensor] (Golf) Map Link Type: osm
2024-02-26 12:15:02.517 DEBUG (SyncWorker_15) [custom_components.places.sensor] (Golf) Map Link URL: https://www.openstreetmap.org/?mlat=51.xxx&mlon=7.xxx#map=10/51.44987/7.xxx
2024-02-26 12:15:02.517 INFO (SyncWorker_15) [custom_components.places.sensor] (Golf) Requesting data for OpenStreetMaps
2024-02-26 12:15:02.517 DEBUG (SyncWorker_15) [custom_components.places.sensor] (Golf) OpenStreetMaps URL: https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=51.xxx&lon=7.xxx&accept-language=&addressdetails=1&namedetails=1&zoom=18&limit=1&email=
2024-02-26 12:15:02.670 DEBUG (SyncWorker_15) [custom_components.places.sensor] (Golf) OpenStreetMaps Response: {"place_id":98944895,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright","osm_type":"way","osm_id":258005127,"lat":"51.xxxxxxx","lon":"7.xxxxxxx","category":"building","type":"yes","place_rank":30,"importance":9.99999999995449e-06,"addresstype":"building","name":"","display_name":"7, <STRASSE>, <ORT>, Kreis Unna, Nordrhein-Westfalen, 58239, Deutschland","address":{"house_number":"7","road":"<STRASSE>","town":"<ORT>","county":"Kreis Unna","state":"Nordrhein-Westfalen","ISO3166-2-lvl4":"DE-NW","postcode":"58239","country":"Deutschland","country_code":"de"},"namedetails":null,"boundingbox":["51.4496747","51.4497626","7.5916972","7.5918237"]}
2024-02-26 12:15:02.672 DEBUG (SyncWorker_15) [custom_components.places.sensor] (Golf) Place Name: None
2024-02-26 12:15:02.672 DEBUG (SyncWorker_15) [custom_components.places.sensor] (Golf) Entity attributes after parsing OSM Dict: {'initial_update': True, 'name': 'Golf', 'unique_id': 'd366701b54129c56dfde8099ecc078c7', 'icon': 'mdi:map-search-outline', 'options': 'formatted_place', 'devicetracker_id': 'device_tracker.golf_position', 'devicetracker_entityid': 'device_tracker.golf_position', 'home_zone': 'zone.home', 'map_provider': 'osm', 'map_zoom': 10, 'extended_attr': True, 'show_time': True, 'date_format': 'dd/mm', 'use_gps_accuracy': False, 'json_filename': 'places-d366701b54129c56dfde8099ecc078c7.json', 'display_options': 'formatted_place', 'home_latitude': '51.42970387444888', 'home_longitude': '7.595963180174296', 'show_date': False, 'current_latitude': '51.xxx', 'current_longitude': '7.xxx', 'gps_accuracy': 0.0, 'devicetracker_zone': 'not_home', 'devicetracker_zone_name': 'not_home', 'current_location': '51.xxx,7.xxx', 'home_location': '51.42970387444888,7.595963180174296', 'distance_from_home_m': 2261.947, 'distance_from_home_km': 2.262, 'distance_from_home_mi': 1.406, 'direction_of_travel': 'stationary', 'distance_traveled_m': 0, 'distance_traveled_mi': 0, 'map_link': 'https://www.openstreetmap.org/?mlat=51.xxx&mlon=7.xxx#map=10/51.44987/7.xxx', 'osm_dict': {'place_id': 98944895, 'licence': 'Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright', 'osm_type': 'way', 'osm_id': 258005127, 'lat': '51.449700449999995', 'lon': '7.591761885623276', 'category': 'building', 'type': 'yes', 'place_rank': 30, 'importance': 9.99999999995449e-06, 'addresstype': 'building', 'name': '', 'display_name': '7, <STRASSE>, <ORT>, Kreis Unna, Nordrhein-Westfalen, 58239, Deutschland', 'address': {'house_number': '7', 'road': '<STRASSE>', 'town': '<ORT>', 'county': 'Kreis Unna', 'state': 'Nordrhein-Westfalen', 'ISO3166-2-lvl4': 'DE-NW', 'postcode': '58239', 'country': 'Deutschland', 'country_code': 'de'}, 'namedetails': None, 'boundingbox': ['51.4496747', '51.4497626', '7.5916972', '7.5918237']}, 'place_type': 'building', 'place_category': 'building', 'street_number': '7', 'street': '<STRASSE>', 'city': '<ORT>', 'city_clean': '<ORT>', 'state_province': 'Nordrhein-Westfalen', 'state_abbr': 'NW', 'county': 'Kreis Unna', 'country': 'Deutschland', 'country_code': 'DE', 'postal_code': '58239', 'formatted_address': '7, <STRASSE>, <ORT>, Kreis Unna, Nordrhein-Westfalen, 58239, Deutschland', 'osm_id': '258005127', 'osm_type': 'way'}
2024-02-26 12:15:02.672 DEBUG (SyncWorker_15) [custom_components.places.sensor] (Golf) Runnining initial update after load, using prior last_place_name
2024-02-26 12:15:02.672 INFO (SyncWorker_15) [custom_components.places.sensor] (Golf) last_place_name: None
2024-02-26 12:15:02.672 DEBUG (SyncWorker_15) [custom_components.places.sensor] (Golf) use_place_name: False
2024-02-26 12:15:02.672 DEBUG (SyncWorker_15) [custom_components.places.sensor] (Golf) Using street: <STRASSE>
2024-02-26 12:15:02.672 DEBUG (SyncWorker_15) [custom_components.places.sensor] (Golf) New State using formatted_place: Building, 7 <STRASSE>, <ORT>, NW
2024-02-26 12:15:02.672 INFO (SyncWorker_15) [custom_components.places.sensor] (Golf) Requesting data for OpenStreetMaps Details
2024-02-26 12:15:02.672 DEBUG (SyncWorker_15) [custom_components.places.sensor] (Golf) OpenStreetMaps Details URL: https://nominatim.openstreetmap.org/lookup?osm_ids=W258005127&format=json&addressdetails=1&extratags=1&namedetails=1&email=&accept-language=
2024-02-26 12:15:03.122 DEBUG (SyncWorker_15) [custom_components.places.sensor] (Golf) OpenStreetMaps Details Response: [{"place_id":98944895,"licence":"Data © OpenStreetMap contributors, ODbL

Golf

jd1 commented 6 months ago

Same here

Snuffy2 commented 6 months ago

@Spartacus68 (or @jd1 I see some of the Debug logs, but there are likely a whole lot more per location update. If you're still having this issue, can you please upload the full Debug logs to help me better understand what is happening. If you prefer to email it to me due to the location information in it, please send it to: my7idwq0@mail.snuffy2.com

albamatti commented 6 months ago

same here

Snuffy2 commented 6 months ago

Please provide debug logs to help troubleshoot.

Spartacus68 commented 6 months ago

Hi @Snuffy2 ,

seems to be working again. I removed the integration and installed it again. Thanks for your suppotz!

jd1 commented 6 months ago

After a few restarts and probably also a HA update, it works again. Could this be any OSM API that was not available?