GoogleGeocode-HASS

Hi all,

I’ve just installed and configured GoogleGeocode but I’m getting the following errors:

Logger: homeassistant.helpers.entity
Source: custom_components/google_geocode/sensor.py:170
First occurred: 17:52:40 (4 occurrences)
Last logged: 17:53:40

Update for sensor.google_geocode fails
Update for sensor.nicholas fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 277, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 473, in async_device_update
    raise exc
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 285, in wrapper
    result = method(*args, **kwargs)
  File "/config/custom_components/google_geocode/sensor.py", line 170, in update
    zone_check = self.hass.states.get(self._origin_entity_id).state
AttributeError: 'NoneType' object has no attribute 'state'

Logger: custom_components.google_geocode.sensor
Source: custom_components/google_geocode/sensor.py:290
Integration: google_geocode (documentation, issues)
First occurred: 17:52:40 (4 occurrences)
Last logged: 17:53:40

Unable to find entity device_tracker.mobile_phone

I have in my config.yaml the following:

  - platform: google_geocode
     name: Nicholas
     origin: device_tracker.note20 
     options: street_number, street, city
     display_zone: hide
     gravatar: [email protected]
     api_key: my api key
     language: en-GB
     region: ES

Any ideas what I am dong wrong?

Got it working

If your going to give yourself the credits for the solution at least take the time and explain what the solution was…

1 Like

I tried to delete the post as nobody answered.

  - platform: google_geocode
     name: Nicholas
     origin: device_tracker.note20
     options: street_number, street, city
     display_zone: hide
     gravatar: [email protected]
     api_key: my api key
     language: en-GB
     region: ES

origin: device_tracker.note20 - - - had the wrong device name spelling. A silly mistake

1 Like