SOUK
September 24, 2023, 3:56pm
1
Hi, can anyone tell me how to make all users that have tracking devices (such as a mobile with the official HA app) all show at the same time under one user.
I basically want the tablet on the wall at home (which has its own user) to show all the other users locations when the map is opened.
Any ideas?
IgorZg
(Igor Simić)
September 24, 2023, 4:09pm
2
Hi,
I am using this, as single card panel:
type: custom:bootstrap-grid-card
container_padding: 0px
hass_style_gutter_size: 0px
cards:
- type: row
cards:
- type: custom:button-card
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: Settings
content:
type: custom:bootstrap-grid-card
container_padding: 0px
hass_style_gutter_size: 0px
cards:
- type: row
cards:
- type: col
cards:
- type: entities
entities:
- type: custom:numberbox-card
entity: input_number.map_history_hours
name: Unatrag
- type: row
cards:
- type: col
cards:
- type: entities
entities:
- entity: input_boolean.map_show_igor
name: Igor
- type: col
cards:
- type: entities
entities:
- entity: input_boolean.map_show_snjezana
name: Snježana
- type: col
cards:
- type: entities
entities:
- entity: input_boolean.map_show_portrait
name: Portrait
icon: mdi:menu
name: ''
layout: icon_name
styles:
card:
- height: 48px
- width: 58px
icon:
- padding: 0px 2px 4px 2px
- height: 16px
- width: 16px
- margin-left: 4px
- margin-right: 4px
- border: 1px solid black
- border-radius: 2px
- background: transparent;
style:
.: |
ha-card {
background: transparent;
margin: 0px 0px 0px 0px;
border-color: transparent;
box-shadow: none;
z-index: +1;
top: 112px;
left: 17px;
}
- type: row
cards:
- type: custom:config-template-card
variables:
hours: states['input_number.map_history_hours'].state
ratio: states['sensor.map_orientation'].state
entities:
- input_number.map_history_hours
- input_boolean.map_show_igor
- input_boolean.map_show_snjezana
- input_boolean.map_refresh_toggle
- input_boolean.map_show_portrait
card:
type: custom:auto-entities
card:
type: map
hours_to_show: ${hours}
auto_fit: true
aspect_ratio: ${ratio}
default_zoom: 12
style:
.: |
ha-card {
height: calc(100vh - 60px) !important;
background: #f0f0f0;
margin: -48px 0px 0px 0px;
border-color: transparent;
box-shadow: none;
}
filter:
include:
- entity_id: person.igor
- entity_id: person.snjezana
exclude:
- attributes:
hide: '> 0'
and it looks like this: