A custom Lovelace card for Panasonic MirAIe smart ACs. Circular dial inspired by the LVGL climate-control-display ESPHome project — mode-colored halo, tick ring with warm/cool arc split, room-temp needle, falling snowflakes, and pill-row popups for swing / Converti8 / features / energy.
Designed to pair with the KPR MirAIe Local MQTT Home Assistant integration (install both).
- Circular dial — 80-tick ring with mode-color glow, animated outer halo that pulses in the active mode color, cool/warm arc split at the room-temp position, white room-temp needle, and a draggable mode-color handle
- Drag-to-set — grab the handle and drag along the ring; command fires once on release; handle stays pinned for 2 s to hide MQTT round-trip lag
- Responsive — the whole dial scales fluidly (container queries) to fit narrow mobile layouts while keeping text proportional
- Pill row — compact status pills for Energy, Vertical Swing, Horizontal Swing, Converti8, and Features, each with its own popup
- Mode bar — Off / Cool / Auto +
⋯overflow for Heat / Fan / Dry, with dark text on the bright active color for WCAG-AA contrast - Boost badge — pulsing rocket chip above the mode label when Powerful mode is active
- Snowflake particles — 7 physics-independent flakes (fall + sway + spin) drift inside the dial during Cool mode
- Header chips — AC name (left), online status dot + last-seen + WiFi RSSI bars (right)
- Auto-derived entities — from the climate entity's slug; minimal YAML required
![]() |
![]() |
| Cool — cyan ticks, snowflakes | Heat — pink ticks |
![]() |
![]() |
| Dry — orange ticks | Fan only — sky-blue ticks |
![]() |
![]() |
| Auto — teal ticks | Boost — rocket badge above the mode label |
![]() |
![]() |
| Powered off | Offline — device unavailable |
- HACS → three-dot menu → Custom repositories
- URL:
https://github.com/hareeshmu/kpr-miraie-card - Category: Dashboard (or Plugin in older HACS)
- Click ADD → find KPR MirAIe Card → DOWNLOAD
- HACS drops the file into
/config/www/community/kpr-miraie-card/and registers the Lovelace resource automatically. - Hard-refresh browser (
Cmd+Shift+R). Console should log:KPR-MIRAIE-CARD v1.3.0.
- Download
kpr-miraie-card.jsfrom the latest release assets. - Copy to your HA
/config/www/(or any subfolder). - Add as a Lovelace resource:
- Settings → Dashboards → Resources → + ADD RESOURCE
- URL:
/local/kpr-miraie-card.js?v=1 - Type: JavaScript Module
- Hard-refresh the browser.
Thanks to the auto-derive logic, a working card needs only two lines:
type: custom:kpr-miraie-card entity: climate.kpr_<deviceId>
The card reads the slug from the climate entity and wires up all companion switches / selects / sensors automatically.
type: custom:kpr-miraie-card entity: climate.kpr_05f448d0cfa6 name: Livingroom AC # optional; defaults to friendly_name # Feature switches (auto-derived from climate slug if omitted) eco_entity: switch.kpr_05f448d0cfa6_acem # true Eco mode (acem) clean_entity: switch.kpr_05f448d0cfa6_acec # Clean mode (acec) powerful_entity: switch.kpr_05f448d0cfa6_acpm # Boost / Powerful nanoe_entity: switch.kpr_05f448d0cfa6_acng display_entity: switch.kpr_05f448d0cfa6_acdc buzzer_entity: switch.kpr_05f448d0cfa6_bzr # Swing / Converti (auto-derived) v_swing_entity: select.kpr_05f448d0cfa6_v_swing h_swing_entity: select.kpr_05f448d0cfa6_h_swing converti_entity: select.kpr_05f448d0cfa6_converti # Energy + RSSI (auto-derived) energy_daily_entity: sensor.kpr_05f448d0cfa6_energy_daily energy_weekly_entity: sensor.kpr_05f448d0cfa6_energy_weekly energy_monthly_entity: sensor.kpr_05f448d0cfa6_energy_monthly rssi_entity: sensor.kpr_05f448d0cfa6_rssi # Section toggles show_energy: true # show Energy pill show_swing: true # show V-Swing / H-Swing / Converti8 pills show_extras: true # show Features pill
Every line except entity is optional — user-supplied values override auto-derive.
The MirAIe mobile app shows both "Clean" and "Eco mode" buttons, but they map to different MQTT fields:
| App button | MQTT field | Card entity (default) |
|---|---|---|
| Eco mode | acem |
switch.kpr_<id>_acem (Eco) |
| Clean | acec |
switch.kpr_<id>_acec (Clean) |
Before this project, the coordinator labeled the acec switch as "Eco Mode" —
that was a mislabel. As of v1.3.0, the integration publishes them separately
and the card wires them to the correct popup toggles. Any pre-existing
automation that flipped your "Eco" switch was actually flipping Clean and will
keep working unchanged (same entity ID, just renamed in the UI).
- 300° sweep with a 60° gap centered at the bottom
startA=210°→endA=510°(visual scale 16 – 34 °C to match the LVGL reference)- Drag range clamps at the entity's real
max_temp(usually 30 °C) - Outer arc splits at the room-temp needle — cool gray from start to room temp, warm orange from room temp to end (shows "hotter than room" zone at a glance)
- Auto-derive survives climate renames. If you rename
climate.kpr_<id>to something friendlier (e.g.climate.master_ac), the card now finds all the companion switches, selects, and sensors by looking them up in HA's entity registry via the climate entity'sdevice_id— no manual YAML required. User-supplied entity overrides in YAML are always respected.
- ⋮ header button now opens an inline dropdown directly on the card instead
of jumping straight to HA's more-info dialog. Three actions:
- Device info — navigates in-app to
/config/devices/device/<id> - Related — opens the more-info dialog (has a Related tab)
- Details — opens the more-info dialog
- Device info — navigates in-app to
- Add a ⋮ button to the card header that opens Home Assistant's built-in more-info dialog for the climate entity — one tap from there to Device info, Related, or the full entity details.
- Show current room temperature as the large center reading when the AC is
powered off (was
--°C). Mode label still reads "Off" and the cyan line below still shows "Powered Off" for clarity.
- Rewritten dial: 80 ticks, mode-color halo (5-stop radial gradient), cool/warm arc split, white room-temp needle, responsive cqw sizing
- Pill row with Energy / V-Swing / H-Swing / Converti / Features, each with its own popup
- Clean vs Eco fix — separate
acecandacementities with correct labels - Converti8 — all 9 levels (Off / 40-90% / FC / HC)
- Auto-derive companion entities from the climate slug
- Smooth drag-to-set with 2-second pin after release (hides MQTT round-trip jitter)
- Boost badge, snowflake particles, AC name header with online / RSSI indicators
- Dial-scale visual 16-34 °C (handle & room needle map to distinct angles for realistic room temps above 30 °C)
- Initial release
Same as the parent project.












