wernerhp / ha.appdaemon.aqara_motion_sensors

An AppDaemon app to reset Xiaomi Aqara motion sensors after a given timeout.
MIT License
40 stars 5 forks source link

Trouble renaming module to work alongisde ControllerX #13

Open wafliron opened 1 year ago

wafliron commented 1 year ago

I'm going to apologise in advance for this, because I feel like I must be missing something obvious - but I can't figure it out :-/

I'm trying to setup this module. I already use ControllerX, so I need to rename it (as per install guide and https://github.com/wernerhp/ha.appdaemon.aqara_motion_sensors/issues/11) to avoid module naming conflicts.

I've tried every combination of:

And I'm still getting "WARNING AppDaemon: Unable to find module aqaramotion - initialize() skipped" errors in the AppDaemon log.

Current config looks like:

aqaramotion:
  module: aqaramotion
  class: Aqara
  timeout: 5
  motion_sensors:
    - binary_sensor.some_sensor_i_have

With aqara.py renamed to aqaramotion.py and "MODULE = 'aqara'" changed to "MODULE = 'aqaramotion'" in its contents.

Suggestions? And thanks.

wernerhp commented 1 year ago

Perhaps @dimitripb can advise?

dimitripb commented 1 year ago

As far I can remember I only renamed the module name and did not rename the file name. I am not currently using this app so I cannot check anymore. I will search my backups within a few days. Maybe I have still a config from 2021

wernerhp commented 1 year ago

This is what I would imagine.

aqara.py image apps.yaml image