Hi.
I wanted to use second info line that uses template to populate the location inside our home. Thererfore, I used custom-musroom-card to achieve that.
My question is how/what should I do to simulate the “more info” action of a native person card? I’d like to get the same result of map with the person’s location popup.
Here is my code:
type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: עמית
secondary: |
{% if states('sensor.amits_iphone_13') == 'office' %}
ממ"ד
{% elif states('sensor.amits_iphone_13') == 'parents' %}
הורים
{% elif states('sensor.amits_iphone_13') == 'kitchen' %}
מטבח
{% elif states('sensor.amits_iphone_13') == 'living_room' %}
סלון
{% elif states('sensor.amits_iphone_13') == 'raz' %}
רז
{% elif states('sensor.amits_iphone_13') == 'noya' %}
נויה
{% elif states('sensor.amits_iphone_13') == 'guy' %}
גיא
{% elif states('sensor.amits_iphone_13') == 'bathroom' %}
אמבטיה
{% elif states('sensor.amits_iphone_13') == 'not_home' %}
{% if states('person.amit') == 'home' %}
בבית
{% elif states('person.amit') == 'not_home' %}
לא בבית
{% else %}
{{ states('person.amit') }}
{% endif %}
{% endif %}
icon: ''
layout: vertical
badge_icon: |
{% if states('person.amit') == 'בית' or states('person.amit') == 'home' %}
mdi:home
{% elif states('person.amit') == 'בי"ס אורנים' %}
mdi:account-school
{% elif states('person.amit') == 'בי"ס אורנים' %}
mdi:account-school
{% elif states('person.amit') == 'חטיבת ביניים' %}
mdi:account-school
{% elif states('person.amit') == 'תיכון מקיף יהוד' %}
mdi:account-school
{% elif states('person.amit') == 'עבודה' %}
mdi:airplane
{% elif states('person.amit') == 'צופים' %}
mdi:campfire
{% elif states('person.amit') == 'שולה' %}
mdi:account-group
{% else %}
mdi:home-export-outline
{% endif %}
picture: /api/image/serve/1ee87705d637d665490011ae11e4f91c/512x512
fill_container: false
icon_color: ''
badge_color: >
{% if states('person.amit') == 'בית' or states('person.amit') == 'home'
%}
blue
{% else %}
red
{% endif %}
tap_action:
action: [[HELP NEEDED HERE]] <-------------------
navigation_path: [[HELP NEEDED HERE]] <-------------------
card_mod:
style: |
ha-card {
background-color: rgba(0,0,0,0);
box-shadow: none;
}
This is what I’d like to get when clicking on someone: