-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] actions not processed in the right way #491
Comments
Hi @Bascht74, Sorry you are experiencing this issue. Although this is a bug, it is "expected" since behind the scenes it uses event queues to handle these events. Knowing that both actions were almost at the same time, the scheduler took the release first before the hold. For fixing this, I could deliberately make that release actions cannot be executed after X milliseconds have passed, but that would compromise the performance for the most use cases where In the meantime, you could use schalter_eg_wohnzimmer_deckenfluter_controller:
module: controllerx
class: MFKZQ01LMLightController
controller: Schalter_EG_Wohnzimmer_Deckenfluter
integration:
name: z2m
listen_to: mqtt
light: light.lampe_eg_wohnzimmer_deckenfluter # shelly light
automatic_steps: 50
delay: 50
action_delay:
brightness_stop: 0.1
actions:
- brightness_move_down
- brightness_move_up
- brightness_stop
- toggle
- brightness_step_up # light@window
- brightness_step_down # light@window
mapping:
toggle: toggle
brightness_stop: release
brightness_move_down:
action: hold
attribute: brightness
direction: down
mode: stop
brightness_move_up:
action: hold
attribute: brightness
direction: up
mode: stop
brightness_step_up:
service: light.toggle
data:
entity_id: light.lampe_eg_wohnzimmer_fenster
brightness_step_down:
service: light.toggle
data: With the new Regards, |
Hi @Bascht74 , I added the Regards, |
Great. Thank you! Looking forward to it. |
Right now ControllerX is the only possibility to get all my switches working. Don’t understand why those are not getting more love from HA Core. Glad you fill in the gap here…! |
Hi @Bascht74, I just released ControllerX v4.20.0 with the new Let me know if you have any problems with it. I will close the ticket for now. Regards, |
Hi @xaviml , I tried out the new attribute and it worked. No "jumps" anymore because the hold option never gets stopped by release. But now it seems that 100ms is too much, because if you dial slowly it will stop the next event and/or execute too much hold changes. Configuration:
Logs:
|
Thx!!! |
Bug report
Description
I added the a configuration for a light controller and slight movements (one step) up & down are processed wrong.
As you can see, I rotate the controller just one step
11:51:50.689812 --> brightness_move_up
11:51:50.694040 --> brightness_stop
ControllerX than runs a bit later:
11:51:50.695491 Running
Predefined (hold)
now11:51:50.697701 Running
Predefined (release)
nowbut then it executed @ 11:51:50.704844 a move_up till the end @11:51:50.972051 --> see log further down
So it did processed the hold, but not the fired release event...
I read the FAQ about it, but this is not true here:
Starting and stopping is fired and in the right order. Stop event is after start event...
Network is not overloaded. Every command is processed, server handled the request.
Controller is right next to the coordinator. Server is an NUC I5, so enough power...
It does seem that controllerX needed a bit of time to get the automatisation started and then the release is not queued in a working way or fired after the automatisation started (maybe before).
Additional information
AppDaemon app configuration
Logs
Additional Context
If two events are fired close by for the same device they should be executed in the right order so that they can be processed.
Thx for ControllerX, other devices work very well!
The text was updated successfully, but these errors were encountered: