custom-components / places

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

Feature: toggle attributes shown #229

Open NODeeJay opened 1 year ago

NODeeJay commented 1 year ago

I love the integration, for travelers from Czechia just perfect. But it creates a lot of attributes, in my case most of them are not needed and/or redundant, and I can't exclude particular attributes in the recorder.

Can you add an option to choose which attributes are added to the sensor?

Thanks, Alex

Snuffy2 commented 1 year ago

Honestly I'm not sure that is something I'm going to work on. Happy to review a PR if someone else would like to implement it.

jtbnz commented 8 months ago

as a workaround I have used split in a template And then to use in cards I use the mushroom template sensor:

{{states('sensor.harry_places').split(",")}} gives: ['not_home', ' Seminar für Ausbildung und Fortbildung der Lehrkräfte Stuttgart (Abteilung Gymnasium)', ' office', ' educational_institution', ' Neue Vorstadt', ' 22-24', ' Hospitalstraße (since 10:58)']

{{states('sensor.harry_places').split(",")[1]}} gives: Seminar für Ausbildung und Fortbildung der Lehrkräfte Stuttgart (Abteilung Gymnasium)

{{states('sensor.harry_places').split(",")[0]}} gives not_home