Closed ejpenney closed 1 year ago
Thanks a lot for reporting, my apologies for the issues.
Would it be feasible to try the latest main
version and turn off take_over_control
and detect_non_ha_changes
?
I have refactored the code and believe it should be correct now.
Switched to master but still see the same issues:
2023-08-02 10:44:15.037 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen Island: Ignoring 'off' → 'on' event for 'light.kitchen_island_light_1' with context.id='01H6VNKBCYFM1K8FDZJC16J7XE' because 'light.turn_on' was not called by HA and 'detect_non_ha_changes' is False
home-assistant_adaptive_lighting_2023-08-02T17-44-26.657Z.log
Thanks a lot for reporting back! I am relatively sure I found the exact problem in #695.
I pulled the latest commit and it does seem to be much better behaved, thanks!
Awesome, thanks for letting me know 😄
Home Assistant Adaptive Lighting Issue Template
Bug Reports
Before submitting a bug report, please follow these troubleshooting steps:
Please confirm that you have completed the following steps:
Required information for bug reports:
Please include the following information in your issue.
Issues missing this information may not be addressed.
home-assistant_adaptive_lighting_2023-08-01T17-09-59.450Z.log
Expand for screen shot (via UI)
Note I've tried both take_over_control=True and False with no success. I would think at the least having this set to False would mean AL shouldn't ever put the bulbs in manual_control...
(If using Zigbee2MQTT), provide your configuration files (remove all personal information before posting):
devices.yaml
groups.yaml
configuration.yaml
⚠️; Warning REMOVE ALL of the PERSONAL INFORMATION BELOW before posting ⚠️;server
:user
:password
:pan_id
:network_key
:log_syslog
if you use thisDescribe the bug and how to reproduce it:
First, I'll get this out of the way, I'm using some Gledopto bulbs connected to a Hue hub via the Hue integration. It is a known issue that these bulbs do not report their state correctly. In the past I've had Adaptive Lighting configured on a separate AL switch with
detect_non_ha_changes=False
, basically I want AL to blindly adapt these lights, and I have an automation monitoring better behaved bulbs that moves these to manual_control when appropriate. This has been working until the recent round of updates.I see this in the debug log:
I'll note this makes no sense to me, AL detected something else changed the bulb, and since I've told it to ignore other sources of bulb changes, it's reacting to that change? In any event, based on the feedback here, I tried turning it on, and started getting these:
Which makes sense, since they report their properties incorrectly... As I said, I'd like Adaptive Lighting to blindly control these bulbs, no matter what they say their state is, change the brightness/color_temp unless I explicitly set manual_control or turn off the AL switch.
I'll also note I see these in the logs:
Steps to reproduce the behavior: