Meross mss310

Hi.
I’m trying it… added component, added credentials in configuration.yaml, rebooted.
In the log I see “connected to meross cloud”, but I can’t find the device in HA entities or in MQTT devices. :frowning:

Hi guys,
new version of Meross Cloud has been released. Do you mind upgrading and report if the errors still occur?

Thanks, can you share what changed against previous release? Is MSS310R smart plug supported?

Hi, so this is what has changed:

  • new naming scheme to better support power strip with multiple switches
  • added support for smart thermostat
  • implemented UI configuration flow

The mss310 should be supported

Thanks, you mean the new MSS310R or the old MSS310? Sorry to be redundant…

Trying to update the custom component through HACS, but cannot update… it always says download not complete and if i uninstall it, then i am not able to install again. I installed manually, but HACS tells me it’s not installed !!! @ludeeus

2020-01-07 14:16:51 ERROR (MainThread) [hacs.repository.integration.albertogeniola.meross-homeassistant] Download was not complete.
2020-01-07 14:17:44 ERROR (MainThread) [hacs.repository.integration.albertogeniola.meross-homeassistant] Download was not complete.

hello everyone, I have a Meross mss310 socket I inserted it in the home assistant but I only see the calculation of the power in W and not in kWh how can I insert a sensor in kWh?

2 Likes

Dear all,
First of all, thanks for this very useful work! The installation was very simple for me, and I collect data from my two MSS310.
I am in the same situation as @Salvatore_Lentini and @rossiluis22, I would like to sum up the power consumption for a specific period to be able to draw history graph of my power consumption in kWh per day, per week, per month.
I am still new in HA and I am not sure how to achieve this.
Thanks !

I used integration then utility_meter. It works great!

Now, I am facing a Warning in my log every time I restart :
Only one configuration of Meross is allowed.

Anyone faced that before?

After latest release of the integration the meross switch disappeared from HA with this log entries:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 419, in _async_add_entity
    await entity.async_update_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 284, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
    state = self.state
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 588, in state
    return STATE_ON if self.is_on else STATE_OFF
  File "/config/custom_components/meross_cloud/switch.py", line 77, in is_on
    return self._device.get_channel_status(self._channel_id)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 153, in get_channel_status
    return self.get_status(c)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 132, in get_status
    return self._state.get(c)

Any hints?
Still running 0.104.3

Hi.
After upgrading mss310 firmware to 3.1.13 version, the device went offline in HA.
Not immediately, it worked for a couple of days, until I updated MerossIoT component and restarted HA.
I tried removing it from the integration, then I removed the whole integration, reboot, readded the integration, but it finds only my mss425e, it can’t see my mss310.
Can you please check it?

Since yesterday i get this error about mss310 smart plug:

2020-04-19 10:58:47 ERROR (MainThread) [homeassistant.config] Invalid config for [meross_cloud]: expected int for dictionary value @ data['meross_cloud']['username']. Got '[email protected]'. (See /config/configuration.yaml, line 899). Please check the docs at https://www.home-assistant.io/components/meross_cloud

I just updated to the latest release of the integration and running HA 0.108.6

Yep. Something broke between HA and our friends at Meross. Could be related to the recent firmware update.

NameError: name 'cloud_io' is not defined

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/cover/__init__.py", line 148, in async_setup_entry
    return await hass.data[DOMAIN].async_setup_entry(entry)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 154, in async_setup_entry
    platform_type,
  File "/usr/src/homeassistant/homeassistant/setup.py", line 244, in async_prepare_setup_platform
    platform = integration.get_platform(domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 277, in get_platform
    f"{self.pkg_path}.{platform_name}"
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/config/custom_components/meross_cloud/cover.py", line 18, in <module>
    class OpenGarageCover(CoverDevice):
  File "/config/custom_components/meross_cloud/cover.py", line 41, in OpenGarageCover
    @cloud_io()
NameError: name 'cloud_io' is not defined

fyi, I get the same error so currently I cannot control my Meross switch.

Temporary Solution?: Revert to v. 20200408.1. This worked for me. Let me know if others have success.

Hi.
Now MSG100 started working again, but here’s a problem… now it has 4 states (maybe they was there before too, but I did not notice them):

  • Opening
  • Open
  • Closing
  • Closed

The problem is that often the status gets stuck in Opening or Closing, even if it’s fully opened or closed, so my automations don’t work correctly.

For example, this is the actual situation, the door is closed since yesterday evening at 19:41, but it keeps on staying in “closing” state:
image

After installing latest release got these errors:

2020-04-29 14:39:25 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry [email protected] for meross_cloud
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
    hass, self
  File "/config/custom_components/meross_cloud/__init__.py", line 80, in async_setup_entry
    issued_on = datetime.fromisoformat(str_creds.get('issued_on'))
AttributeError: 'NoneType' object has no attribute 'get'

I’m getting an issue where my Garage Door says it’s Unavailable within HA, yet in the Meross App it’s fine. Any suggestions on what could be causing that?

Just a general question, but is the meross app required prior to integration with HA? Is it possible to integrate with HA using Alberto’s work without first prior having set up the device, whether it is garage door or light bulb, etc.

Bonjour, débutant en domotique et sur HA, je n’arrive pas à avoir les KWH avec les prises 310 de Meross.
Quelle est la solution ?