This library allows to login into Meross cloud server, read the registered devices and open connections to the MQTT cloud server to get the data. The library tries to control the devices locally first (if "localHttpFirst" option is set to true), else will control via cloud server.
All product and company names or logos are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them or any associated subsidiaries! This personal project is maintained in spare time and has no business goal. MEROSS is a trademark of Chengdu Meross Technology Co., Ltd.
see example folder
- Experiment with multiple MQTT connections vs only one and maybe optimize
- Find out how reading of Fan and Childlook works :-(
The library is partially based on the Python project https://github.com/albertogeniola/MerossIot, Thank you for this great basic work on how to connect to the Meross Cloud Servers
- (Apollon77) Enhance some error messages
- (Apollon77) Fix crash case_
- (Apollon77/bwp91) Adjust Signin API and add support for MFA
- (Apollon77) Allow to store and reuse Login token to avoid Login/MFA requests
- (Apollon77) Prevented crash case reported by Sentry
- IMPORTANT: Node.js 16.x or higher is required
- (Apollon77) Fix an issue when committing devices delayed
- (Apollon77) Added controlRollerShutterPosition that might work with Homekit versions of shutter devices
- (Apollon77) Prevented crash case reported by Sentry
- (Apollon77) Fix garage door state control
- (Apollon77) Add support for additional MAP100 air purifier data
- (Apollon77) Add support for FilterMaintenance data of MAP100 air purifier
- (Apollon77) Fix typings: messageId returned by many calls is a string and not a number
- (Apollon77) Prevent some crash cases reported by Sentry
- (JackReevies) Remove not needed console logging
- (Apollon77) Fix new logic
- (Apollon77) Add new option to define that GET requests are only tried locally and not resend to cloud on error.
- (Apollon77) Major change: the error event emitted on MerossCloud instance has now as first parameter the error info and second an optional device id!! Before this was partially switched
- (Apollon77) Also emit an error event if publishing an MQTT message fails
- (Apollon77) Detect MQTT reconnect issue "Server unavailable" and reinitialize the MQTT connection completely - this case is silently handled as reconnect!
- (Apollon77) Add timeout parameter to options to use as request timeout. For MQTT data requests the timeout is doubled
- (Apollon77) Lower the MQTT timeout from 20s to 6s. Can be increased using timeout parameter again if needed
- (Apollon77) Adjust to recent API changes from Meross services
- (Apollon77) Fix pot. crash case
- (Apollon77) Fix pot. crash case
- (Apollon77) Add option to the library to try to communicate to the device locally using HTTP if the IP is known (or retrieved using getSystemAllData). If a call is not answered via HTTP within 3s the value is sent via MQTT. See above for more details
- (Apollon77) Restructure library so that only one MQTT connection is used: Effect ist that the "connect()" and "disconnect()" methods are only activating or deactivating if messages are emitted/answered or not!
- (Apollon77) Add Logout method. Please use to tear down a session at the end (Meross is monitoring too many open sessions)
- (Apollon77) Add support for MTS200 Wifi Thermostat
- Add support for MTS150 Thermostats
- Add support for MRS100 RollerShutter devices
- update typescript definitions
- add MOD100 Diffuser Spray device
- generate an unique uuid for each connection, fixes the "Server not available"
- update dependencies
- add typings (thanks to @colthreepv)
- prevent some error cases
- handle error cases
- handle error cases
- handle error cases
- more fixes for garage door opener
- better support lights
- reconnection fixes
- support for hub devices
- try to fix garage door opener
- add read/write DND-Mode (Device LED)
- add read SystemRuntime (Wifi Strength)
- add Light Support
- move to 1.0.0
- (Apollon77) fix message handling and ignore messages posted by other devices
- (Apollon77) add rawData event to allow better debugging
- (Apollon77) Add more functions for mss310 devices
- (Apollon77) implement all functionalities for adapter
- (Apollon77) initial first release