#Badge to show Map when clicked

1 messages · Page 1 of 1 (latest)

sick wagon
#

Good morning. I'm trying to create a templated entity to use in a badge that will show interior position when a person is away, but behave like a badge with a person entity when somebody is away. I'm very close to having that - I can pass through the correct state. What I can't seem to get to work is the map behavior.
A badge with a 'person' entity in it will show a map with location when clicked. There seems to be no way to do this with a templated sensor, even if I give it latitude and longitude coordinates. Is this just not possible?

long zinc
#

You can set a tap_action of more-info on a different entity, so you could make the click on the badge bring up the more-info for the person entity.
I don't think any other type of entity other than person or device_tracker will show a map in the more-info.

sick wagon
#

Humm, okay. I'll try that, or maybe a conditional swap of badges

dusk pecan
#

That's the way I'd do it too. Use two same looking but functionally different badges with different visibility conditions