That is very kind of you. I have a mqtt based cover (Shelly 2.5 with mqtt enabled). I can open it, close it and set exact position. Actually I have two of them close together, each on own Shelly 2.5 relay. I will call them left and right cover. My final goal is to manage them with this E1810 from Ikea.
Left Cover:
Pressing up to move left cover up until I release.
Pressing down to move left cover down until release.
Single up click to move left cover it all the way up.
Single down click to move left cover all the way down
Right Cover:
Pressing left to move right cover up until I release.
Pressing right to move right cover down until release.
Single left click to move right cover it all the way up.
Single right click to move right cover all the way down
The sensor.your_e1810_controller_action is the sensor that the controller exposes in HA
The cover.your_{left, right}_cover are the covers that are integrated from HA. If you do not have them integrated in HA, I would recommend you doing so. However, if you do not want to integrate them with HA, then you will need to include in the configuration the calls to the MQTT throught the mqtt.publish call service from HA.
The toggle_open and toggle_close will open/close the cover if itās not moving, and stop if it is moving. This way you have a way of stopping in case of wrongly pressing. If you have more actions you want to do with the controller you have the middle button as you said, and also multiple clicks (a feature from ControllerX), so your possibilities are endless.
Hi all,
Iām using the controllerX addon as the only script in Appdaemon. Iām experiencing high CPU usage from Appdaemon on my RPi 4. It runs at 10% load from the Appdaemon at all times.
Has anyone else experienced similar loads?
I have a RPi 4 as well and the total CPU load is below 10%, and the add-on CPU usage is below 4%.
I would recommend you the following actions:
Remove the configuration, restart the addon and see if the CPU usage goes down.
Set production mode to ātrueā for AppDaemon in the appdaemon.yaml. See here. This will stop checking for changes in the configuration, so you will need to restart for changes.
How many ControllerX configuration (AppDaemon apps) you have running?
I already did the first check before I wrote the post. That did not fix the issue. However, setting the production mode flag seems to do the trick. Appdaemon is down to ~1 % now, which seems more resoanable.
Iāve digged into the source code in order to improve the latency of my Hue Dimmer switch for brightness up/down. Iāve noticed there was a slight delay between the time I hold press the brightness button and the light changes. It seems it was due to the event configuration that reacts to the release event instead of the click event for the up/down buttons. Therefore, here is my configuration :
I donāt know why you decided to react to the release event instead of the click? Maybe itās to prevent to trigger the click AND the hold actions if they are different. In my configuration, these actions are the same so Iād rather get rid of this latency.
Anyway, the more I read your code, the more I think that itās well designed, so congratulations!
This is interesting, are you saying that you changed XXX2 events for XXX0 ones? And by doing so, you got the controller still working the same, but it improved the latency problem you were having?
I initially chose XXX2 click release because I think the XXX0 is also released when holding (XXX1), isnāt this correct?
I do have a Hue Dimmer Switch integrated with deCONZ and I did not notice of this latency, bit I will do some tests with it, and see if I can see any differences.
Finally, if you prefer the XXX0 events than XXX2, I would recommend you to change it through YAML since if you upgrade ControllerX you will lose all your changes. You can use the mapping or merge_mapping for this.
Also, not sure how this solved your problem since the latency problem is only when you hold the button to change the brightness. How does your configuration look like? Does it contain any multiclickable action?
I initially chose XXX2 click release because I think the XXX0 is also released when holding (XXX1), isnāt this correct?
That is correct. The problem is that XXX2 is fired something like 1s after the click (XXX0) which introduces a slight delay before the smoothing takes place.
Iāve modified directly the source code because remapping requires some boilerplate that needs to be copy/pasted all over the place. Maybe thereās room for a new parameter that will specify if we want to react to click instead of release events, but if Iām the only guy interested in thereās no need
I understand, and it totally makes sense. Does the XXX0 gets fired with XXX1 actions? If not, I will change the mapping.
You could also leverage YAML anchors for this if you are using AppDaemon higher or equal than 4.0.6 (see here), so you do not have to copy the mapping over an over for each configuration:
Yes, the XXX0 gets fired with XXX1 actions. Therefore, be careful if you switch to XXX0 in order to start the brightness up process: it means we canāt have different actions bound to click and hold events, they will have to be the same - which is totally ok for me
I got another question: is that possible to cycle through xy color by click on the I button instead of holding it? Workflow would be:
Click on I
if lights are off: turn on
else: go to the next xy color
I donāt like holding that I button for long as it starts to show the red led on my dimmer switch, meaning thereās a ZigBee problem (probably flood). Iād rather get it working as with my hue bridge: cycling through clicks.
mmmh I seeā¦ then I will not do that change in the default mapping. Thank you for the input!
Yes, the default mapping uses the click to turn on only, so you could leverage constrain_input_boolean to define different behaviour depending on the light state:
However, if this is too cumbersome for you, you could use multiple clicks and reduce it to one app. Then, you could define double click in āIā and āOā for color click changes:
Since today I am owning an Aqara Opple button with six buttons.
The first thing has nothing to do with ControllerX.
After connecting it to the ConBee II and deCONZ it took a while to let the double and triple events working. In the first five minutes only single presses are possible. But after a few presses suddenly the double, triple and hold presses are sending events. Does that happen to someone else here?
I found a few little errors in the documentation for the button:
" * 1005 ā Double triple top left button"
I think that has to be:
" * 1005 ā Triple top left button"
This is also wrong for the other triple presses.
It is also wrong for ZigBee2MQTT. But these are only small errors.
Is it enough to write it here or do you want to have an entry in github?
I didnāt want to open an issue as there could be something wrong with my z2m setup as Iām quite new to it. But this mapping is working perfectly fine for me!
Hereās a screenshot of the z2m logs for each buttons press/hold:
Iām trying to setup a couple of IKEA ICTCG1 rotating dimmers, but without much look. Have a I missed something from the confit below? Iām able to see ZHA events when using the Developer Console > Event listening and using the dimmer, but Iām not seeing ControllerX make any changes to the lights Iām wanting to control.