Closed maddeuce closed 1 week ago
Hi @maddeuce the provided error log is not related to any Lutron integration - those next question, please provide a link to the documentation of the integration you're referring to, thx 👍
It looks like something is managing to call deep enough in the stack to generate a state changed event from a thread and it catches it on the other side of the callback when _async_update_entity gets called
Please enable debug mode and asyncio debug using the steps in https://community.home-assistant.io/t/2024-5-tracking-down-instability-issues-caused-by-integrations/724441
Check these sections:
Be sure to enable both so it can catch both classes of issues
Hey there @cdheiser, @wilburcforce, mind taking a look at this issue as it has been labeled with an integration (lutron
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
lutron documentation lutron source (message by IssueLinks)
Here you go thank for looking
Logger: pylutron Source: /usr/local/lib/python3.12/site-packages/pylutron/init.py:203 First occurred: 6:12:28 PM (1 occurrences) Last logged: 6:12:28 PM
Uncaught exception Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pylutron/init.py", line 201, in run self._main_loop() File "/usr/local/lib/python3.12/site-packages/pylutron/init.py", line 192, in _main_loop self._recv_cb(line.decode('ascii').rstrip()) File "/usr/local/lib/python3.12/site-packages/pylutron/init.py", line 499, in _recv handled = obj.handle_update(args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pylutron/init.py", line 1071, in handle_update return self._components[component].handle_update(action, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pylutron/init.py", line 918, in handle_update self._dispatch_event(ev_map[action], {}) File "/usr/local/lib/python3.12/site-packages/pylutron/init.py", line 633, in _dispatch_event handler(self, context, event, params) File "/usr/src/homeassistant/homeassistant/components/lutron/event.py", line 109, in handle_event self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1008, in async_write_ha_state self.hass.verify_event_loop_thread("async_write_ha_state") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that integration 'lutron' calls async_write_ha_state from a thread at homeassistant/components/lutron/event.py, line 109: self.async_write_ha_state(). Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+lutron%22.
Perfect. Thank you
The problem
Lutron pico remote stop working. I have them trigger different devices via monitoring lutron events. Now each time I press button it does nothing and the below log popup
What version of Home Assistant Core has the issue?
core-2024.5.1
What was the last working version of Home Assistant Core?
2024.5.0
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Lutron Pico Remote
Link to integration documentation on our website
No response
Diagnostics information
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response