GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hareeshmu/kpr-miraie-card: Custom Lovelace card for Panasonic MirAIe ACs (companion to kpr-miraie-mqtt)

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
dist
dist
 
 
images
images
 
 
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
hacs.json
hacs.json
 
 
icon.png
icon.png
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
rollup.config.mjs
rollup.config.mjs
 
 

Repository files navigation

KPR MirAIe Card

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).

Cool mode

Features

  • 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

Modes

Cool Heat
Cool — cyan ticks, snowflakes Heat — pink ticks
Dry Fan
Dry — orange ticks Fan only — sky-blue ticks
Auto Boost
Auto — teal ticks Boost — rocket badge above the mode label
Off Offline
Powered off Offline — device unavailable

Popups

Energy V-Swing
Energy usage — Today / Week / Month Vertical swing — Auto + 5 angles
H-Swing Converti
Horizontal swing — Auto + 5 angles Converti8 — Off / 40-90% / FC / HC
Features
Features popup — Clean / Boost / Nanoe / Display / Buzzer toggles

Install

HACS (recommended)

  1. HACS → three-dot menu → Custom repositories
  2. URL: https://github.com/hareeshmu/kpr-miraie-card
  3. Category: Dashboard (or Plugin in older HACS)
  4. Click ADD → find KPR MirAIe Card → DOWNLOAD
  5. HACS drops the file into /config/www/community/kpr-miraie-card/ and registers the Lovelace resource automatically.
  6. Hard-refresh browser (Cmd+Shift+R). Console should log: KPR-MIRAIE-CARD v1.3.0.

Manual

  1. Download kpr-miraie-card.js from the latest release assets.
  2. Copy to your HA /config/www/ (or any subfolder).
  3. Add as a Lovelace resource:
    • Settings → Dashboards → Resources → + ADD RESOURCE
    • URL: /local/kpr-miraie-card.js?v=1
    • Type: JavaScript Module
  4. Hard-refresh the browser.

Minimum YAML

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.

Full YAML (all options)

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.

Clean vs Eco — important note

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).

Dial geometry

  • 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)

Changelog

1.3.4

  • 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's device_id — no manual YAML required. User-supplied entity overrides in YAML are always respected.

1.3.3

  • ⋮ 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

1.3.2

  • 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.

1.3.1

  • 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.

1.3.0

  • 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 acec and acem entities 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)

1.0.0

  • Initial release

License

Same as the parent project.

About

Custom Lovelace card for Panasonic MirAIe ACs (companion to kpr-miraie-mqtt)

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.