How to configure the history in map

Hi all,

I have seen in this post:

Say that in lovelace map the history can be configured now. But I cannot find a way to configure that. How should I do it?

Thanks in advance.

You have to create a map card in one view.
It is not possible in the map in the sidebar.

1 Like

Oh thanks. i thought it’s in the sidebar :joy:

Hi, for me, even when i use the map card, i am not able to see the history.
I use this YAML code, but still i only see the actual location.

Any idea what went wrong?

type: map
title: Locatie Gebruikers
entities:
  - device_tracker.nokia_7_2_2
  - device_tracker.ta_1012
hours_to_show: 12

I found the actual problem, in my configuration.yaml i selected only a few things to store in home-assistant_v2.db. De device_tracker.xxxxxx are not included, instead i store the person.xxxxxxx witch is also bounded to the respective device_tracker.xxxxxx. Therefore if i changed the code above as follows:

type: map
title: Locatie Gebruikers
entities:
  - entity: person.emmy_eeckhaut
  - entity: person.guy_steyaert
hours_to_show: 12

It worked fine form me!
What i did not test is to include the device_tracker.xxxxx in the history & recorder included entities in my configuration.yaml

Does anyone has an idea that storing the device_tracker entities in the included entities in history & recorder would have solved the problem too?

3 Likes

How did you get this ‘full screen’? Whatever I try, it keeps putting my map in a card, which is way too small.

Found it. Use panel-mode on the view.

Indeed Ronald,

Use panel mode and only add one card to that view.

2 Likes