Must be:
- "home/homeassistant/.homeassistant/custom_components/places/manifest.json
- "home/homeassistant/.homeassistant/custom_components/places/sensor.py
Must be:
Thanks working now!
Just want to say thank you for this custom component, I had been looking at the google_geocode component but put of by the fact that I could be charged for the use and then I found this one and it works great, added some info to an attribute card on my HA home page and all is good, now off to see if I can change the look of the card with templates, never tried before.
Thanks again
You’re welcome! I’m glad you like it and find it useful…
does it still work? im running 0.93.1.
I’m getting
Platform not found: sensor.places
I tried
custom_components/places/manifest.json
custom_components/places/places.py
custom_components/sensor/manifest.json
custom_components/sensor/places.py
- platform: places
name: geo_approx_loc_test
devicetracker_id: device_tracker.iphone_plus
options: zone, place
display_zone: show
map_provider: google
map_zoom: 16
home_zone: zone.home
api_key: !secret email
EDIT: Nevermind, this works
NOTE: name of the .py file is sensor not places
custom_components/places/sensor.py
I installed yesterday and it’s working well for me, I Am using :
My config looks like :
sensor:
- platform: ring
# Weather prediction
- platform: yr
- platform: places
name: Greg
devicetracker_id: device_tracker.gregs_phone
options: zone, place
map_provider: google
map_zoom: 18
home_zone: zone.Home
api_key: [email protected]
- platform: places
name: Tracey
devicetracker_id: device_tracker.galaxy_s9
options: place
map_provider: google
map_zoom: 17
home_zone: zone.Home
api_key: [email protected]
EDIT: Ah sorry just read you have sorted it
Getting an error since updating to 0.94
Is this an issue you can sort easily?
Thanks
Error while setting up platform places
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/places/sensor.py", line 312, in setup_platform
add_devices([Places(hass, devicetracker_id, name, api_key, options, home_zone, map_provider, map_zoom)])
File "/config/custom_components/places/sensor.py", line 332, in __init__
self._entity_picture = hass.states.get(devicetracker_id).attributes.get('entity_picture')
AttributeError: 'NoneType' object has no attribute 'attributes'
I commented out all 7 instances of the entity_picture lines in sensor.py and now it works fine.
Guess 0.94 device tracker has an issue with entity_picture ?
Thank you, now it works fine.
I’m having issues with this since upgrading to hassio .94, like an idiot I hadn’t backuped my system up before updating so had to install this component. I do a ‘check config’ and it verifies fine but when I click reload config nothing happens and if I try restarting hassio it doesn’t start up again. The only way I can restart hassio is by removing the places sensors from my config.
@tenly first thank you for producing and sharing this component. I trust you can consider this suggestion.
I created a pull request on your component to restructure it in order to be able to download it and track it with HACS (Home Assistant Community Store) see below.
Hi Juan,
I’m not sure what to do with/about your pull request. I’m not actively working on this component at the moment. What would I need to do to help you with this request?
Thanks,
Jim
Hi Jim,
If agreeable to you, all you need to do is accept the pull. All I’m proposing is a directory/folder restructure to comply with HACS
It will allow installing your component with one click and should you ever update it, the user will be notified by HACS
Thank you
@juan11perez Did you get your pull completed? I was going in install this, but I see your pull request to structure for HACS and I will wait until I can add it thru HACS.
Thanks
No, it hasnt been accepted.
@tenly Can you accept Juan’s pull request? His update for the directory structure on GitHub will make it easier for all of us to install and use your custom component.
Thanks
it’s done
put this in your hacs and it works
Works, I could successful install via hacs.
but on the other hand, the sensor will not be created.
No errors in logfile
My config:
I would like to push my issue again.
The component is installed successful but the sensor is missing.
See my config above.
Has anybody an idea why?
I even tried to move the config out of sensors direct to the configuration.yaml:
sensor places_joerg:
- platform: places
name: Location_Joerg
devicetracker_id: device_tracker.pirol62_sgs10joerg
options: place
map_provider: google
home_zone: zone.home
same api_key.
But no succes.
I have definately no idea what to do next.
Can anybody help?
Anything in the logs ? I had to do this to get it to load.