Home Assistant setup
Home Assistant (HA) is the most flexible way to bring non-Hue, non-Tuya, or mixed ecosystems into M2C2.
Create a long-lived token
- In HA open your profile (bottom left) → Long-Lived Access Tokens.
- Create token, name it
m2c2-mirror, copy the string once.
⚠️ Warning: Anyone with this token can control your home. Rotate it if the Pi is re-imaged or compromised.
Configure M2C2
- Open Settings → Smart Home → Home Assistant.
- Enter Base URL (example
http://homeassistant.local:8123— prefer HTTPS with valid certs if exposed). - Paste the token.
- Choose entities to expose (lights, switches, sensors, climate).
- Save and reload the dashboard module.
💡 Tip: Create HA groups (group.mirror_lights) so the mirror UI stays simple even when you have dozens of bulbs.
Voice through HA
Depending on integration depth, Piper may call HA services for scenes. Test simple actions before enabling lock or garage controls.
Troubleshooting
401 Unauthorized
Token revoked — generate a new token and update M2C2.
Mixed content blocked
If M2C2 UI is HTTPS and HA is HTTP, use reverse proxy with TLS on HA.
Last updated on
Was this helpful?