-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Changing brightness does not put EC in blocked state (3.2 broken) #174
Comments
Can you supply a sample entity that reproduces this problem? |
I just took one of your most basic configurations, changed the entity names and tried using that. Hopefully the comments don't create an issue.
|
I think the problem is L308 which has a commented transition which is called on L649. I uncommented this and added the fix onto the |
Thanks for the attempt, but it does not seem to be working. It just immediately went into a blocked state without me changing brightness or anything. edit: It looks to behave just like the "stay on" functionality.
|
Can you provide the debug log? |
turning on debug now. What state does your light show when it is first turned on, but before it is manually adjusted? does it show blocked or active/timer? |
I managed to reproduce the issue and of course ran into the problem discussed in #98 once again. This time I came up with a crude solution. Please use proper formatting for logs or a paste bin next time. People really don't appreciate log dumps like that. I am checking in a fix to develop branch, please load it into your HA instance and retest :) |
Sorry, I wasn't sure what the proper formating for logs was. I could edit and use pastebin if you'd like. |
All good bud 👍 Let me know how the testing goes. |
Nope, it went active timer for a couple seconds then immediately went into blocked. Edit: I take that back, the first time I turned it on it was a little laggy, light took a few seconds to turn on with motion. I just tried it again and it seems to work. It went into active timer, then when I adjusted the brightness it went into blocked. I'll do some more testing and see if I can break it. |
I have to change the timeout to 5 seconds as I have some GE light switches that take ~3 seconds to turn on/off and update their state in HA. This caused them to immediately go into the blocked state like we saw before. |
So fairly large issue I found. The original issue of 3.2 seems fixed now after changing it to 5 seconds, however a new issue that I didn't notice before is happening. The lights never turn off, the timer goes on, it expires, the EC light goes back to idle but the light stays on. Then, the next time I walk into the room the EC light goes into blocked which will further keep it from ever turning off since the light was on already before motion was triggered. This happened before my change as well, which I confirmed by rolling back to your dev version. The lights were turning off properly when using the GA version. |
I suggest testing EC in isolation using If your GE lights are slow to respond (more than 2 seconds) then I can see why EC would go into blocked state. It is only ignoring state changes for 2 seconds after the light is turned on. After two seconds it interprets any state change as manual control. I can make this 2 seconds configurable to better handle situation like these where there is a lot of latency in control entities. Please repeat your tests using separate |
I have restarted HA without making any changes and things seem to be working as intended now, not sure what the cause of the earlier issues was. |
Ok that sounds good enough to me. Raise new issues on GitHub for any other problems you find. I will push the release out soon. Cheers |
Cheers and thank you for your help! |
<<< Do not delete the following template headers. All information must be filled in because we need it to analyse the problem. Your issue will be auto closed without this information.
Before opening a new issue, please read the documentation and search for keywords relating to your problem. Since this is an open source project expect to be involved in the issue resolution because we depend on your support. >>>
Description
A clear and concise description of what the bug is.
Is 3.2 still broken? I am just trying to implement it myself now, and if I manually change the brightness either via HA or via the wall it does not put it into a blocked state. The timer still shuts off after no motion.
Configuration
Include configuration of affected entity.
Steps to reproduce
Steps to reproduce the behavior:
Trigger EC, adjust brightness, light still turns off after timer.
Expected behavior
A clear and concise description of what you expected to happen.
Light stays on after timer expires after being manually adjusted.
Actual Behaviour
Light turns off after I adjust brightness manually.
Logs
Provide logs at DEBUG level.
Version
If you are not using the latest version, please upgrade first.
Latest
The text was updated successfully, but these errors were encountered: