Skip to content

HDAnyWhere MHUB

Choose a tag to compare

@marsh4200 marsh4200 released this 21 Jun 17:19
efa1882

V0.1.4

🃏 MHUB Lovelace Card is Now Built In

The companion MHUB Lovelace Card is now included directly inside the MHUB integration.

No separate HACS installation.
No copying files to /config/www.
No manual Lovelace resource setup for normal storage-mode dashboards.

✨ What's New

📦 Integrated Lovelace Card

The card is now bundled with the integration:

custom_components/mhub/frontend/mhub-card.js

The card is installed automatically together with the MHUB integration.

⚡ Automatic Registration

When the integration starts, the card is automatically registered as a Lovelace resource.

For storage-mode dashboards:

Edit Dashboard → Add Card → Custom: MHUB Card

That's it — no extra configuration required.

🔄 Automatic Updates

The card resource uses versioned URLs to ensure updates are loaded correctly without requiring users to manually clear their browser cache.

🛡️ Safe Integration

Card registration is isolated and protected. If registration fails, it will never prevent the MHUB integration from starting.

For YAML-mode dashboards, the card can still be added manually:

url: /mhub/mhub-card.js
type: module

🔧 Technical Changes

  • Added http and frontend dependencies to manifest.json

  • Added Lovelace module registration handler:

    custom_components/mhub/frontend/
    
  • Updated README documentation with the included MHUB Lovelace Card section


⚠️ Existing Users of the Standalone Card

If you previously installed the separate mhub-card repository:

Remove the old Lovelace resource entry to prevent loading the card twice.

Remove entries such as:

/local/mhub-card.js

or

/hacsfiles/mhub-card/...

The card is now provided by the MHUB integration itself.


🚀 Setup

Install the integration from:

Settings → Devices & Services → Add Integration → HDAnywhere MHUB

The MHUB integration will now include everything required for both device control and the Lovelace interface.