homebridge-meross-plug

Homebridge plugin for the meross MSS110 plug

Usage no npm install needed!

<script type="module">
  import homebridgeMerossPlug from 'https://cdn.skypack.dev/homebridge-meross-plug';
</script>

README

Homebridge Meross MSS110 Plug

This is a probably fragile homebridge implementation of the Meross MSS110 mini-plug.

This is a pet project. I can't promise it'll work for you. If it does, that's awesome! It may also break. I am using this in "production" at my house, so any fixes I make for my setup will be published.

PRs welcome!

Setup

Assuming you have a working homebridge setup, this is how you add the meross plugin:

  • npm i -g homebridge-meross-plug (You may need sudo depending on your homebridge setup)
  • Edit your config.json to include the plug name, authToken, & deviceUrl.

If you're setting this plug up fresh, make sure you go through the typical meross app for initial setup. You will need to know what the plugs IP address is on your network. You will also have to get the auth token that the meross mobile app uses in its HTTP request headers. I used Charles proxy and proxied to my iPhone to sniff the network requests from the app.

Yep, that's probably fragile and all kinds of bad. #YOLO

{
  "accessories": [
    {
      "accessory": "Meross",
      "name": "Bedroom lamp",
      "deviceUrl": "http://192.168.11.11",
      "authToken": "Basic [token you sniffed yourself]"
    },
    {
      "accessory": "Meross",
      "name": "Entertainment center lights",
      "deviceUrl": "http://192.168.11.12",
      "authToken": "Basic [token you sniffed yourself]"
    }
  ]
}