xaviml / controllerx

Create controller-based automations with ease to control your home devices and scenes.
https://xaviml.github.io/controllerx/
MIT License
335 stars 70 forks source link

Cannot get ControllerX to run at all. App not detected by Appdaemon #716

Open juanrusch opened 1 year ago

juanrusch commented 1 year ago

Question

I love this project and the idea behind it. I am trying to get controllerx to work as a way to restore the behavior or my Ikea lights using a E1743 trådfri switch. I have scanned the internet for help on this, but haven't found much.

Running HA and Appdaemon in docker, with AppDaemon successfully connecting to the HA instance. But... have had no luck getting controllerx to be detected by AppDaemon, or getting anything at all to run.

AppDaemon runs, HA runs no issues, both connect to each other. Have installed ControllerX through HACS, but have also tried the manual install. No luck.

Additional information

AppDaemon app configuration


/conf # cat appdaemon.yaml
appdaemon:
  latitude: 0
  longitude: 0
  elevation: 30
  time_zone: Europe/Stockholm
  plugins:
    HASS:
      type: hass
      ha_url: http://192.168.50.200:8123
      token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3ZjczZTY5ODE4ZjI0MzgwODU5MzI4NDJkMDdlOWNiMCIsImlhdCI6MTY3NjY0MDEwNiwiZXhwIjoxOTkyMDAwMTA2fQ.7s61zpn5VqV8stxIzdhPmlcr-c8ZSSRG2Z-Xq5d6EVY
http:
  url: http://192.168.50.200:5050
admin:
api:
hadashboard:

```apps.yaml
/usr/src/app/conf/apps # cat apps.yaml
control_kitchen_backdrop:
  module: controllerx
  class: E1743Controller
  integration: zha
  controller: 84:ba:20:ff:fe:fc:e4:e9
  light: light.kitchen_backdrop_lights

Additional Context

have also tried: Chmod +x all controllerx files Restarting both HA and Appdaemon containers Putting ControllerX directly in Appdaemon container

At a complete loss here, any help would be appreciated

juanrusch commented 1 year ago

Seem to have solved it. Appdaemon had apparenltly 2 identical config folders in my install. Looking at the logs in detail, I could see it was loading app from the second path.