ControllerX. Bring full functionality to light and media player controllers

You just shared your token and you home assistant url, that’s really something you should not make public! Immediately delete your access token and generate a new one!

2 Likes

Your appdaemon.yaml configuration is invalid. Below is an excerpt from my appdaemon.yaml file as a reference.

secrets: /conf/secrets.yaml
logs:
  main_log:
    filename: /conf/logs/appdaemon.log
  error_log:
    filename: /conf/logs/error.log
  access_log:
    filename: /conf/logs/access.log
appdaemon:
  time_zone: 'Europe/Zurich'
  latitude: !secret latitude
  longitude: !secret longitude
  elevation: !secret elevation
  missing_app_warnings: 1
  production_mode: False
  app_dir: /conf/apps
  plugins:
    HASS:
      type: hass
      namespace: hass
      token: !secret appdaemon_token
      ha_url: http://192.168.0.5:8123
http:
  url: http://192.168.0.5:5050
api:
admin:

1 Like

For you information, I flagged your post to get it removed. Should this ever happen again, ask a moderator to remove your post as soon as possible and change all the information that got leaked immediately.

1 Like

your appdaemon.yaml file appears to have fixed my issues.

what does this mean in http://192.168.0.21:5050

tv_sonos_speaker: Entity sensor.ikea_sound_action not found in namespace default

Basically HAdashbaord appears and everything looks good however the controller fails.

I checked HA and it works in there

apps.yaml

tv_sonos_speaker:
  module: controllerx
  class: E1744MediaPlayerController
  sensor: sensor.ikea_sound_action
  media_player: media_player.tv_sonos

Either remove the line

namespace: hass

from the appdaemon.yaml or change it to

namespace: default

OK now it is kind of working now and I suspect the issue might be Sonos and the controllerX code

Not working
Volume not working I expect Sonos need to see volume as 0.99 and controllerX uses 99
Play

Working
Skip track
Previous track
Pause

Do you use “debounce” on th z2m config? I have noticed that if debounce option is on?

The code itself just calles the service media_player.volume_up from HA. Does this work from HA?

1 Like

haha yes removing debounce fixed it

Thanks everyone for all help much it was appreciated! You guys really are the best!!!

Now on to getting HCAS loaded and working.

2 Likes

You are welcome. I am glad it worked. I am working now in some changes that will require to change your configuration for ControllerX a bit. I will keep you updated in this thread.

1 Like

My only issue is the number of rotions needed to increase to 50% is a lot

That is becauae of the default delay which is 1s, you can add a new entry below media_player

delay: 500

Maybe it will work better for you, you can tweak it so it works best for you.

where can I find the delay: ?

tv_sonos_speaker:
  module: controllerx
  class: E1744MediaPlayerController
  sensor: sensor.ikea_sound_action
  media_player: media_player.tv_sonos
  delay: 500

Sorry, here is the context for the delay option.

1 Like

for more context what is the default delay?

You can find the delays depending on the used class in here: https://github.com/xaviml/controllerx/wiki/Supported-controllers

For the E1744MediaPlayerController the default is 1000. Did the delay 500 do something?

lower the number to say 200 makes the rotation jump in 4% at a time instead of 2%

Hello, I am trying to set this up but I have the feeling that I am missing something. Got HA in docker with HACS with AppDaemon. I installed ControllerX and so far so good. Rebooted the whole thing.

I then added this to my configuration:

livingroom_controller:
module: controllerx
class: E1810Controller
sensor: sensor.tradfri_remote_control_action
light: group.inlights

livingroom_dimmer:
module: controllerx
class: ICTCG1Controller
sensor: sensor.tradfri_wireless_dimmer_action
light: light.572060402cf4321abbee

sensor.tradfri_remote_control and sensor.tradfri_wireless_dimmer are the name that I got from the IKEA TradFri integration. Just added _action after that.

And this here that I am not sure I am doing this correctly. Shoud I remove the integration and set up a Zigbee2MQTT integration and therefore I need to install someting like this https://www.zigbee2mqtt.io/ ?

I am confused because the documentation says it does not use Z2M but then I read you can get the name of the entities in Z2M integration.

So far I get this on startup : Setup failed for livingroom_controller: Integration not found.

I then added in my configuration with the home that it would discover devices but no luck.

mqtt:
discovery: true
discovery_prefix: homeassistant

What I am trying to get is event from the buttons so I can trigger actions in automation.

Can you point me in the right direction ?
What should be done on mqtt side ?

Thanks !

What I don’t get is zigbee2mqtt installation send you there this page sends you back to the first one. I understand the best way to get mqtt in HA is to set the mqtt configuration with discovery set to true, but I have no idea how you actually install z2m to be able to do this In your Zigbee2mqtt configuration.yaml set homeassistant: true

All searches send me to HASSIO only :frowning:

Every time the volume up/down service from HA is called it changes 1% only?

In order to use the devices you need the device to be integrated either with deCONZ or Zigbee2mqtt, do you have any of this two integrations?