Closed ghozt1989 closed 1 year ago
Hej @ghozt1989
Hvis du markerer beskeden som læst i Aula, genstarter HA - så virker det fint?
Du bliver nok nødt til at få enabled debug log, genstarte HA og smide al loggen herind.
@scaarup Jeps Aula intergrationen virker fint igen når bekseden er læst og HA er gensartet.
Jeg prøver lige det med debug log på :)
@scaarup 2023-05-12 11:16:03.163 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration aula which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-12 11:16:27.935 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform aula is taking over 10 seconds. 2023-05-12 20:47:27.699 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Aula for calendar 2023-05-12 20:47:27.719 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Aula for binary_sensor 2023-05-12 20:47:37.728 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Aula for calendar 2023-05-12 20:47:37.732 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Aula for binary_sensor 2023-05-12 20:48:45.667 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Aula for calendar 2023-05-12 20:48:45.669 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Aula for binary_sensor 2023-05-12 20:48:55.115 DEBUG (SyncWorker_11) [custom_components.aula.client] LOGIN: True 2023-05-12 20:48:55.115 DEBUG (SyncWorker_11) [custom_components.aula.client] Config - schoolschedule: True, config - ugeplaner: True 2023-05-12 20:48:55.116 DEBUG (SyncWorker_11) [custom_components.aula.client] Child ids and names: {2331665: 'Simon Houe Gommesen', 4560339: 'Josefine Houe Gommesen'} 2023-05-12 20:48:55.116 DEBUG (SyncWorker_11) [custom_components.aula.client] Child ids and institution names: {2331665: 'Børnehuset Lupinmarken', 4560339: 'Børnehuset Lupinmarken'} 2023-05-12 20:48:55.116 DEBUG (SyncWorker_11) [custom_components.aula.client] Institution codes: ['G16691', '791013'] 2023-05-12 20:48:55.433 DEBUG (SyncWorker_11) [custom_components.aula.client] Child ids and presence data status: {'2331665': 1, '4560339': 1} 2023-05-12 20:48:56.024 DEBUG (SyncWorker_11) [custom_components.aula.client] Fetching calendars... 2023-05-12 20:48:56.479 DEBUG (SyncWorker_11) [custom_components.aula.client] In the Meebook flow... 2023-05-12 20:48:56.479 DEBUG (SyncWorker_11) [custom_components.aula.client] Requesting token for widget 0004 2023-05-12 20:48:56.815 DEBUG (SyncWorker_11) [custom_components.aula.client] Meebook ugeplan for Simon Houe Gommesen 2023-05-12 20:48:56.816 DEBUG (SyncWorker_11) [custom_components.aula.client] In the Meebook flow... 2023-05-12 20:48:56.816 DEBUG (SyncWorker_11) [custom_components.aula.client] Requesting token for widget 0004 2023-05-12 20:48:57.177 DEBUG (SyncWorker_11) [custom_components.aula.client] Meebook ugeplan for Simon Houe Gommesen 2023-05-12 20:48:57.304 DEBUG (SyncWorker_8) [custom_components.aula.client] is_logged_in? True 2023-05-12 20:48:57.305 DEBUG (SyncWorker_8) [custom_components.aula.client] Child ids and names: {2331665: 'Simon Houe Gommesen', 4560339: 'Josefine Houe Gommesen'} 2023-05-12 20:48:57.305 DEBUG (SyncWorker_8) [custom_components.aula.client] Child ids and institution names: {2331665: 'Børnehuset Lupinmarken', 4560339: 'Børnehuset Lupinmarken'} 2023-05-12 20:48:57.305 DEBUG (SyncWorker_8) [custom_components.aula.client] Institution codes: ['G16691', '791013'] 2023-05-12 20:48:57.576 DEBUG (SyncWorker_8) [custom_components.aula.client] Child ids and presence data status: {'2331665': 1, '4560339': 1} 2023-05-12 20:48:58.204 DEBUG (SyncWorker_8) [custom_components.aula.client] Fetching calendars... 2023-05-12 20:48:58.646 DEBUG (SyncWorker_8) [custom_components.aula.client] In the Meebook flow... 2023-05-12 20:48:58.646 DEBUG (SyncWorker_8) [custom_components.aula.client] Requesting token for widget 0004 2023-05-12 20:48:59.358 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Aula for calendar 2023-05-12 20:48:59.360 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Aula for binary_sensor 2023-05-12 20:48:59.362 WARNING (MainThread) [custom_components.aula.sensor] Debouncer call ignored as shutdown has been requested. 2023-05-12 20:48:59.385 WARNING (MainThread) [custom_components.aula.sensor] Debouncer call ignored as shutdown has been requested. 2023-05-12 20:48:59.387 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform aula File "/config/custom_components/aula/sensor.py", line 94, in name 2023-05-12 20:48:59.388 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up aula platform for sensor File "/config/custom_components/aula/sensor.py", line 94, in name 2023-05-12 20:49:05.715 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Aula for calendar 2023-05-12 20:49:05.717 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Aula for binary_sensor
Kan dette bruges? :)
Har det virket tidligere? Er det lige meget hvilken besked du markerer som ulæst, eller er det en bestemt besked, der er skyld i det her? Du kan prøve at indkommentere linjerne 184,196,198 og 219 i client.py. Markere en besked som ulæst og vise mig hvad der sker i loggen
Jeg har først lagt mærke til dette nu her da jeg først nu har opdaget funktionen :)
Hvad betyder det at inkommentere linjerne?
Jeg har først lagt mærke til dette nu her da jeg først nu har opdaget funktionen :)
Hvad betyder det at inkommentere linjerne?
Det vil sige, at du fjerner # foran 🙂
Mystisk nu virker alt som det skal.
Jeg lukker sagen igen takker for hjælpen.
Jeg ved ikke om det er fordi jeg inden jeg ændrede de linjer lige downlaodet dit plugin igen og kopiret ind og fjeden # derefter i de linjer du skrev :)
Det kunne være :).
Men det kunne også være, at det var en bestemt besked/tråd, der var skyld i fejlen. Hvis du finder ud af det, så må du meget gerne sige til, fordi så er der sikkert en eller anden case, der ikke bliver håndteret korrekt.
Jeg giver hvetfald lyd hvis dette sker igen :)
Hej Søren.
Mit aula stopper med at fungere lige så snart jeg får en besked i aula.
2023-05-12 06:58:35.404 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration aula which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-12 06:58:59.903 ERROR (MainThread) [custom_components.aula.sensor] Unexpected error fetching sensor data: 'NoneType' object is not subscriptable File "/config/custom_components/aula/sensor.py", line 43, in async_update_data File "/config/custom_components/aula/client.py", line 199, in update_data 2023-05-12 06:59:01.168 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up aula platform for sensor File "/config/custom_components/aula/sensor.py", line 58, in async_setup_entry File "/config/custom_components/aula/client.py", line 199, in update_data
Sig til hvis du evt manglerflere oplysninger :)