p0l0 / hagruenbeck_cloud

Home Assistant integration for Grünbeck Cloud based Water softeners
MIT License
42 stars 1 forks source link

Problem mit dem Datum aus API #91

Open tropifruit opened 4 months ago

tropifruit commented 4 months ago

System Health details

Hi, bei mir klappt alles wie beschrieben, ich kann alles importieren. Melde mich dann an und bekomme folgende Meldung:

softliQ.D/BS50046307 Keine Geräte oder Entitäten Einrichtung fehlgeschlagen, wird erneut versucht: Unable to get data from API: time data '2024-03-23T13:46:45' does not match format '%Y-%m-%dT%H:%M:%S.%f'

Kannst du mir sagen, was ich tun kann, um das Problem zu beheben?

Danke dir.

Checklist

Describe the issue

Hi, bei mir klappt alles wie beschrieben, ich kann alles importieren. Melde mich dann an und bekomme folgende Meldung:

softliQ.D/BS50046307 Keine Geräte oder Entitäten Einrichtung fehlgeschlagen, wird erneut versucht: Unable to get data from API: time data '2024-03-23T13:46:45' does not match format '%Y-%m-%dT%H:%M:%S.%f'

Kannst du mir sagen, was ich tun kann, um das Problem zu beheben?

Danke dir.

Reproduction steps

1. 2. 3. ... siehe oben

Debug logs

2024-06-29 20:55:01.394 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hochwasserportal 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
2024-06-29 20:55:01.395 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration alexa_media 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
2024-06-29 20:55:01.397 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration dwd_pollenflug 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
2024-06-29 20:55:01.398 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration landroid_cloud 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
2024-06-29 20:55:01.399 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration xiaomi_cloud_map_extractor 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
2024-06-29 20:55:01.401 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration dwd_weather 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
2024-06-29 20:55:01.402 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration dwd 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
2024-06-29 20:55:01.404 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration roborock 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
2024-06-29 20:55:01.405 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration gruenbeck_cloud 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
2024-06-29 20:55:01.407 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs 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
2024-06-29 20:55:04.905 ERROR (MainThread) [homeassistant.components.sensor] The hochwasserportal platform for the sensor integration does not support platform setup. Please remove it from your config.
2024-06-29 20:55:08.299 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues
2024-06-29 20:55:11.469 INFO (SyncWorker_10) [fritzconnection] Unable to retrieve resource 'http://192.168.178.51:49000/igddesc.xml' from the device.
2024-06-29 20:55:11.476 INFO (SyncWorker_9) [fritzconnection] Unable to retrieve resource 'http://192.168.178.67:49000/igddesc.xml' from the device.
2024-06-29 20:55:11.483 INFO (SyncWorker_1) [fritzconnection] Unable to retrieve resource 'http://192.168.178.57:49000/igddesc.xml' from the device.
2024-06-29 20:55:11.492 INFO (SyncWorker_5) [fritzconnection] Unable to retrieve resource 'http://192.168.178.21:49000/igddesc.xml' from the device.
2024-06-29 20:55:11.506 INFO (SyncWorker_8) [fritzconnection] Unable to retrieve resource 'http://192.168.178.24:49000/igddesc.xml' from the device.
2024-06-29 20:55:28.891 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% set date_str = states('sensor.gruenbeck_original_date') %} {% if date_str %}
  {% set parsed_date = strptime(date_str, '%Y-%m-%dT%H:%M:%S') %}
  {{ parsed_date }}
{% else %}
  unknown
{% endif %}) renders=2>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2100, in strptime
    return datetime.strptime(string, fmt)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/_strptime.py", line 554, in _strptime_datetime
    tt, fraction, gmtoff_fraction = _strptime(data_string, format)
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/_strptime.py", line 333, in _strptime
    raise ValueError("time data %r does not match format %r" %
ValueError: time data 'unknown' does not match format '%Y-%m-%dT%H:%M:%S'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 603, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2616, in _render_with_context
    return template.render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1304, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 939, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 2, in top-level template code
  File "/usr/local/lib/python3.12/site-packages/jinja2/sandbox.py", line 394, in call
    return __context.call(__obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2103, in strptime
    raise_no_default("strptime", string)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1853, in raise_no_default
    raise ValueError(
ValueError: Template error: strptime got invalid input 'unknown' when rendering template '{% set date_str = states('sensor.gruenbeck_original_date') %} {% if date_str %}
  {% set parsed_date = strptime(date_str, '%Y-%m-%dT%H:%M:%S') %}
  {{ parsed_date }}
{% else %}
  unknown
{% endif %}' but no default was specified

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 715, in async_render_to_info
    render_info._result = self.async_render(  # noqa: SLF001
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 605, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: strptime got invalid input 'unknown' when rendering template '{% set date_str = states('sensor.gruenbeck_original_date') %} {% if date_str %}
  {% set parsed_date = strptime(date_str, '%Y-%m-%dT%H:%M:%S') %}
  {{ parsed_date }}
{% else %}
  unknown
{% endif %}' but no default was specified
2024-06-29 20:55:28.907 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: strptime got invalid input 'unknown' when rendering template '{% set date_str = states('sensor.gruenbeck_original_date') %} {% if date_str %}
  {% set parsed_date = strptime(date_str, '%Y-%m-%dT%H:%M:%S') %}
  {{ parsed_date }}
{% else %}
  unknown
{% endif %}' but no default was specified') while processing template 'Template<template=({% set date_str = states('sensor.gruenbeck_original_date') %} {% if date_str %}
  {% set parsed_date = strptime(date_str, '%Y-%m-%dT%H:%M:%S') %}
  {{ parsed_date }}
{% else %}
  unknown
{% endif %}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.gruenbeck_date_parsed'
2024-06-29 20:55:28.923 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 630: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues

Diagnostics dump

No response

dv3131 commented 3 weeks ago

Ich habe leider genau das gleiche Problem bei meiner Installation (SoftliQ SD21). Gibt es dazu schon irgendeinen Lösungsansatz?

emaa10 commented 2 weeks ago

Gleiches Problem hier.