Closed ildar170975 closed 1 month ago
An additional request: please provide ways to avoid this misaligned look:
Fixed in v0.8.0
Unfortunately the misaligned look cannot directly be fixed, because the ha-entity-marker is used to display (and this one has a fixed width & height + font size).
For a stock map card I managed to fix alignment by
.marker:not(:has(.entity-picture)) {
text-align: center;}
in an external js-file.
Added the CSS in the latest release, however I don't think it's working due to how the Web Containers work.
Thanks a lot for the feature!
Unfortunately, do not see a state. 0.8.2 Here is a stock map card:
type: map
entities:
- entity: sensor.narodmon_eee_radiation
label_mode: state
Here is a ha-map-card:
type: custom:map-card
entities:
- entity: sensor.narodmon_eee_radiation
But this does not show a marker at all:
type: custom:map-card
entities:
- entity: sensor.narodmon_eee_radiation
display: state
Zoomed out for security reasons:
F5, waiting - do not help. Interesting that while I was editing in HA Editor - a state was shown! It happened once, could not reproduce.
Also please consider these cases:
Also please consider these cases:
* entity is unknown - may be then we should not see the marker * entity is unavailable - some "wrong" label should be shown instead of long "unavailable"; this "label" should be clear for any languages; may be just "long dash" (w/o UoM)?
We can only display entities with a latitude/longitude attributes. Unknown entities likely do not have these. Might be inspiration for a new feature though!
P.s. I added more debug logging and also spotted a minor debug where the market kept getting recreated.
We can only display entities with a latitude/longitude attributes. Unknown entities likely do not have these. Might be inspiration for a new feature though!
Oh. Of course ))) My bad. Probably an unavailable entity will not have coords too.
Thanks a lot for the feature!
Unfortunately, do not see a state. 0.8.2 Here is a stock map card:
type: map entities: - entity: sensor.narodmon_eee_radiation label_mode: state
Here is a ha-map-card:
type: custom:map-card entities: - entity: sensor.narodmon_eee_radiation
But this does not show a marker at all:
type: custom:map-card entities: - entity: sensor.narodmon_eee_radiation display: state
Zoomed out for security reasons:
F5, waiting - do not help. Interesting that while I was editing in HA Editor - a state was shown! It happened once, could not reproduce.
The stock map card allows to see a state instead of some icon/avatar:![image](https://github.com/nathan-gs/ha-map-card/assets/71872483/9aef81f4-ab11-4b24-990e-08ed3ebb6904)
This allows to see values like:![image](https://github.com/nathan-gs/ha-map-card/assets/71872483/02ab4e25-e79a-49cd-ac82-67fd5fa6eb12)
Would be great to have a similar option in this card as well.