custom-components / places

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

"formatted_address" attribute disappeared (with address components) for some period #249

Closed ildar170975 closed 8 months ago

ildar170975 commented 9 months ago

I noticed that some my places sensor lost it's formatted_address attribute.

All places sensors in my setup have same config (except one for a car - it has "use_gps_accuracy: false"). For instance, here is a config for 2 sensors (mom & dad):

     {
        "entry_id": "2f9139f1eee205ee370a2dd6c93318c6",
        "version": 1,
        "domain": "places",
        "title": "place_mama",
        "data": {
          "devicetracker_id": "person.mama",
          "api_key": "xxxxxxxxxxxxx@gmail.com",
          "options": "formatted_address",
          "home_zone": "zone.xxxxxxxxxxxxx",
          "map_provider": "google",
          "map_zoom": 19.0,
          "extended_attr": false,
          "show_time": false,
          "date_format": "dd/mm",
          "use_gps_accuracy": true,
          "name": "place_mama",
          "yaml_hash": "41bd288ffd5d53489a9ccf69c8f170ef"
        },
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "import",
        "unique_id": null,
        "disabled_by": null
      },
      {
        "entry_id": "e5af9130f04ec47ec02b510154fbbb6d",
        "version": 1,
        "domain": "places",
        "title": "place_papa",
        "data": {
          "devicetracker_id": "person.papa",
          "api_key": "xxxxxxxxxxxxx@gmail.com",
          "options": "formatted_address",
          "home_zone": "zone.xxxxxxxxxxxxx",
          "map_provider": "google",
          "map_zoom": 19.0,
          "extended_attr": false,
          "show_time": false,
          "date_format": "dd/mm",
          "use_gps_accuracy": true,
          "name": "place_papa",
          "yaml_hash": "14dea3b4a71a0cd03aedca652554c939"
        },
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "import",
        "unique_id": null,
        "disabled_by": null
      },

Suddenly the sensor.place_mama lost formatted_address:

изображение

Note that address components disappeared too.

For comparison - contents of sensor.place_papa (they are at same location now):

изображение

Here is what is in person entities:

изображение

изображение

Since the person.mama is at some particular zone now (their home zone), it's name is placed into a state of the sensor.place_mama sensor. The person is "not lost", and I know the address (even w/o formatted_address & address components). But I wonder why the integration was unable to define an address for coordinates provided by the corr. person entity.

I reloaded the places integration for sensor.place_mama - and it seems to be fixed: restored formatted_address & adress components:

изображение

I do not know for how long the address attributes were absent (I restarted HA a few hours ago) but at least these data were absent for ~15 minutes while I was investigating the issue (till a moment I reloaded the integration).

I guess sometimes OpenStreetMap cannot give an address for some coordinates, could be a temporarily glitch.

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 8 months ago

This issue was closed because it has been stalled for 5 days with no activity.