Code Monkey home page Code Monkey logo

hassio_meross_sensor_switch's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hassio_meross_sensor_switch's Issues

MSL120 and bulb support

I have two of these bulbs and I would love to know how I can help to get compatibility with Bulbs into this component.

Please let me know how I can help.

Import Error

Mon Apr 22 2019 08:02:42 GMT+0100 (British Summer Time)
Error loading custom_components.meross. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/loader.py", line 183, in _load_file
module = importlib.import_module(path)
File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/config/custom_components/meross/init.py", line 18, in
from meross_iot.supported_devices.power_plugs import (GenericPlug, ClientStatus)
ImportError: cannot import name 'GenericPlug' from 'meross_iot.supported_devices.power_plugs' (/config/deps/lib/python3.7/site-packages/meross_iot/supported_devices/power_plugs.py)

HA on QNAP - 'HomeAssistant' object has no attribute 'async_create_task'

Home Assistant release with the issue:
HA 0.93.2

Last working Home Assistant release (if known):
Unknown

Operating environment (Hass.io/Docker/Windows/etc.):
Qnap (Docker)

Description of problem:
After installing meross component following the developer instructions and restarting HA, I get the following error:

2019-05-30 13:18:42 DEBUG (MainThread) [meross_init] async_setup() >>> STARTED
2019-05-30 13:18:44 ERROR (MainThread) [homeassistant.setup] Error during setup of component meross
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/setup.py", line 142, in _async_setup_component
    result = await component.async_setup(hass, processed_config)
  File "/config/custom_components/meross/__init__.py", line 76, in async_setup
    hass.data[DOMAIN] = MerossPlatform(hass, config)
  File "/config/custom_components/meross/__init__.py", line 222, in __init__
    hass.async_create_task(self.async_discover_plugs())
AttributeError: 'HomeAssistant' object has no attribute 'async_create_task'
meross:
  username: !secret meross_userame
  password: !secret meross_password
  scan_interval: 10
  meross_devices_scan_interval: 900

File "/config/custom_components/meross/__init__.py", line 275, in async_discover_plugs

I'm trying to configure the plugin but I get the following error:

2019-09-22 23:55:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/meross/__init__.py", line 275, in async_discover_plugs
    meross_plugs = self._meross_manager.get_devices_by_kind(GenericPlug)
2019-09-22 23:55:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/meross/__init__.py", line 275, in async_discover_plugs
    meross_plugs = self._meross_manager.get_devices_by_kind(GenericPlug)
AttributeError: 'NoneType' object has no attribute 'get_devices_by_kind'

Any clue about what could be happening?

MSG100

I tried my MSG100 (garage door opener) and it doesn't look like it works. Here are the logs in HASSIO. Is this an issue with the merossiot library? I noticed there was a new version Alberto was hoping worked with all devices.

18120167058930261h0134298f13c495 failed to process message because: Unknown/Unsupported namespace/command: Appliance.System.Online
18120167058930261h0134298f13c495 failed to process message because: Unknown/Unsupported namespace/command: Appliance.System.Report
18120167058930261h0134298f13c495 failed to process message because: Unknown/Unsupported namespace/command: Appliance.GarageDoor.State

unable to import (i'm sure it's something small i'm missing?)

2019-05-07 20:04:22 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for meross which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experi ence issues with Home Assistant.
2019-05-07 20:04:33 ERROR (MainThread) [homeassistant.components.hassio] Package meross setup failed. Component meross unable to import
2019-05-07 20:12:13 ERROR (MainThread) [homeassistant.components.hassio] Package meross setup failed. Component meross unable to import
2019-05-07 20:17:06 ERROR (MainThread) [homeassistant.components.hassio] Package meross setup failed. Component meross unable to import

Error with mss310 (HW version 2.0.0 firmware version 2.1.5)

meross:
  username: !secret meross_email
  password: !secret meross_password
  scan_interval: 10

2019-04-09 21:57:09 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140322101615192] 'GenericPlug' object has no attribute 'device'
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/websocket_api/commands.py", line 122, in handle_call_service
connection.context(msg))
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1138, in async_call
self._execute_service(handler, service_call))
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1160, in _execute_service
await handler.func(service_call)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_component.py", line 188, in handle_service
self._platforms.values(), func, call, service_name
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 314, in entity_service_call
future.result() # pop exception if have
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 328, in _handle_service_platform_call
await getattr(entity, func)(**data)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/meross/switch.py", line 60, in turn_on
device.device.turn_on_channel(self.channel)
AttributeError: 'GenericPlug' object has no attribute 'device'
2019-04-09 21:57:10 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.sensor_values_to_file. Unknown error for call_service at pos 1:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/automation/init.py", line 380, in action
await script_obj.async_run(variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 131, in async_run
await self._handle_action(action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 210, in _handle_action
action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 299, in _async_call_service
context=context
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 88, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1138, in async_call
self._execute_service(handler, service_call))
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1160, in _execute_service
await handler.func(service_call)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/notify/init.py", line 117, in async_notify_message
await notify_service.async_send_message(**kwargs)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/file/notify.py", line 47, in send_message
with open(self.filepath, 'a') as file:
FileNotFoundError: [Errno 2] No such file or directory: '/share/history/10sec_power_reading.csv'
2019-04-09 21:57:10 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.automation_ran. Service not found for call_service at pos 2: (ServiceNotFound(...), 'Service notify.filed_automations not found')
2019-04-09 21:57:10 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.automation_ran. Service not found for call_service at pos 2: (ServiceNotFound(...), 'Service notify.filed_automations not found')
2019-04-09 21:57:19 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140322101615192] 'GenericPlug' object has no attribute 'device'
Traceback (most recent call last):

Meross switch desconect

My Meross switch disconnects throughout the day. I have to reboot the HA core to find it again and the automations to work. I can't find the logs prior to the last reboot, where are they?

MerossIot refactor breaks current compatibility

Hi @vincenzosuraci ,
thanks for your great component. I would like to inform you that the future version of the library will break some interfaces that your component currently uses. So, I'd suggest you to have a look at the brach named 0.3.X.X on MerossIot repository.
Before releasing such version I'd like to get some feedback from you about its working status and its usability.

If I may, I'd suggest you to create a dedicated branch which relies on the new version of the library so that people can still use the previous one while we are working on the new versions.

mss620 issues

Hi there,
I hope this project is still alive.
I have 2 mss425e working perfect with this addon.

Now I tried the mss620 (2-socket outdoor plug) and have the following problem: 3 switches were detected, One that switches on both, One for the left and one for the right.
Now the weird part:
After renaming one of them, the other two vanished from HA. After a restart, I saw them again, renamed another switch, and what happens is that the first switch I renamed got overwritten by this one.
To sum up, I can only create one switch, as the older ones always get overwritten.

Here some facts:
HA version: 0.96.1
Meross mss620, Firmware 2.1.6, HW Version 2.0.0

I will post a log as soon as I come back from work in the evening

Thanks,
Philipp

4 MSS310 switches. 1 works. 3 don't.

I have home assistant, mosquitto and your code in containers on a Synology NAS. I have 4 mss310 switches and home assistant auto discovers them all.

All 4 work correctly as sensors. 1 also reads the status of the switch. It is also possible to switch it on and off from ha. The other 3 always show 'off'. Switching them on has no effect.

I notice that your log reads "[Device][] Cannot read property 'channel' of undefined" each time I switch the problem switches on or off with the Meross app.

I find this quite puzzling. Have you any suggestions?

Problems installing merross add-on

Hi all,

I'm trying to install this add-on into my raspberry pi 2. (hassio v0.97.2)
I've done everything as you said but nothing happens. I mean:

  • I created /config/custom_components/meross
  • I copied all *.py files and manifest.json files (total: 4 files)
  • I changed configuration.yaml as you said....

And nothing happens. How do I know that meross_iot was downloaded?.
How do i know that all previous steps was succesfully done?.

Thanks in advance and congratulations for this project!

stability issues: tests needed for long lasting period & against network leakages

hi i am csrp,

Everything seems to work correctly, but after a while, the whole system stops responding, with the version of yesterday 04/11/2019 that unloads at 20:42:01, it did not seem to produce any failure, I can not add any log since the system is blocked.

Devices (UE)
MSS310
MSS425E
MSS425F
MSS620
MSS710

greeting, excuse my English is not my native language

MSG100

Alberto has updated the meross-iot library to include support for MSG100 (garage door opener). Do you know what needs to be done in your custom component to add this? I tried changing the manifest file to include the new library but that didn't seem to work.

MSS425E separate switches (and USB) on/off?

I'm using your custom component in HA, with latest corrections MSS310 V1.0 works with no trouble.
I have also 2 MSS425E power strips.
Is it possible to command every single switch (there are 3) and the USB, not only the full power strip on/off? I've looked in HA dev-state but these don't appear separate...
Thanks a lot!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.