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

Aqara module name conflict with ControllerX #11

Closed dimitripb closed 2 years ago

dimitripb commented 2 years ago

When using ControllerX together with Appdaemon Aqara Motion Sensors there will be a module name conflict. ControllerX has also a module named 'aqara' and a file names aqara.py. Both apps won't work when you try to use them together. I solved this by renaming this module to aqara2. Then it works again. Maybe the source code should use a different name so this won't occur, like 'aqaramotion'.

LintHart commented 2 years ago

Just ran into this myself. Took me a couple of days to figure out until I realised ControllerX also plays with Aqara gear and they were probably cancelling each other out. Just to add, I also had to rename the file to be aqaramotion.py then update apps.yaml accordingly

wernerhp commented 2 years ago

Thanks for the workaround 👍