bwp91 / homebridge-meross

Homebridge plugin to integrate Meross devices into HomeKit.
MIT License
194 stars 32 forks source link

Local Control - Separate Networks #568

Closed Siff3D closed 4 months ago

Siff3D commented 4 months ago

Hello,

I'm trying to connect Meross MSG100 using Local Control. In my case the Homebridge is on a separate network from the MSG100 on the same router: Homebridge IP is 192.168.1.10 and MSG100 IP is 172.16.10.10. Both have static IPs and there are firewall rules enabling access from each side.

Unfortunately, I cannot make this work (the MSG100 works fine in "Hybrid" mode). Here are the plugin settings I've tried with for setting up local control:

Garage Device Settings:

All other fields are at their defaults.

After saving and rebooting Homebridge, I see the following in the log (edits and emphasis mine): HomeBridge log: [05/03/2024, 12:06:21] [Meross] [Garage Door] initialising with options {"connection":"local","garageDoorOpeningTime":20}. [05/03/2024, 12:06:21] [Meross] [Garage Door] initialised with id [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}]. [05/03/2024, 12:06:21] [Meross] [Garage Door] has been removed from Homebridge. [05/03/2024, 12:06:21] [Meross] ✓ Setup complete. This plugin has been made with ♥ by bwp91, please consider a ☆ on GitHub if you are finding it useful! [05/03/2024, 12:06:23] [Meross] [Garage Door] has been reported [online].

I tried using Meross User Key instead of user/password, but it didn't work and I'm not sure whether I got the correct key to begin with - I installed the latest available beta version of the plugin and I tired with the values of both the "sign" and the "userID" fields for the user key, but none of them worked. Checking the "Show Meross User Key" check-box in the plugin settings didn't show the key anywhere either.

Thank you!

Siff3D commented 4 months ago

I tried again and this time it worked! My guess is that I haven't specified the GDO model last time I tried this, but that's just a guess.

Anyway, for anyone having a similar issue, here are the settings that worked for me:

  1. Set firewall rules that allow the MSG100 to talk to Homebridge and Homebridge to talk to MSG100
  2. Plugin settings for local control:
    • Enter Meross user name, password and MFA code

Garage Device Settings:

All other fields are at their defaults. Save the plugin setting and restart Homebridge.

[Update 20240313] Using the Meross User Key stopped working (or I used the wrong field!), so I tried again with user name, password and MFA code and it worked (and is still working), so I updated this post to reflect that.

Two additional notes:

  1. I guess that the issues the first time I tried with user name and password were related to the MFA key. I'll try removing the MFA from my account if it stops working again.
  2. The field to specify the model of the GDO doesn't appear in the Garage Device settings when using user name and password, so I added it manually to the config file. I'm not sure whether this makes any difference, though.

Hope this helps someone.