Skip to content
A Home Assistant custom-component for Meross devices, based on the work done by Alberto Geniola and Chris Hurst
Branch: master
Clone or download
Vincenzo Suraci
Latest commit dd100b8 Apr 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Readme.md Apr 22, 2019
__init__.py Update to meross_iot version 0.2.2.1 Apr 24, 2019
manifest.json Update to meross_iot version 0.2.2.1 Apr 24, 2019
sensor.py Code Beautyfied! Apr 18, 2019
switch.py Code Beautyfied! Apr 18, 2019

README.md

hassio_meross_sensor_switch

  • A Home Assistant custom-component for Meross devices, based on the work done by Alberto Geniola and Chris Hurst
  • This custom-component adds the switch and sensor capabilities of your Meross device in Home Assistant

Devices

Tested only with my mss310 and mss210 version 2.0.0 smart outlets. However, refer to Alberto Geniola for the full compatibility list.

Install

  1. Copy all the ".py" files into your "/config/custom_components/meross" folder.
  • Your configuration should look like:
config
  custom_components
    meross
      __init__.py
      sensor.py
      switch.py
  1. Remember to reboot Hassio (or Home Assistant)

Dependencies

This custom-component relies on the python meross_iot library developed by Alberto Geniola.

  • On Hassio (i.e., Home Assistant for Raspberry pi) the meross_iot framework will be downloaded automatically;
  • On other Home Assistant installations, if the dependencies fails to be loaded, install it manually.

Configuration

Add your credentials to configuration.yaml

  • username and password are mandatory
  • scan_interval is optional. It must be a positive integer number. It represents the seconds between two consecutive scans to gather new values of Meross devices' sensors and switches.
  • meross_devices_scan_interval is optional. It must be a positive integer number. It represents the seconds between two consecutive scans to update the list of available Meross devices.
meross:
  username: !secret meross_userame
  password: !secret meross_password
  scan_interval: 10
  meross_devices_scan_interval: 300

Debug

To enable debug diagnostics, add this to your configuration.yaml:

logger:
  default: WARNING
  logs:
    meross_sensor: DEBUG
    meross_switch: DEBUG
    meross_init: DEBUG
    meross_powerplug: DEBUG
You can’t perform that action at this time.