geertmeersman / robonect

Home Assistant integration for Robonect
MIT License
39 stars 4 forks source link

Error message during integration, Error doing job: Future exception was never retrieved (None) #184

Closed Rockhound53 closed 4 months ago

Rockhound53 commented 4 months ago

Logger: homeassistant Quelle: helpers/frame.py:197 Erstmals aufgetreten: 19:13:41 (1 Vorkommnisse) Zuletzt protokolliert: 19:13:41

Error doing job: Future exception was never retrieved (None) Traceback (most recent call last): File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/robonect/sensor.py", line 369, in update_busevent self.update_ha_state() File "/config/custom_components/robonect/entity.py", line 127, in update_ha_state self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1006, in async_write_ha_state report_non_thread_safe_operation("async_write_ha_state") File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 225, in report_non_thread_safe_operation report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 159, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 197, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'robonect' calls async_write_ha_state from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#async_write_ha_state at custom_components/robonect/entity.py, line 127: self.async_write_ha_state(). Please report it to the author of the 'robonect' custom integration.

I get the above error message in the current Home Assistant application.

Can someone tell me what could be causing this?

Thanks and Greetings

geertmeersman commented 4 months ago

Hi, I'll check it out asap. In 2 weeks I have some holidays so will have some extra debug time 💪💪

It's currently only a warning, you are not doing anything wrong, it's just how some calls are done. Will fix it

geertmeersman commented 4 months ago

Should be ok now, thanks for opening the issue

Rockhound53 commented 4 months ago

Hallo, sie kommen doch aus Deutschland, oder?

Wäre es möglich, einen Button einzurichten, um die Messer zurückzusetzen?

Das ist so das einzige, weswegen ich noch in die Weboberfläche von robonect muss, den Rest mache ich aus HomeAssistant.

Besten Dank vorab, auch für die Problemlösung! Super Arbeit!

Viele Grüße

Geert Meersman @.***> schrieb am Fr., 26. Juli 2024, 10:18:

Should be ok now, thanks for opening the issue

— Reply to this email directly, view it on GitHub https://github.com/geertmeersman/robonect/issues/184#issuecomment-2252219371, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXPJM75OXC7WBWTORTXDCVLZOIA6LAVCNFSM6AAAAABLGE5Z3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJSGIYTSMZXGE . You are receiving this because you authored the thread.Message ID: @.***>

geertmeersman commented 4 months ago

I'm living in Belgium, so no but for sure I understand German. I will check it out, but to my memory I haven't seen the api call to reset the blades.

geertmeersman commented 4 months ago

@Rockhound53 , found how to do it, will include it in the next release

Rockhound53 commented 4 months ago

Awesome, thank you so much!

Geert Meersman @.***> schrieb am Fr., 26. Juli 2024, 12:30:

@Rockhound53 https://github.com/Rockhound53 , found how to do it, will include it in the next release

— Reply to this email directly, view it on GitHub https://github.com/geertmeersman/robonect/issues/184#issuecomment-2252464944, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXPJM74MNNGSRX6VJMILU5TZOIQLNAVCNFSM6AAAAABLGE5Z3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJSGQ3DIOJUGQ . You are receiving this because you were mentioned.Message ID: @.***>

geertmeersman commented 4 months ago

@Rockhound53 , available in Release v1.8.0

Rockhound53 commented 4 months ago

Work Like a Charm! Thanks!

Geert Meersman @.***> schrieb am Fr., 26. Juli 2024, 17:59:

@Rockhound53 https://github.com/Rockhound53 , available in Release v1.8.0 https://github.com/geertmeersman/robonect/releases/tag/v1.8.0

— Reply to this email directly, view it on GitHub https://github.com/geertmeersman/robonect/issues/184#issuecomment-2253053855, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXPJM75OQCBKEECF7BHFDP3ZOJW5XAVCNFSM6AAAAABLGE5Z3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJTGA2TGOBVGU . You are receiving this because you were mentioned.Message ID: @.***>

Rockhound53 commented 3 months ago

Hi,

Sometimes i get the Info below:

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: custom_components.robonect Quelle: custom_components/robonect/init.py:246 Integration: Robonect (Dokumentation, Probleme) Erstmals aufgetreten: 20:38:13 (1 Vorkommnisse) Zuletzt protokolliert: 20:38:13

Exception

Any suggestions why?

Thanks

Geert Meersman @.***> schrieb am Fr., 26. Juli 2024, 17:59:

@Rockhound53 https://github.com/Rockhound53 , available in Release v1.8.0 https://github.com/geertmeersman/robonect/releases/tag/v1.8.0

— Reply to this email directly, view it on GitHub https://github.com/geertmeersman/robonect/issues/184#issuecomment-2253053855, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXPJM75OQCBKEECF7BHFDP3ZOJW5XAVCNFSM6AAAAABLGE5Z3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJTGA2TGOBVGU . You are receiving this because you were mentioned.Message ID: @.***>

geertmeersman commented 3 months ago

If it is frequent you could try to activate debug mode

Rockhound53 commented 3 months ago

Hi,

i aktivate the debug Mode, but where can i find the Log?

Thanks & Regards

Am So., 28. Juli 2024 um 21:18 Uhr schrieb Geert Meersman < @.***>:

If it is frequent you could try to activate debug mode

— Reply to this email directly, view it on GitHub https://github.com/geertmeersman/robonect/issues/184#issuecomment-2254617731, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXPJM7ZFBVXQYW7YLBBTTELZOU7WVAVCNFSM6AAAAABLGE5Z3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJUGYYTONZTGE . You are receiving this because you were mentioned.Message ID: @.***>

geertmeersman commented 3 months ago

If you stop the debug, it will download the log to your pc. I have described it in the readme

Rockhound53 commented 3 months ago

Hi,

here are the Log, hope it helps.

Greetings

Am Mo., 5. Aug. 2024 um 15:11 Uhr schrieb Geert Meersman < @.***>:

If you stop the debug, it will download the log to your pc. I have described it in the readme

— Reply to this email directly, view it on GitHub https://github.com/geertmeersman/robonect/issues/184#issuecomment-2269044149, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXPJM7ZE3RWLILT75RXVEV3ZP52XXAVCNFSM6AAAAABLGE5Z3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRZGA2DIMJUHE . You are receiving this because you were mentioned.Message ID: @.***>