Code Monkey home page Code Monkey logo

Comments (7)

albertogeniola avatar albertogeniola commented on August 17, 2024

Hi @troykelly,

Could you tell me what's inside the custom_components/meross_cloud folder? It seems that common.py file is missing

from meross-homeassistant.

troykelly avatar troykelly commented on August 17, 2024

It looks like it's there.
Screen Shot 2019-06-14 at 3 52 01 pm

common.py (snippet)

# Constants
DOMAIN = 'meross_cloud'
MANAGER = 'manager'
ENROLLED_DEVICES = 'enrolled_devices'
MEROSS_MANAGER = "%s.%s" % (DOMAIN, MANAGER)
.
.
.
def notify_error(hass, notification_id, title, message):
    hass.async_create_task(
        hass.services.async_call(domain='persistent_notification', service='create', service_data={
                                           'title': title,
                                           'message': message,
                                           'notification_id': "%s.%s" % (DOMAIN, notification_id)})
    )

from meross-homeassistant.

albertogeniola avatar albertogeniola commented on August 17, 2024

Ok. I did not have enough time to prepare a release on GitHub and by cloning the repository you pulled down more stuff than you need. This might be interfering with homeassistant.
Could you please remove the following files from the meross_cloud folder and reboot hassio?

.git
_pycache__
.gitignore
README.md

from meross-homeassistant.

troykelly avatar troykelly commented on August 17, 2024

I've never seen extra files causing an issue, __pycache__ perhaps might be an exception.
I've removed the files - still having the same issue.

core-ssh:/config/custom_components/meross_cloud# ls -al
total 44
drwxr-xr-x    3 root     root          4096 Jun 14 18:15 .
drwxr-xr-x    8 root     root          4096 Jun 14 10:31 ..
-rw-r--r--    1 root     root          6448 Jun 14 10:31 __init__.py
-rw-r--r--    1 root     root          1203 Jun 14 10:31 common.py
-rw-r--r--    1 root     root          3185 Jun 14 10:31 cover.py
drwxr-xr-x    2 root     root          4096 Jun 14 10:31 extra
-rw-r--r--    1 root     root          3475 Jun 14 10:31 light.py
-rw-r--r--    1 root     root           239 Jun 14 10:31 manifest.json
-rw-r--r--    1 root     root          3073 Jun 14 10:31 sensor.py
-rw-r--r--    1 root     root          2548 Jun 14 10:31 switch.py
core-ssh:/config/custom_components/meross_cloud# hassio ha restart &
[1] 152
core-ssh:/config/custom_components/meross_cloud# tail -f /config/home-assistant.log | grep -i meross
2019-06-14 18:16:09 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for meross_cloud which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-06-14 18:16:10 DEBUG (MainThread) [homeassistant.bootstrap] Setting up {'conversation', 'tuya', 'twilio', 'websocket_api', 'history', 'media_player', 'config', 'person', 'mqtt', 'sun', 'input_boolean', 'switch', 'hue', 'cloud', 'media_extractor', 'lifx', 'logbook', 'hassio', 'group', 'http', 'zeroconf', 'stream', 'sensor', 'googlehome', 'system_health', 'climate', 'device_tracker', 'zone', 'updater', 'openuv', 'input_number', 'esphome', 'panel_custom', 'google', 'automation', 'tts', 'shell_command', 'discovery', 'auth', 'scene', 'lovelace', 'frontend', 'google_assistant', 'binary_sensor', 'onboarding', 'influxdb', 'light', 'api', 'lametric', 'meross_cloud', 'weather', 'vera', 'unifi', 'notify', 'map', 'custom_updater', 'script', 'webhook', 'rest_command', 'cover', 'lock', 'input_select', 'cast'}
2019-06-14 18:16:12 ERROR (MainThread) [homeassistant.config] Unable to import meross_cloud: No module named 'common'
2019-06-14 18:16:12 ERROR (MainThread) [homeassistant.setup] Setup failed for meross_cloud: Invalid config.

from meross-homeassistant.

albertogeniola avatar albertogeniola commented on August 17, 2024

Ok, I will look at it as soon as I get home. Keep in touch!

from meross-homeassistant.

albertogeniola avatar albertogeniola commented on August 17, 2024

Alright, there were some bad imports to be refactored. Unfortunately on my debug environment they were working as expected (different paths). Could you please pull the latest version and try again?

from meross-homeassistant.

albertogeniola avatar albertogeniola commented on August 17, 2024

Closing since the ticket opener confirmed it's now working as expected.

from meross-homeassistant.

Related Issues (20)

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.