Skip to content
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

Warning au demmarage du module Piscine dans AppDaemon #6

Open
multinet33 opened this issue Apr 12, 2023 · 0 comments
Open

Warning au demmarage du module Piscine dans AppDaemon #6

multinet33 opened this issue Apr 12, 2023 · 0 comments

Comments

@multinet33
Copy link

multinet33 commented Apr 12, 2023

Bonjour,

Dans appdaemmon j'obtiens cette log :

2023-04-12 10:38:51.308614 WARNING Piscine: ------------------------------------------------------------
2023-04-12 10:38:51.311481 WARNING Piscine: Unexpected error in worker for App Piscine:
2023-04-12 10:38:51.317063 WARNING Piscine: Worker Ags: {'id': 'afd097e5351c43bab86ffc6adee82841', 'name': 'Piscine', 'objectid': '91a6267446d94a8fbecf271033c11f28', 'type': 'scheduler', 'function': <bound method FiltrationPiscine.touteslesxminutes of <filtration_piscine.FiltrationPiscine object at 0xffff9efd8b80>>, 'pin_app': True, 'pin_thread': 0, 'kwargs': {'interval': 300, '__thread_id': 'thread-0'}}
2023-04-12 10:38:51.319574 WARNING Piscine: ------------------------------------------------------------
2023-04-12 10:38:51.348656 WARNING Piscine: Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/appdaemon/threading.py", line 1014, in worker
    funcref(self.AD.sched.sanitize_timer_kwargs(app, args["kwargs"]))
  File "/config/appdaemon/apps/filtration_piscine.py", line 136, in touteslesxminutes
    self.traitement(kwargs)
  File "/config/appdaemon/apps/filtration_piscine.py", line 222, in traitement
    if self.now_is_between(str(h_debut),str(h_fin)):
  File "/usr/lib/python3.10/site-packages/appdaemon/utils.py", line 231, in inner_sync_wrapper
    f = run_coroutine_threadsafe(self, coro(self, *args, **kwargs))
  File "/usr/lib/python3.10/site-packages/appdaemon/utils.py", line 313, in run_coroutine_threadsafe
    result = future.result(self.AD.internal_function_timeout)
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
    return self.__get_result()
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception
  File "/usr/lib/python3.10/site-packages/appdaemon/adapi.py", line 2211, in now_is_between
    return await self.AD.sched.now_is_between(start_time, end_time, name, now=now)
  File "/usr/lib/python3.10/site-packages/appdaemon/scheduler.py", line 773, in now_is_between
    start_time = (await self._parse_time(start_time_str, name, today=True, days_offset=0))["datetime"]
  File "/usr/lib/python3.10/site-packages/appdaemon/scheduler.py", line 947, in _parse_time
    raise ValueError("invalid time string: %s", time_str)
ValueError: ('invalid time string: %s', '-1 day, 22:30:00')

Une idée sur la source de l'erreur ?

a noter une piste : la valorastion de la période de filtration qui semble erroné (console de developpement) :

`

input_text.piscine_periode_filtrationPeriode Filtration | -1 da/00:00/01:30

@multinet33 multinet33 changed the title comment integrer le chargelment de piscine.yaml Erreur au demmarage du modiule Piscine dans AppDaemon Apr 12, 2023
@multinet33 multinet33 changed the title Erreur au demmarage du modiule Piscine dans AppDaemon Warning au demmarage du modiule Piscine dans AppDaemon Apr 12, 2023
@multinet33 multinet33 changed the title Warning au demmarage du modiule Piscine dans AppDaemon Warning au demmarage du module Piscine dans AppDaemon Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant