Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old MSS110s are discovered and added, but the devices are unavailable to HA #15

Closed
midnightgrue opened this issue Apr 19, 2021 · 9 comments

Comments

@midnightgrue
Copy link

Hello,

I have some old MSS110 plugs that I have FINALLY (many thanks to @bytespider who made an update to his awesome utility in order to make it work) managed to successfully join to my local wifi and connect to my MQTT Add-on in Home Assistant.

Unfortunately, I now have a new problem... Your awesome utility is installed and running, but it only partially works. When I configure a new plug (or when I toggle the switch manually after re-installing), the meross-lan integration discovers it just fine and presents me with a configure screen. I click submit, and the new sub-integration appears to be successfully created -- but the associated devices all show status unavailable in lovelace, right from the get-go :(

I have tried creating Home Assistant users using the mac addresses as described in bytespider's wiki, and I've also tried putting the mac address logins in the configuration of the MQTT add-on itself. In both cases the result is the same: the connection appears successfully in the MQTT log, the integration discovers the new plug, but the device is unavailable to HA, and I can't interact with it in any way.

Here's the output of bytespider's verbose info command (it seems to gather the same info you want, and I'm afraid I don't quite understand MQTT well enough to figure out how to publish things manually, so hopefully this will give you what you need):

Getting info about device with IP <redacted>
> POST /config
> Host: <redacted>
> Accept: application/json, text/plain, */*
> Content-Type: application/json
>
{
  header: {
    method: 'GET',
    namespace: 'Appliance.System.All',
    messageId: 'ede61eac2ea6f5c4441ccb43710e41bf',
    timestamp: 1618807862,
    sign: 'c5ebaa3513ebbc43f34db898b666280d'
  },
  payload: {}
}

< 200 OK
< server: HTTPD
< date: Thu, 01 Jan 1970 02:10:37 GMT
< pragma: no-cache
< cache-control: no-cache
< content-type: application/json;charset=UTF-8
< connection: close
<
{
  header: {
    messageId: 'ede61eac2ea6f5c4441ccb43710e41bf',
    namespace: 'Appliance.System.All',
    method: 'GETACK',
    payloadVersion: 1,
    from: '/appliance/1712126291560325130734298f107d35/publish',
    timestamp: 1618807863,
    timestampMs: 30,
    sign: 'c453cc69afe61693faaf9b99c482233a'
  },
  payload: {
    all: {
      system: {
        hardware: {
          type: 'mss110',
          subType: 'us',
          version: '1.0.0',
          chipType: 'MT7688',
          uuid: '1712126291560325130734298f107d35',
          macAddress: '34:29:8f:10:7d:35'
        },
        firmware: {
          version: '1.1.28',
          compileTime: '2019-11-25 16:15:37',
          wifiMac: 'b0:6e:bf:b3:3d:60',
          innerIp: '<redacted>',
          server: '<redacted>',
          port: 8883,
          secondServer: '<redacted>',
          secondPort: 8883,
          userId: 0
        },
        time: { timestamp: 1618807863, timezone: '', timeRule: [] },
        online: { status: 1 }
      },
      control: {
        toggle: { onoff: 1, lmTime: 1618800038 },
        trigger: [],
        timer: []
      }
    }
  }
}

Here's the (trimmed) debug log, showing lines mentioning the meross_lan integration:

2021-04-18 22:23:14 INFO (MainThread) [homeassistant.setup] Setting up meross_lan
2021-04-18 22:23:14 INFO (MainThread) [homeassistant.setup] Setup of domain meross_lan took 0.0 seconds
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry entry_id = 09d6219295f01d946e456f2127562df0
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry entry_id = fd5175c727d61f369d2c343bd11df8e0
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712212107981725131434298f10c602
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712212107981725131434298f10c602) init
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry entry_id = 7542c666a64ec260e85e5750b5d65e38
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712123980953925130734298f107be5
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712123980953925130734298f107be5) init
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry entry_id = 75fcf1b07729235564a0d911c5de538a
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712120739176125130734298f108226
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712120739176125130734298f108226) init
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry entry_id = 7afabd597c0fb49e448ea6fedf0e455e
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712215696074825131434298f10c809
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) init
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry entry_id = 33699b669a1cf449db1c85ae3ce3043c
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712126291560325130734298f107d35
2021-04-18 22:23:17 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712126291560325130734298f107d35) init
2021-04-18 22:23:19 INFO (MainThread) [homeassistant.components.switch] Setting up switch.meross_lan
2021-04-18 22:23:19 INFO (MainThread) [homeassistant.components.switch] Setting up switch.meross_lan
2021-04-18 22:23:19 INFO (MainThread) [homeassistant.components.switch] Setting up switch.meross_lan
2021-04-18 22:23:19 INFO (MainThread) [homeassistant.components.switch] Setting up switch.meross_lan
2021-04-18 22:23:19 INFO (MainThread) [homeassistant.components.switch] Setting up switch.meross_lan
2021-04-18 22:23:19 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712212107981725131434298f10c602 - platform = switch
2021-04-18 22:23:19 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712123980953925130734298f107be5 - platform = switch
2021-04-18 22:23:19 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712120739176125130734298f108226 - platform = switch
2021-04-18 22:23:19 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712215696074825131434298f10c809 - platform = switch
2021-04-18 22:23:19 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712126291560325130734298f107d35 - platform = switch
2021-04-18 22:23:47 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-18 22:23:48 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712126291560325130734298f107d35) back online!
2021-04-18 22:24:17 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-18 22:24:47 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-18 22:25:17 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-18 22:23:47 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-18 22:23:48 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712126291560325130734298f107d35) back online!
2021-04-18 22:24:17 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds

(That last line is repeated in my log every thirty seconds forever.)
(At this point only one of the devices was powered up, so that's why only the one shows online.)

I'm pretty new to MQTT and probably only know just enough to be dangerous at this point, so it's quite likely I'm doing something wrong. I'd be grateful for any troubleshooting suggestions. Please let me know if there's any further info you need.

Thank you so much in advance for any help!

@krahabb
Copy link
Owner

krahabb commented Apr 19, 2021

Hello @midnightgrue ,
Thank you for using this and sharing your issue.
first of all it's awesome you posted a full DEBUG log: that confirmed what was working and what not and quickly directed me to the issues.
There are a couple I'm going to fix in the next few hours (I hope to be able to quickly release an update).

Basically, even tho my component recognizes the switch it does so by a 'best effort' approach so, in the end, it guesses there is a switch out there but the payload structure for these MSS110 is too different from what it is expecting so it can't really correctly parse the plug response.
Hence it keeps going offline (this is another issue because a response even if unrecognizable is still a response so my timeout disconnection handling code is faulty too)

I'm just curious as why these MSS110 are working for @nao-pon (see #6 (comment)).
It is probably something related to the firmware version since yours are a bit 'older' (1.1.28) than @nao-pon ones.

If you don't mind and would like to beta-test :) I would prefer you don't update them so we can check the new release is 'resilient' to older firmwares

@wsw70
Copy link
Contributor

wsw70 commented Apr 19, 2021

I'm just curious as why these MSS110 are working for @nao-pon

I always had the problem of the plugs being offline after being renamed. Since I could force the state by switching them off and on manually I always assumed that there is no MQTT heartbeat being sent (and never actually checked). But it may be the case you describe.

Let me know if you want to have the tests done on my MSS110.

@midnightgrue
Copy link
Author

Wow, thanks for the speedy response!

If you don't mind and would like to beta-test :) I would prefer you don't update them so we can check the new release is 'resilient' to older firmwares

I don't actually think I can upgrade them. They were an Amazon special deal from several years ago, and were probably old even then -- but they've worked fine for me (until I shifted to a local control setup, of course). If I can get these working, I'll be perfectly happy to keep using them for another few years.

Recently as part of my troubleshooting, I joined one or two of them to the Meross cloud, which indeed triggered a software update -- from 1.27 to 1.28 :)  So I can easily test those two firmwares for you.

Let me know if you need any more info!

@krahabb
Copy link
Owner

krahabb commented Apr 19, 2021

Thank you!
I've actually identified the issue in my code: since those plugs work with a 'legacy' command (my guess) I didn't care to manage that.
I'm now testing it, together with a 'shining' and working support for MSL100 bulb.
Testing the bulb of course since the MSSs are yours ;)
I hope to release this soon with increased DEBUG logging too

@krahabb
Copy link
Owner

krahabb commented Apr 19, 2021

I've pushed a bit of fixes to 'dev' but I want to wait to test the MSL120 bulb (tomorrow I guess) before releasing in public.
The dev branch contains all the fixes (at this stage) I was able to guess for your MSS110 firmware so if you are in the mood and dont want to wait you can check it out right now (or later)...else let's see if I can manage to push an official update tomorrow but as far as it goes there's always something getting wrong between now and the release
I've managed to decode a legacy message for switches and improved the 'availability' detection code.
Also, there is way mooore logging in debug so we can have a better clue at the actual messages exchanged in case
Good night!

@midnightgrue
Copy link
Author

Again, thank you for responding so quickly! I'm always blown away when a developer just waves a hand and fixes problems like this literally overnight :)

I just quickly installed your dev branch code, and I can confirm it sort of works for my MSS110s running firmware 1.28 and 1.27. In both cases, I'm able to add the switch, rename it, and toggle it on and off (yay!). However, when I open the device in HA, it seems to be flipping itself back and forth between an unavailable status and reporting the actual switch state, about every ninety seconds. Here's the output produced by your newly verbose debug log:

2021-04-19 16:31:31 INFO (MainThread) [homeassistant.setup] Setting up meross_lan
2021-04-19 16:31:31 INFO (MainThread) [homeassistant.setup] Setup of domain meross_lan took 0.0 seconds
2021-04-19 16:31:31 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry entry_id = 21102be8f7f719dfec7f4a09d1585e21
2021-04-19 16:32:05 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-19 16:32:05 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:32:05 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(GETACK) namespace:(Appliance.System.All)
2021-04-19 16:32:05 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.Ability)
2021-04-19 16:32:06 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(GETACK) namespace:(Appliance.System.Ability)
2021-04-19 16:32:12 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry entry_id = 38c4b4541d8319d6bc5e4f7b4cd67e7b
2021-04-19 16:32:12 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712126291560325130734298f107d35
2021-04-19 16:32:12 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712126291560325130734298f107d35) init
2021-04-19 16:32:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:32:12 INFO (MainThread) [homeassistant.components.switch] Setting up switch.meross_lan
2021-04-19 16:32:12 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712126291560325130734298f107d35 - platform = switch
2021-04-19 16:32:12 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new switch.meross_lan entity: switch.meross_lan_1712126291560325130734298f107d35_0
2021-04-19 16:32:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(GETACK) namespace:(Appliance.System.All)
2021-04-19 16:32:12 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712126291560325130734298f107d35) back online!
2021-04-19 16:32:28 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-19 16:32:28 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-19 16:32:28 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-19 16:32:31 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-19 16:32:31 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-19 16:32:32 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-19 16:32:37 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-19 16:32:37 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-19 16:32:39 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-19 16:32:42 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:33:11 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(PUSH) namespace:(Appliance.System.Report)
2021-04-19 16:33:11 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:33:12 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:33:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.Report)
2021-04-19 16:33:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-19 16:33:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-19 16:33:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.Ability)
2021-04-19 16:33:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.Ability)
2021-04-19 16:33:21 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry entry_id = 407e74a74b5be114c4bfb0770e9fedbb
2021-04-19 16:33:21 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712215696074825131434298f10c809
2021-04-19 16:33:21 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) init
2021-04-19 16:33:21 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:33:21 INFO (MainThread) [homeassistant.components.switch] Setting up switch.meross_lan
2021-04-19 16:33:21 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712215696074825131434298f10c809 - platform = switch
2021-04-19 16:33:21 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new switch.meross_lan entity: switch.meross_lan_1712215696074825131434298f10c809_0
2021-04-19 16:33:21 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-19 16:33:21 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) back online!
2021-04-19 16:33:34 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-19 16:33:34 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-19 16:33:35 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-19 16:33:37 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-19 16:33:37 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-19 16:33:38 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-19 16:33:42 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:33:42 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712126291560325130734298f107d35) going offline!
2021-04-19 16:33:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:34:12 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:34:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:34:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.Report)
2021-04-19 16:34:42 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:34:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:34:42 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) going offline!
2021-04-19 16:34:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:34:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-19 16:34:42 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) back online!
2021-04-19 16:35:12 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:35:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:35:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.Report)
2021-04-19 16:35:42 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:35:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:35:42 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) going offline!
2021-04-19 16:35:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:35:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-19 16:35:42 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) back online!
2021-04-19 16:36:12 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:36:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:36:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.Report)
2021-04-19 16:36:42 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:36:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:36:42 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) going offline!
2021-04-19 16:36:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:36:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-19 16:36:42 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) back online!
2021-04-19 16:37:12 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:37:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:37:42 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:37:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:37:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.Report)
2021-04-19 16:38:12 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:38:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:38:12 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) going offline!
2021-04-19 16:38:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:38:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-19 16:38:12 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) back online!
2021-04-19 16:38:42 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:38:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:38:54 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-19 16:38:54 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-19 16:38:56 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-19 16:38:56 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-19 16:38:56 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-19 16:38:57 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-19 16:39:12 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:39:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:39:42 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:39:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:39:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.Report)
2021-04-19 16:39:57 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-19 16:39:57 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-19 16:39:57 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-19 16:39:59 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-19 16:39:59 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-19 16:40:00 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-19 16:40:12 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:40:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:40:42 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:40:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:40:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.Report)
2021-04-19 16:41:12 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:41:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:41:12 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) going offline!
2021-04-19 16:41:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:41:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-19 16:41:12 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) back online!
2021-04-19 16:41:42 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:41:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:42:12 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:42:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:42:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.Report)
2021-04-19 16:42:42 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:42:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:42:42 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) going offline!
2021-04-19 16:42:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:42:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-19 16:42:42 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) back online!
2021-04-19 16:43:12 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:43:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:43:42 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:43:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:43:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.Report)
2021-04-19 16:44:01 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(PUSH) namespace:(Appliance.System.Report)
2021-04-19 16:44:01 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712126291560325130734298f107d35) back online!
2021-04-19 16:44:01 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:44:01 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(GETACK) namespace:(Appliance.System.All)
2021-04-19 16:44:12 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:44:12 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) going offline!
2021-04-19 16:44:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:44:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-19 16:44:12 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) back online!
2021-04-19 16:44:30 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-19 16:44:30 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-19 16:44:31 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-19 16:44:42 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:45:12 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:45:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.Report)
2021-04-19 16:45:12 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.Report)
2021-04-19 16:45:42 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:45:42 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712126291560325130734298f107d35) going offline!
2021-04-19 16:45:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:45:42 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) going offline!
2021-04-19 16:45:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-19 16:45:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-19 16:45:42 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) back online!
2021-04-19 16:45:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(GETACK) namespace:(Appliance.System.All)
2021-04-19 16:45:42 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712126291560325130734298f107d35) back online!
2021-04-19 16:46:12 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:46:42 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-19 16:46:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.Report)
2021-04-19 16:46:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.Report)

Here's what the swtich looks like in the lovelace info pane:

image

As I said, I'm not too familiar with MQTT, but it doesn't seem like this is normal behavior? If it is, well, I guess I'll have to turn the debug logging off to save my poor log files :) But this is definitely progress.

I very much appreciate your help! 

@krahabb
Copy link
Owner

krahabb commented Apr 20, 2021

Shame on me!
I've added a new request to periodically check for device availability (which works like an heartbeat) but I didn't check that was supported, so in the end, the plug was not responding to this new heartbeat, neither it was replying with a NACK wich new devices do!
Btw, there's a quick fix (removed the heartbeat) in dev, meantime I'll think to a possibly smarter behaviour overall but, right now, you can check if it works rightaway

Thank you

@midnightgrue
Copy link
Author

I am very happy to report that the updated code works wonderfully! Full functionality, easy integration, even a functioning heartbeat that doesn't slow down my poor little database with gazillions of state changes ;) Just for your own confirmation, here's my debug log from a few days ago showing things ticking along with two MSS100s, one with firmware 1.27 and the other with 1.28:

2021-04-21 09:02:09 INFO (MainThread) [homeassistant.setup] Setting up meross_lan
2021-04-21 09:02:09 INFO (MainThread) [homeassistant.setup] Setup of domain meross_lan took 0.0 seconds
2021-04-21 09:02:09 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry entry_id = babfeec0902e924c6e75347b4f130274
2021-04-21 09:02:29 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-21 09:02:29 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-21 09:02:29 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-21 09:02:29 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.Ability)
2021-04-21 09:02:29 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.Ability)
2021-04-21 09:02:33 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry entry_id = 6c6d1811f9b343b8e16504ecae0005f2
2021-04-21 09:02:33 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712215696074825131434298f10c809
2021-04-21 09:02:33 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) init
2021-04-21 09:02:33 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-21 09:02:33 INFO (MainThread) [homeassistant.components.switch] Setting up switch.meross_lan
2021-04-21 09:02:33 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712215696074825131434298f10c809 - platform = switch
2021-04-21 09:02:33 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new switch.meross_lan entity: switch.meross_lan_1712215696074825131434298f10c809_0
2021-04-21 09:02:33 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-21 09:02:33 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712215696074825131434298f10c809) back online!
2021-04-21 09:02:57 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-21 09:02:57 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-21 09:02:57 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-21 09:03:00 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-21 09:03:00 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-21 09:03:01 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-21 09:03:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:03:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:04:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:04:21 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-21 09:04:21 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-21 09:04:21 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(GETACK) namespace:(Appliance.System.All)
2021-04-21 09:04:21 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.Ability)
2021-04-21 09:04:21 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(GETACK) namespace:(Appliance.System.Ability)
2021-04-21 09:04:29 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry entry_id = b9ce6682094a37a32ddf999cbfa4b580
2021-04-21 09:04:29 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712126291560325130734298f107d35
2021-04-21 09:04:29 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712126291560325130734298f107d35) init
2021-04-21 09:04:29 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-21 09:04:29 INFO (MainThread) [homeassistant.components.switch] Setting up switch.meross_lan
2021-04-21 09:04:29 DEBUG (MainThread) [custom_components.meross_lan] async_setup_entry device_id = 1712126291560325130734298f107d35 - platform = switch
2021-04-21 09:04:29 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new switch.meross_lan entity: switch.meross_lan_1712126291560325130734298f107d35_0
2021-04-21 09:04:29 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(GETACK) namespace:(Appliance.System.All)
2021-04-21 09:04:29 DEBUG (MainThread) [custom_components.meross_lan] MerossDevice(1712126291560325130734298f107d35) back online!
2021-04-21 09:04:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:04:40 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-21 09:04:40 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-21 09:04:42 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-21 09:05:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:05:15 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-21 09:05:15 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-21 09:05:17 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-21 09:05:17 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-21 09:05:17 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-21 09:05:18 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-21 09:05:18 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-21 09:05:18 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-21 09:05:19 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-21 09:05:20 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(SET) namespace:(Appliance.Control.Toggle)
2021-04-21 09:05:20 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(SETACK) namespace:(Appliance.Control.Toggle)
2021-04-21 09:05:21 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(PUSH) namespace:(Appliance.Control.Toggle)
2021-04-21 09:05:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:06:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:06:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:07:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:07:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:08:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:08:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:09:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:09:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:10:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:10:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:10:33 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-21 09:10:33 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-21 09:10:33 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-21 09:10:33 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(GETACK) namespace:(Appliance.System.All)
2021-04-21 09:11:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:11:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:12:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:12:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:13:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:13:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:14:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:14:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:15:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:15:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:16:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:16:03 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-21 09:16:03 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-21 09:16:03 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-21 09:16:03 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(GETACK) namespace:(Appliance.System.All)
2021-04-21 09:16:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:17:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:17:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:18:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:18:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:19:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:19:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:20:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:20:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:21:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:21:03 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-21 09:21:03 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-21 09:21:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:21:33 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-21 09:21:33 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(GETACK) namespace:(Appliance.System.All)
2021-04-21 09:22:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:22:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:23:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:23:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:24:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:24:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:25:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:25:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:26:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:26:33 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds
2021-04-21 09:26:33 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712215696074825131434298f10c809) method:(GET) namespace:(Appliance.System.All)
2021-04-21 09:26:33 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT SEND device_id:(1712126291560325130734298f107d35) method:(GET) namespace:(Appliance.System.All)
2021-04-21 09:26:33 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712215696074825131434298f10c809) method:(GETACK) namespace:(Appliance.System.All)
2021-04-21 09:26:33 DEBUG (MainThread) [custom_components.meross_lan] MerossApi: MQTT RECV device_id:(1712126291560325130734298f107d35) method:(GETACK) namespace:(Appliance.System.All)
2021-04-21 09:27:03 DEBUG (MainThread) [custom_components.meross_lan] Finished fetching meross_lan data in 0.000 seconds

Thank you SO much for your work on this. I now have six more locally controlled smart plugs to work with -- and they were the last holdouts, too, so I am now officially free of dodgy cloud services. I'll close the issue. Thanks again!

@krahabb
Copy link
Owner

krahabb commented Apr 23, 2021

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants