github Makin-Things/weather-radar-card v3.1.0-beta2
3.1.0-beta2 — Bug fixes

latest release: v3.1.0-beta3
pre-release4 hours ago

What's new in beta2

Fixed

  • Map floats above HA navigation — Leaflet's CSS sets z-index:1000 on its control elements. Without an isolated stacking context, those values competed in the document stacking context and appeared above HA's sidebar, navigation drawer, and other overlays. isolation:isolate on the card's shadow host contains Leaflet's z-index scope entirely within the card. (Fixes #95)
  • Timestamp wraps to second line — The locale-aware timestamp (weekday + date + time) was clipped to a 120 px container. Removing the fixed width and adding white-space:nowrap keeps it on one line regardless of locale or time format length.

What's new since 3.0.1 (full changelog)

Multi-marker support

Replace show_marker / marker_latitude / marker_longitude with a markers list. Each entry is independent:

markers:
  - entity: zone.home
    icon: mdi:home
    color: '#4CAF50'

  - entity: person.john
    icon: entity_picture
    track: entity

  - entity: device_tracker.van
    icon: mdi:car
    color: '#2196F3'
    track: entity

Marker fields

Field Description
entity device_tracker.*, person.*, or zone.* — live position from HA state
latitude / longitude Static position
icon default, entity_picture, or mdi:icon-name
color CSS colour for default/MDI icons
track entity or true — auto-centre the map
mobile_only Only show on mobile
home_radius Home suppression radius in metres (default 500, 0 = always show)

Track resolution priority

  1. track: entity on a person.* matching the logged-in HA user
  2. track: entity on any other entity
  3. track: true — always-on fallback

Home suppression

Entity-based markers are hidden when at home:

  • HA state: home is checked first (handles GPS drift)
  • Falls back to distance check using home_radius
  • home_radius: 0 disables suppression for that marker
  • zone.* entities and static lat/lon markers are never suppressed
  • When migrating show_marker: true with no position, a zone.home marker is created automatically

Auto-migration

Existing YAML with show_marker, marker_latitude, etc. continues to work — the card converts it in memory on load and logs a deprecation warning.

Other fixes since 3.0.1

  • useDefineForClassFields: false — ES2022 target was silently breaking LitElement @property() accessors, causing the card to produce no DOM at all
  • show_scale was never wired to the Leaflet scale control
  • 126 unit tests (Vitest) gating every PR

This is a beta release. The marker API is stable. Please report issues on GitHub.

Don't miss a new weather-radar-card release

NewReleases is sending notifications on new releases.