Meross mss310

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 ?

This plug integrates with HA, but it only displays Power in Watts. Is it possible to display the Energy, in kWh? As it does, in Meross app?

si, devi creare un sensore in HA che trasforma i w in kwh

1 Like

Puoi darmi un esempio su come creare questo sensore?

Certo, scusami ho letto soltanto adesso il tuo messaggio:

1 Like

Grazie, una domanda:
questo sensore traccia il consumo attuale e non quello generale dello switch, giusto?
Se volessi avere un sensore del consumo totale come potrei fare?

Con questo trasformi da w a kwh ed è un sensore totale di kwh

this might be what youre looking for

can we read the weekly, monthly and yearly consumption? That would add lots of info to the integration. The meross app shows these values.
Thanks