Aqara M1S Gen 1 as a local Zigbee2MQTT router with Home Assistant integration

Hi everyone,

I would like to share Aqara M1S Zigbee Router, a project that converts an Aqara M1S Gen 1 hub into a local Zigbee router for Zigbee2MQTT while preserving its Linux system, Wi-Fi, HomeKit functionality and audio hardware.

The project also includes a custom Home Assistant integration for controlling and monitoring the converted hub locally.

Main features

  • NXP JN5189 firmware replaced with Zigbee router firmware

  • Works as a Zigbee2MQTT router

  • Persistent Telnet access

  • Local Home Assistant integration

  • RGB ring light control

  • Illuminance sensor

  • Physical button events

  • Local WAV sound playback

  • Internet radio and media player controls

  • Volume and mute controls

  • Hub, MQTT, Telnet and router diagnostics

  • Support for multiple converted M1S hubs

  • Optional YouTube and YouTube Music playback through the companion Home Assistant App

Home Assistant screenshots

Multiple converted hubs

Local controls and media

Sensors, router status and physical button

Installation and documentation

The repository contains:

  • English and Romanian documentation

  • A complete conversion kit

  • Step-by-step installation instructions

  • Home Assistant custom integration

  • HACS installation support

  • Recovery and troubleshooting information

GitHub repository:

The integration can be installed through HACS by adding the repository as a custom integration repository.

Important

This project is intended specifically for the Aqara M1S Gen 1 hardware covered by the documentation. The conversion modifies the hub firmware, so please read the complete instructions, compatibility information and warnings before starting.

This is an independent community project and is not affiliated with, endorsed by or supported by Aqara, Lumi United Technology or Xiaomi.

Feedback, testing results and improvement suggestions are very welcome, especially from users with converted M1S Gen 1 hubs.

1 Like