npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

meross-client

v2.1.4

Published

Control Meross cloud devices using nodejs

Downloads

4

Readme

meross-client

NPM version Downloads Test and Release

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.

Disclaimer

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.

Example

see example folder

Todo

  • Experiment with multiple MQTT connections vs only one and maybe optimize

Credits

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

Changelog

2.1.3 (2022-08-12)

  • (Apollon77) Prevent some crash cases reported by Sentry

2.1.2 (2022-08-12)

  • (JackReevies) Remove not needed console logging

2.1.1 (2022-07-12)

  • (Apollon77) Fix new logic

2.1.0 (2022-07-12)

  • (Apollon77) Add new option to define that GET requests are only tried locally and not resend to cloud on error.

2.0.0 (2022-06-27)

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

1.9.1 (2022-06-27)

  • (Apollon77) Also emit an error event if publishing an MQTT message fails

1.9.0 (2022-06-19)

  • (Apollon77) Detect MQTT reconnect issue "Server unavailable" and reinitialize the MQTT connection completely - this case is silently handled as reconnect!

1.8.1 (2022-05-31)

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

1.7.4 (2022-04-14)

  • (Apollon77) Adjust to recent API changes from Meross services

1.7.2 (2022-02-19)

  • (Apollon77) Fix pot. crash case

1.7.1 (2022-01-26)

  • (Apollon77) Fix pot. crash case

1.7.0 (2022-01-20)

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

1.6.0 (2022-01-05)

  • (Apollon77) Add support for MTS200 Wifi Thermostat

1.5.0 (2021-11-13)

  • Add support for MTS150 Thermostats
  • Add support for MRS100 RollerShutter devices
  • update typescript definitions

1.4.0 (2021-04-18)

  • add MOD100 Diffuser Spray device

1.3.6 (2020-12-05)

  • generate an unique uuid for each connection, fixes the "Server not available"

1.3.5 (2020-06-11)

  • update dependencies

1.3.4 (2020-04-12)

  • add typings (thanks to @colthreepv)
  • prevent some error cases

1.3.3 (2019-12-01)

  • handle error cases

1.3.2 (2019-11-28)

  • handle error cases

1.3.1 (2019-11-28)

  • handle error cases

1.3.0

  • more fixes for garage door opener
  • better support lights
  • reconnection fixes
  • support for hub devices

1.2.1

  • try to fix garage door opener

1.2.0

  • add read/write DND-Mode (Device LED)
  • add read SystemRuntime (Wifi Strength)

1.1.0

  • add Light Support

1.0.0

  • move to 1.0.0

0.3.2

  • (Apollon77) fix message handling and ignore messages posted by other devices

0.3.1

  • (Apollon77) add rawData event to allow better debugging

0.3.0

  • (Apollon77) Add more functions for mss310 devices

0.2.0

  • (Apollon77) implement all functionalities for adapter

0.1.0

  • (Apollon77) initial first release