Those warnings are normal, they are showing because those files do not have any AppDaemon applications. These are the logs you should see:
2020-10-05 16:26:04.604729 INFO AppDaemon: Initializing app livingroom using class E1810Controller from module controllerx
2020-10-05 16:26:04.609482 INFO AppDaemon: Initializing app livingroom2 using class Controller from module controllerx
2020-10-05 16:26:04.614091 INFO AppDaemon: Initializing app livingroom3 using class E1810Controller from module controllerx
2020-10-05 16:26:04.618385 INFO AppDaemon: Initializing app bedroom using class HueDimmerController from module controllerx
2020-10-05 16:26:04.621405 INFO AppDaemon: Initializing app livingroom_speakers using class E1744MediaPlayerController from module controllerx
2020-10-05 16:26:04.624743 INFO AppDaemon: Initializing app livingroom_speakers_release using class MediaPlayerController from module controllerx
2020-10-05 16:26:04.627783 INFO AppDaemon: Initializing app home_alarm using class HomeAlarm from module home_alarm
2020-10-05 16:26:04.838252 INFO livingroom: ๐ฎ ControllerX v4.0.0b3
2020-10-05 16:26:04.852263 INFO livingroom2: ๐ฎ ControllerX v4.0.0b3
2020-10-05 16:26:04.859401 INFO livingroom3: ๐ฎ ControllerX v4.0.0b3
2020-10-05 16:26:04.867477 INFO bedroom: ๐ฎ ControllerX v4.0.0b3
2020-10-05 16:26:04.881207 DEBUG livingroom3: Calling listen_event for livingroom3
2020-10-05 16:26:04.887145 INFO livingroom_speakers: ๐ฎ ControllerX v4.0.0b3
2020-10-05 16:26:04.898242 INFO livingroom_speakers_release: ๐ฎ ControllerX v4.0.0b3
Was there anything during the setup that was unclear to you or missing?
No setting ControllerX up was pretty straight forward but I couldnโt find any explanation
on excluded_actions and mapping but maybe I was looking at the wrong place.
Thank you for the feedback. I see you had more problems to figure out your specific needs than just setting it up with a basic configuration. I will try to work more on documentation to help others find what they need.
In case you are interested to know more about those parameters, you can find:
Thanks a lot for the great work on ControllerX. I just hooked up the Symfonisk with my own speaker and it seems to be working great after tweaking the delay and steps a bit.
The only issue i currently run into is that it sometimes misses the brightness_stop event. Because of this the volume keeps going up or down until I rotate the Symfonisk again.
Here is part of my AppDaemon log where you can see it keeps lowering volume for 7 seconds until I rotate it the other way and it goes into the brightness_move_up.
appd | 2020-10-06 00:02:30.733208 INFO bedroom_speaker: ๐ Running `hold_volume_down` now
appd | 2020-10-06 00:02:30.734986 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:30.735980 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:30.736944 INFO bedroom_speaker: - volume_level: 0.63
appd | 2020-10-06 00:02:31.107357 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:31.111072 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:31.114373 INFO bedroom_speaker: - volume_level: 0.59
appd | 2020-10-06 00:02:31.616103 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:31.618225 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:31.619223 INFO bedroom_speaker: - volume_level: 0.55
appd | 2020-10-06 00:02:31.984967 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:31.988808 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:31.992441 INFO bedroom_speaker: - volume_level: 0.51
appd | 2020-10-06 00:02:32.373105 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:32.376498 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:32.379731 INFO bedroom_speaker: - volume_level: 0.47
appd | 2020-10-06 00:02:32.763127 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:32.767311 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:32.770625 INFO bedroom_speaker: - volume_level: 0.43
appd | 2020-10-06 00:02:33.146792 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:33.149085 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:33.150091 INFO bedroom_speaker: - volume_level: 0.39
appd | 2020-10-06 00:02:33.543288 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:33.544437 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:33.545404 INFO bedroom_speaker: - volume_level: 0.35
appd | 2020-10-06 00:02:33.907154 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:33.908173 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:33.909100 INFO bedroom_speaker: - volume_level: 0.31
appd | 2020-10-06 00:02:34.300382 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:34.301397 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:34.302338 INFO bedroom_speaker: - volume_level: 0.27
appd | 2020-10-06 00:02:34.689959 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:34.690964 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:34.691893 INFO bedroom_speaker: - volume_level: 0.23
appd | 2020-10-06 00:02:35.094320 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:35.095341 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:35.096274 INFO bedroom_speaker: - volume_level: 0.19
appd | 2020-10-06 00:02:35.566760 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:35.573233 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:35.576382 INFO bedroom_speaker: - volume_level: 0.15
appd | 2020-10-06 00:02:35.937144 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:35.939848 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:35.940846 INFO bedroom_speaker: - volume_level: 0.11
appd | 2020-10-06 00:02:36.331411 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:36.333286 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:36.334302 INFO bedroom_speaker: - volume_level: 0.07
appd | 2020-10-06 00:02:36.708499 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:36.711000 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:36.712006 INFO bedroom_speaker: - volume_level: 0.03
appd | 2020-10-06 00:02:37.110833 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:37.115210 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:37.118793 INFO bedroom_speaker: - volume_level: 0
appd | 2020-10-06 00:02:37.493674 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:37.496982 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:37.503428 INFO bedroom_speaker: - volume_level: 0
appd | 2020-10-06 00:02:40.637998 INFO bedroom_speaker: ๐ฎ Button event triggered: `brightness_move_up`
appd | 2020-10-06 00:02:40.639014 INFO bedroom_speaker: ๐ Running `hold_volume_up` now
appd | 2020-10-06 00:02:40.641355 INFO bedroom_speaker: ๐ค Service: media_player.volume_set
appd | 2020-10-06 00:02:40.642671 INFO bedroom_speaker: - entity_id: media_player.receiver
appd | 2020-10-06 00:02:40.643826 INFO bedroom_speaker: - volume_level: 0.04
appd | 2020-10-06 00:02:40.995786 INFO bedroom_speaker: ๐ฎ Button event triggered: `brightness_stop`
appd | 2020-10-06 00:02:40.998709 INFO bedroom_speaker: ๐ Running `release` now
Iโm not able to replicate this issue constantly, it just happens every now and then. Its hard to replicate.
Im using the latest ControllerX: v4.0.0b3
This is my apps.yaml:
This is a known issue and there is nothing I can do from the code to fix this. This controller (and the same as others) fire 2 events, one when the rotation starts and another when it stops rotating. In other controllers, this works well since there is no rotation, just a holding action. What ControllerX does for you is send periodically requests to HA via call services to update your brightness, volume, etc.
As you said this happens sometimes, and it could be because any of these reasons:
The rotation is too fast and confusing to know if it stopped or not.
The network is overloaded.
The server cannot handle the requests on time.
The controller and the light are far from the coordinator.
However, these are some actions you can take to overcome this problem and reduce the number of times that this happens:
Change the integration to listen MQTT directly, since you use Zigbee2MQTT. Read more about in here.
Play around with delay (default is 350ms) and automatic_steps (default is 10) attributes. You can read more about them in here. The lower the delay is, the more request will be make to HA. The more automatic_steps, the more steps it will take to get from min to max and vice versa.
Add more Zigbee routers to the network.
I have the same controller and I have not encountered this problem in a while by doing these points above. Obviously, if you rotate left and right fast confusing the controller, it might send a rotation start without a rotation stop and cause the problem you are experimenting some times.
Hi Xavi
This is my first try with both Appdaemon and ControllerX.
I am runing Hasio on a rp4 4+
I have Appdaemon up and runing. Can connect to url
ControllerX installed from Hacs.
My first automation aims to use an Ikea E1744 Media controller to control a Sonos Connect Amp.
Everything shows up in Appdaemon (mediaplayer and controller in the eintities list, the automation in Apps)
Callbacks are also responding to input from the controller.
So everything seems to be done right, but the mediaplayer does not respond to any input from the controller?
I am at a loss and do not have any idea what is wrong
I hope you will be able to guide my.
Kind regards Christian
If you check the logs from AppDaemon you should see and error like: KeyError: light. This is because E1810Controller is a LightController and is expecting a light attribute. If what you want is just to use those 2 actions and not the rest of the buttons, then you can use just class: Controller.
If this is not the problem, do those script call work when called from Developer Tools? And could you also share the AppDaemon logs?
I see from the logs that everything is initialized correctly. Did you also use the controller after the initialization? I do not see any logs about it. Could you add: log_level: DEBUG before module: controllerx? Then restart AppDaemon, rotate left, rotate right, press the controller and then share the logs again in here. Thanks.