places icon indicating copy to clipboard operation
places copied to clipboard

Feature: toggle attributes shown

Open NODeeJay opened this issue 1 year ago • 2 comments

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

NODeeJay avatar Sep 23 '23 20:09 NODeeJay

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.

Snuffy2 avatar Sep 25 '23 20:09 Snuffy2

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

jtbnz avatar Jan 17 '24 22:01 jtbnz