C’est exactement ça, si je peux en avoir le coeur nette, ce serait cool 
J’ai l’impression que les logs ne commencent à chaque fois qu’au démarrage de mon Raspberry, je n’ai pas l’historique d’avant le plantage, il a planté ce matin vers 9h23
2022-07-25 09:27:42 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration qubino_wire_pilot 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
2022-07-25 09:27:42 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
2022-07-25 09:27:42 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration myEnedis 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
2022-07-25 09:27:42 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration ble_monitor 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
2022-07-25 09:27:42 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration shelly 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
2022-07-25 09:27:42 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration meross_lan 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
2022-07-25 09:27:42 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration localtuya 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
2022-07-25 09:27:42 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration ui_lovelace_minimalist 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
2022-07-25 09:27:42 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration thermal_comfort 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
2022-07-25 09:27:42 WARNING (SyncWorker_6) [homeassistant.loader] We found a custom integration garbage_collection 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
2022-07-25 09:27:42 WARNING (SyncWorker_5) [homeassistant.loader] We found a custom integration sonoff 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
2022-07-25 09:27:42 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
2022-07-25 09:27:47 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2022-07-25 09:27:48 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=659 from 2022-07-25 07:12:34.954193)
2022-07-25 09:28:16 WARNING (MainThread) [homeassistant.components.number] custom_components.localtuya.number::LocaltuyaNumber is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom component author.
2022-07-25 09:28:19 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.load_plugins] HACS Integration repo "browser mod" is not installed!
2022-07-25 09:28:19 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.load_plugins] HACS Frontend repo "light-entity-card" is not installed, See Integration Configuration.
2022-07-25 09:28:19 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.load_plugins] HACS Frontend repo "lovelace-card-mod" is not installed, See Integration Configuration.
2022-07-25 09:28:19 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.load_plugins] HACS Frontend repo "lovelace-auto-entities" is not installed, See Integration Configuration.
2022-07-25 09:28:19 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.load_plugins] HACS Frontend repo "mini-media-player" is not installed, See Integration Configuration.
2022-07-25 09:28:19 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.load_plugins] HACS Frontend repo "my-cards" is not installed, See Integration Configuration.
2022-07-25 09:28:19 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.load_plugins] HACS Frontend repo "simple-weather-card" is not installed, See Integration Configuration.
2022-07-25 09:28:24 ERROR (MainThread) [homeassistant.components.climate] Error adding entities for domain climate with platform qubino_wire_pilot
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 397, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 641, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 776, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 532, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 570, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 220, in state
return HVACMode(self.hvac_mode).value
File "/usr/local/lib/python3.10/enum.py", line 385, in __call__
return cls.__new__(cls, value)
File "/usr/local/lib/python3.10/enum.py", line 710, in __new__
raise ve_exc
ValueError: 'unknown' is not a valid HVACMode
2022-07-25 09:28:24 ERROR (MainThread) [homeassistant.components.climate] Error while setting up qubino_wire_pilot platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 258, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 397, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 641, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 776, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 532, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 570, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 220, in state
return HVACMode(self.hvac_mode).value
File "/usr/local/lib/python3.10/enum.py", line 385, in __call__
return cls.__new__(cls, value)
File "/usr/local/lib/python3.10/enum.py", line 710, in __new__
raise ve_exc
ValueError: 'unknown' is not a valid HVACMode
2022-07-25 09:28:26 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Chambre (5)' for apple_tv integration not ready yet: Not found at X.X.X.23, waiting for discovery; Retrying in background
2022-07-25 09:28:26 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds.
2022-07-25 09:28:26 WARNING (MainThread) [homeassistant.setup] Setup of input_datetime is taking over 10 seconds.
2022-07-25 09:28:26 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
2022-07-25 09:28:26 WARNING (MainThread) [homeassistant.setup] Setup of input_button is taking over 10 seconds.
2022-07-25 09:28:30 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform rest is taking over 10 seconds.
2022-07-25 09:28:30 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% if state_attr('sensor.psa', 'energy')[0].charging.plugged %}
{% if state_attr('sensor.psa', 'energy')[0].charging.charging_mode == 'Slow' %}
mdi:ev-plug-type2
{% elif state_attr('sensor.psa', 'energy')[0].charging.charging_mode == 'Quick' %}
mdi:ev-plug-ccs2
{% endif %}
{% else %}
mdi:power-plug-off-outline
{% endif %}'
2022-07-25 09:28:30 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'Failure' %}
mdi:alert
{% elif value == 'InProgress' %}
mdi:play
{% elif value == 'Stopped' %}
mdi:pause
{% elif value == 'Finished' %}
mdi:stop
{% else %}
mdi:power-plug-off-outline
{% endif %}'
2022-07-25 09:28:30 ERROR (MainThread) [homeassistant.components.vacuum] The xiaomi_miio platform for the vacuum integration does not support platform setup. Please remove it from your config.
2022-07-25 09:28:30 WARNING (MainThread) [homeassistant.components.sensor] Platform rest not ready yet: All connection attempts failed; Retrying in background in 30 seconds
2022-07-25 09:28:31 WARNING (MainThread) [homeassistant.components.number] custom_components.sonoff.number::XNumber is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom component author.
2022-07-25 09:28:31 WARNING (MainThread) [homeassistant.components.number] custom_components.sonoff.number::XPulseWidth is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom component author.
2022-07-25 09:28:31 WARNING (MainThread) [homeassistant.components.number] custom_components.sonoff.number::XPulseWidth is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom component author.
2022-07-25 09:28:39 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform garbage_collection is taking over 10 seconds.
2022-07-25 09:29:03 WARNING (MainThread) [homeassistant.components.vacuum] Setup of vacuum platform xiaomi_miio is taking over 10 seconds.
2022-07-25 09:29:03 WARNING (MainThread) [homeassistant.setup] Setup of automation is taking over 10 seconds.
2022-07-25 09:29:03 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform openweathermap is taking over 10 seconds.
2022-07-25 09:29:03 WARNING (MainThread) [custom_components.sonoff] Can't login with mode: auto
Traceback (most recent call last):
File "/config/custom_components/sonoff/__init__.py", line 163, in async_setup_entry
await registry.cloud.login(username, password)
File "/config/custom_components/sonoff/core/ewelink/cloud.py", line 136, in login
r = await self.session.post(
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 559, in _request
await resp.start(conn)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 893, in start
with self._timer:
File "/usr/local/lib/python3.10/site-packages/aiohttp/helpers.py", line 721, in __exit__
raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError
2022-07-25 09:29:03 WARNING (MainThread) [homeassistant.config_entries] Config entry 'XXX@XX.XX' for sonoff integration not ready yet: None; Retrying in background
2022-07-25 09:29:04 ERROR (SyncWorker_6) [homeassistant.components.command_line] Command failed: curl -k --silent "http://X.X.X.X:5000/get_vehicleinfo/XXXX?from_cache=1"
2022-07-25 09:29:05 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{% set value = value_json.preconditionning.air_conditioning.status %} {% set switch = states('switch.e2008_clim') %}
{% if value == 'Enabled' %}
mdi:car-defrost-front
{% elif value == 'Disabled' or value == 'Finished' %}
mdi:air-conditioner
{% else %}
mdi:alert
{% endif %}'
2022-07-25 09:29:05 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: None, template: {% set value = value_json.preconditionning.air_conditioning.status %} {% set switch = states('switch.e2008_clim') %}
{% if value == 'Enabled' %}
mdi:car-defrost-front
{% elif value == 'Disabled' or value == 'Finished' %}
mdi:air-conditioner
{% else %}
mdi:alert
{% endif %})
2022-07-25 09:29:05 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.preconditionning.air_conditioning.status == 'Enabled' }}'
2022-07-25 09:29:05 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: None, template: {{ value_json.preconditionning.air_conditioning.status == 'Enabled' }})
2022-07-25 09:29:09 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to putrequest inside the event loop. This is causing stability issues. Please report issue to the custom component author for myEnedis doing blocking calls at custom_components/myEnedis/gitinformation.py, line 37: myURL = urlopen(self._serverName)
2022-07-25 09:29:14 WARNING (MainThread) [custom_components.meross_lan] MerossDevice(20051827162652251h4248e1e91c7031) error in async_http_request: Server disconnected
2022-07-25 09:29:14 WARNING (MainThread) [homeassistant.components.nest] Configuration of Nest integration in YAML is deprecated and will be removed in a future release; Your existing configuration (including OAuth Application Credentials) has been imported into the UI automatically and can be safely removed from your configuration.yaml file
2022-07-25 09:29:14 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Strip6 0x13ed193c' for yeelight integration not ready yet: Failed to read from the socket at X.X.X.8:55443: [Errno 113] Connect call failed ('X.X.X.8', 55443).; Retrying in background
2022-07-25 09:29:16 WARNING (MainThread) [custom_components.meross_lan] MerossDevice(2008206724868551802548e1e92cfad8) error in async_http_request: Cannot connect to host X.X.X.14:80 ssl:default [Connect call failed ('X.X.X.14', 80)]
2022-07-25 09:29:21 WARNING (MainThread) [homeassistant.helpers.entity] Update of camera.xiaomi_cloud_map_extractor is taking over 10 seconds
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% if states('binary_sensor.fgbs_portail_home_security_intrusion')|float > 0 %}
mdi:garage-open
{% else %}
mdi:garage
{% endif %}")
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1679, in forgiving_float_filter
return float(value)
ValueError: could not convert string to float: 'off'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 421, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1906, in _render_with_context
return template.render(**kwargs)
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1682, in forgiving_float_filter
raise_no_default("float", value)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1395, in raise_no_default
raise ValueError(
ValueError: Template error: float got invalid input 'off' when rendering template '{% if states('binary_sensor.fgbs_portail_home_security_intrusion')|float > 0 %}
mdi:garage-open
{% else %}
mdi:garage
{% 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 537, in async_render_to_info
render_info._result = self.async_render(variables, strict=strict, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 423, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'off' when rendering template '{% if states('binary_sensor.fgbs_portail_home_security_intrusion')|float > 0 %}
mdi:garage-open
{% else %}
mdi:garage
{% endif %}' but no default was specified
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('ValueError: Template error: float got invalid input 'off' when rendering template '{% if states('binary_sensor.fgbs_portail_home_security_intrusion')|float > 0 %}
mdi:garage-open
{% else %}
mdi:garage
{% endif %}' but no default was specified') while processing template 'Template("{% if states('binary_sensor.fgbs_portail_home_security_intrusion')|float > 0 %}
mdi:garage-open
{% else %}
mdi:garage
{% endif %}")' for attribute '_attr_icon' in entity 'cover.garage_door'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'Failure' %}
Defaut
{% elif value == 'InProgress' %}
En charge
{% elif value == 'Stopped' %}
Pause
{% elif value == 'Finished' %}
Terminé
{% elif value == 'Disconnected' %}
Déconnecté
{% else %}
Inconnu
{% endif %}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'Failure' %}
Defaut
{% elif value == 'InProgress' %}
En charge
{% elif value == 'Stopped' %}
Pause
{% elif value == 'Finished' %}
Terminé
{% elif value == 'Disconnected' %}
Déconnecté
{% else %}
Inconnu
{% endif %}")
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 421, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1906, in _render_with_context
return template.render(**kwargs)
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/local/lib/python3.10/site-packages/jinja2/sandbox.py", line 326, in getattr
value = getattr(obj, attribute)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1932, in _fail_with_undefined_error
raise ex
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1923, in _fail_with_undefined_error
return super()._fail_with_undefined_error(*args, **kwargs)
jinja2.exceptions.UndefinedError: None has no element 0
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 537, in async_render_to_info
render_info._result = self.async_render(variables, strict=strict, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 423, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: UndefinedError: None has no element 0
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'Failure' %}
mdi:alert
{% elif value == 'InProgress' %}
mdi:play
{% elif value == 'Stopped' %}
mdi:pause
{% elif value == 'Finished' %}
mdi:stop
{% else %}
mdi:power-plug-off-outline
{% endif %}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'Failure' %}
mdi:alert
{% elif value == 'InProgress' %}
mdi:play
{% elif value == 'Stopped' %}
mdi:pause
{% elif value == 'Finished' %}
mdi:stop
{% else %}
mdi:power-plug-off-outline
{% endif %}")
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 421, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1906, in _render_with_context
return template.render(**kwargs)
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/local/lib/python3.10/site-packages/jinja2/sandbox.py", line 326, in getattr
value = getattr(obj, attribute)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1932, in _fail_with_undefined_error
raise ex
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1923, in _fail_with_undefined_error
return super()._fail_with_undefined_error(*args, **kwargs)
jinja2.exceptions.UndefinedError: None has no element 0
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 537, in async_render_to_info
render_info._result = self.async_render(variables, strict=strict, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 423, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: UndefinedError: None has no element 0
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'Failure' %}
Defaut
{% elif value == 'InProgress' %}
En charge
{% elif value == 'Stopped' %}
Pause
{% elif value == 'Finished' %}
Terminé
{% elif value == 'Disconnected' %}
Déconnecté
{% else %}
Inconnu
{% endif %}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'Failure' %}
mdi:alert
{% elif value == 'InProgress' %}
mdi:play
{% elif value == 'Stopped' %}
mdi:pause
{% elif value == 'Finished' %}
mdi:stop
{% else %}
mdi:power-plug-off-outline
{% endif %}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 0') while processing template 'Template("{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'Failure' %}
Defaut
{% elif value == 'InProgress' %}
En charge
{% elif value == 'Stopped' %}
Pause
{% elif value == 'Finished' %}
Terminé
{% elif value == 'Disconnected' %}
Déconnecté
{% else %}
Inconnu
{% endif %}")' for attribute '_attr_native_value' in entity 'sensor.e2008_charge'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 0') while processing template 'Template("{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'Failure' %}
mdi:alert
{% elif value == 'InProgress' %}
mdi:play
{% elif value == 'Stopped' %}
mdi:pause
{% elif value == 'Finished' %}
mdi:stop
{% else %}
mdi:power-plug-off-outline
{% endif %}")' for attribute '_attr_icon' in entity 'sensor.e2008_charge'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].level }}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.psa', 'energy')[0].level }}")
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 421, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1906, in _render_with_context
return template.render(**kwargs)
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/local/lib/python3.10/site-packages/jinja2/sandbox.py", line 326, in getattr
value = getattr(obj, attribute)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1932, in _fail_with_undefined_error
raise ex
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1923, in _fail_with_undefined_error
return super()._fail_with_undefined_error(*args, **kwargs)
jinja2.exceptions.UndefinedError: None has no element 0
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 537, in async_render_to_info
render_info._result = self.async_render(variables, strict=strict, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 423, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: UndefinedError: None has no element 0
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].level }}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 0') while processing template 'Template("{{ state_attr('sensor.psa', 'energy')[0].level }}")' for attribute '_attr_native_value' in entity 'sensor.e2008_batterie'
2022-07-25 09:29:32 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'None' has no attribute 'mileage' when rendering '{{ state_attr('sensor.psa', 'timed_odometer').mileage }}'
2022-07-25 09:29:32 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'None' has no attribute 'mileage' when rendering '{{ state_attr('sensor.psa', 'timed_odometer').mileage }}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].autonomy }}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.psa', 'energy')[0].autonomy }}")
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 421, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1906, in _render_with_context
return template.render(**kwargs)
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/local/lib/python3.10/site-packages/jinja2/sandbox.py", line 326, in getattr
value = getattr(obj, attribute)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1932, in _fail_with_undefined_error
raise ex
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1923, in _fail_with_undefined_error
return super()._fail_with_undefined_error(*args, **kwargs)
jinja2.exceptions.UndefinedError: None has no element 0
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 537, in async_render_to_info
render_info._result = self.async_render(variables, strict=strict, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 423, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: UndefinedError: None has no element 0
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].autonomy }}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 0') while processing template 'Template("{{ state_attr('sensor.psa', 'energy')[0].autonomy }}")' for attribute '_attr_native_value' in entity 'sensor.e2008_autonomie'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].charging.charging_rate * 0.163 }}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.psa', 'energy')[0].charging.charging_rate * 0.163 }}")
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 421, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1906, in _render_with_context
return template.render(**kwargs)
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/local/lib/python3.10/site-packages/jinja2/sandbox.py", line 326, in getattr
value = getattr(obj, attribute)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1932, in _fail_with_undefined_error
raise ex
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1923, in _fail_with_undefined_error
return super()._fail_with_undefined_error(*args, **kwargs)
jinja2.exceptions.UndefinedError: None has no element 0
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 537, in async_render_to_info
render_info._result = self.async_render(variables, strict=strict, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 423, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: UndefinedError: None has no element 0
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].charging.charging_rate * 0.163 }}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 0') while processing template 'Template("{{ state_attr('sensor.psa', 'energy')[0].charging.charging_rate * 0.163 }}")' for attribute '_attr_native_value' in entity 'sensor.e2008_puissance_de_charge'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'InProgress' %}
{% set value = state_attr('sensor.psa', 'energy')[0].charging.remaining_time %}
{% if value.find("H") > 0 %}
{% set hr = value[value.find("T")+1:value.find("T")+ 3] %}
{% if hr[1:2] == "H" %}
{% set hr = "0" + hr[0] %}
{% endif %}
{% else %}
{% set hr = "00" %}
{% endif %}
{% if value.find("M") > 0 %}
{% set mn = value[value.find("M")-2:value.find("M")] %}
{% if mn[0:1] == "H" or mn[0:1] == "T" %}
{% set mn = "0" + mn[1] %}
{% endif %}
{% else %}
{% set mn = "00" %}
{% endif %}
{% set result = hr + ":" + mn %}
{% if result == "00:00" %}
{{ result }}
{% else %}
{{ as_datetime((now() + timedelta( hours = int(hr), minutes = int(mn) )).isoformat()).strftime("%H:%M") }}
{% endif %}
{% else %}
Déconnecté
{% endif %}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'InProgress' %}
{% set value = state_attr('sensor.psa', 'energy')[0].charging.remaining_time %}
{% if value.find("H") > 0 %}
{% set hr = value[value.find("T")+1:value.find("T")+ 3] %}
{% if hr[1:2] == "H" %}
{% set hr = "0" + hr[0] %}
{% endif %}
{% else %}
{% set hr = "00" %}
{% endif %}
{% if value.find("M") > 0 %}
{% set mn = value[value.find("M")-2:value.find("M")] %}
{% if mn[0:1] == "H" or mn[0:1] == "T" %}
{% set mn = "0" + mn[1] %}
{% endif %}
{% else %}
{% set mn = "00" %}
{% endif %}
{% set result = hr + ":" + mn %}
{% if result == "00:00" %}
{{ result }}
{% else %}
{{ as_datetime((now() + timedelta( hours = int(hr), minutes = int(mn) )).isoformat()).strftime("%H:%M") }}
{% endif %}
{% else %}
Déconnecté
{% endif %}")
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 421, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1906, in _render_with_context
return template.render(**kwargs)
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/local/lib/python3.10/site-packages/jinja2/sandbox.py", line 326, in getattr
value = getattr(obj, attribute)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1932, in _fail_with_undefined_error
raise ex
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1923, in _fail_with_undefined_error
return super()._fail_with_undefined_error(*args, **kwargs)
jinja2.exceptions.UndefinedError: None has no element 0
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 537, in async_render_to_info
render_info._result = self.async_render(variables, strict=strict, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 423, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: UndefinedError: None has no element 0
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'InProgress' %}
{% set value = state_attr('sensor.psa', 'energy')[0].charging.remaining_time %}
{% if value.find("H") > 0 %}
{% set hr = value[value.find("T")+1:value.find("T")+ 3] %}
{% if hr[1:2] == "H" %}
{% set hr = "0" + hr[0] %}
{% endif %}
{% else %}
{% set hr = "00" %}
{% endif %}
{% if value.find("M") > 0 %}
{% set mn = value[value.find("M")-2:value.find("M")] %}
{% if mn[0:1] == "H" or mn[0:1] == "T" %}
{% set mn = "0" + mn[1] %}
{% endif %}
{% else %}
{% set mn = "00" %}
{% endif %}
{% set result = hr + ":" + mn %}
{% if result == "00:00" %}
{{ result }}
{% else %}
{{ as_datetime((now() + timedelta( hours = int(hr), minutes = int(mn) )).isoformat()).strftime("%H:%M") }}
{% endif %}
{% else %}
Déconnecté
{% endif %}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 0') while processing template 'Template("{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'InProgress' %}
{% set value = state_attr('sensor.psa', 'energy')[0].charging.remaining_time %}
{% if value.find("H") > 0 %}
{% set hr = value[value.find("T")+1:value.find("T")+ 3] %}
{% if hr[1:2] == "H" %}
{% set hr = "0" + hr[0] %}
{% endif %}
{% else %}
{% set hr = "00" %}
{% endif %}
{% if value.find("M") > 0 %}
{% set mn = value[value.find("M")-2:value.find("M")] %}
{% if mn[0:1] == "H" or mn[0:1] == "T" %}
{% set mn = "0" + mn[1] %}
{% endif %}
{% else %}
{% set mn = "00" %}
{% endif %}
{% set result = hr + ":" + mn %}
{% if result == "00:00" %}
{{ result }}
{% else %}
{{ as_datetime((now() + timedelta( hours = int(hr), minutes = int(mn) )).isoformat()).strftime("%H:%M") }}
{% endif %}
{% else %}
Déconnecté
{% endif %}")' for attribute '_attr_native_value' in entity 'sensor.e2008_fin_de_charge_estimee'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].charging.plugged }}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.psa', 'energy')[0].charging.plugged }}")
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 421, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1906, in _render_with_context
return template.render(**kwargs)
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/local/lib/python3.10/site-packages/jinja2/sandbox.py", line 326, in getattr
value = getattr(obj, attribute)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1932, in _fail_with_undefined_error
raise ex
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1923, in _fail_with_undefined_error
return super()._fail_with_undefined_error(*args, **kwargs)
jinja2.exceptions.UndefinedError: None has no element 0
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 537, in async_render_to_info
render_info._result = self.async_render(variables, strict=strict, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 423, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: UndefinedError: None has no element 0
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% if state_attr('sensor.psa', 'energy')[0].charging.plugged %}
{% if state_attr('sensor.psa', 'energy')[0].charging.charging_mode == 'Slow' %}
mdi:ev-plug-type2
{% elif state_attr('sensor.psa', 'energy')[0].charging.charging_mode == 'Quick' %}
mdi:ev-plug-ccs2
{% endif %}
{% else %}
mdi:power-plug-off-outline
{% endif %}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% if state_attr('sensor.psa', 'energy')[0].charging.plugged %}
{% if state_attr('sensor.psa', 'energy')[0].charging.charging_mode == 'Slow' %}
mdi:ev-plug-type2
{% elif state_attr('sensor.psa', 'energy')[0].charging.charging_mode == 'Quick' %}
mdi:ev-plug-ccs2
{% endif %}
{% else %}
mdi:power-plug-off-outline
{% endif %}")
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 421, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1906, in _render_with_context
return template.render(**kwargs)
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/local/lib/python3.10/site-packages/jinja2/sandbox.py", line 326, in getattr
value = getattr(obj, attribute)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1932, in _fail_with_undefined_error
raise ex
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1923, in _fail_with_undefined_error
return super()._fail_with_undefined_error(*args, **kwargs)
jinja2.exceptions.UndefinedError: None has no element 0
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 537, in async_render_to_info
render_info._result = self.async_render(variables, strict=strict, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 423, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: UndefinedError: None has no element 0
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].charging.plugged }}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% if state_attr('sensor.psa', 'energy')[0].charging.plugged %}
{% if state_attr('sensor.psa', 'energy')[0].charging.charging_mode == 'Slow' %}
mdi:ev-plug-type2
{% elif state_attr('sensor.psa', 'energy')[0].charging.charging_mode == 'Quick' %}
mdi:ev-plug-ccs2
{% endif %}
{% else %}
mdi:power-plug-off-outline
{% endif %}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 0') while processing template 'Template("{{ state_attr('sensor.psa', 'energy')[0].charging.plugged }}")' for attribute '_state' in entity 'binary_sensor.e2008_alimentation'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 0') while processing template 'Template("{% if state_attr('sensor.psa', 'energy')[0].charging.plugged %}
{% if state_attr('sensor.psa', 'energy')[0].charging.charging_mode == 'Slow' %}
mdi:ev-plug-type2
{% elif state_attr('sensor.psa', 'energy')[0].charging.charging_mode == 'Quick' %}
mdi:ev-plug-ccs2
{% endif %}
{% else %}
mdi:power-plug-off-outline
{% endif %}")' for attribute '_attr_icon' in entity 'binary_sensor.e2008_alimentation'
2022-07-25 09:29:32 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'None' has no attribute 'moving' when rendering '{{ state_attr('sensor.psa', 'kinetic').moving }}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'None' has no attribute 'geometry' when rendering '{{ state_attr('sensor.psa', 'last_position').geometry.coordinates[1] }}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.psa', 'last_position').geometry.coordinates[1] }}")
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 421, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1906, in _render_with_context
return template.render(**kwargs)
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/local/lib/python3.10/site-packages/jinja2/sandbox.py", line 326, in getattr
value = getattr(obj, attribute)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1932, in _fail_with_undefined_error
raise ex
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1923, in _fail_with_undefined_error
return super()._fail_with_undefined_error(*args, **kwargs)
jinja2.exceptions.UndefinedError: 'None' has no attribute 'geometry'
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 537, in async_render_to_info
render_info._result = self.async_render(variables, strict=strict, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 423, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: UndefinedError: 'None' has no attribute 'geometry'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'None' has no attribute 'geometry' when rendering '{{ state_attr('sensor.psa', 'last_position').geometry.coordinates[0] }}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.psa', 'last_position').geometry.coordinates[0] }}")
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 421, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1906, in _render_with_context
return template.render(**kwargs)
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/local/lib/python3.10/site-packages/jinja2/sandbox.py", line 326, in getattr
value = getattr(obj, attribute)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1932, in _fail_with_undefined_error
raise ex
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1923, in _fail_with_undefined_error
return super()._fail_with_undefined_error(*args, **kwargs)
jinja2.exceptions.UndefinedError: 'None' has no attribute 'geometry'
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 537, in async_render_to_info
render_info._result = self.async_render(variables, strict=strict, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 423, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: UndefinedError: 'None' has no attribute 'geometry'
2022-07-25 09:29:32 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'None' has no attribute 'moving' when rendering '{{ state_attr('sensor.psa', 'kinetic').moving }}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'None' has no attribute 'geometry' when rendering '{{ state_attr('sensor.psa', 'last_position').geometry.coordinates[1] }}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'None' has no attribute 'geometry' when rendering '{{ state_attr('sensor.psa', 'last_position').geometry.coordinates[0] }}'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: 'None' has no attribute 'geometry'') while processing template 'Template("{{ state_attr('sensor.psa', 'last_position').geometry.coordinates[1] }}")' for attribute 'latitude' in entity 'binary_sensor.e2008_deplacement'
2022-07-25 09:29:32 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: 'None' has no attribute 'geometry'') while processing template 'Template("{{ state_attr('sensor.psa', 'last_position').geometry.coordinates[0] }}")' for attribute 'longitude' in entity 'binary_sensor.e2008_deplacement'
2022-07-25 09:29:35 ERROR (SyncWorker_11) [homeassistant.components.command_line] Command failed: curl -k --silent "http://X.X.X.X:5000/get_vehicleinfo/XXXX?from_cache=1"
2022-07-25 09:29:36 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{% set value = value_json.preconditionning.air_conditioning.status %} {% set switch = states('switch.e2008_clim') %}
{% if value == 'Enabled' %}
mdi:car-defrost-front
{% elif value == 'Disabled' or value == 'Finished' %}
mdi:air-conditioner
{% else %}
mdi:alert
{% endif %}'
2022-07-25 09:29:36 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: None, template: {% set value = value_json.preconditionning.air_conditioning.status %} {% set switch = states('switch.e2008_clim') %}
{% if value == 'Enabled' %}
mdi:car-defrost-front
{% elif value == 'Disabled' or value == 'Finished' %}
mdi:air-conditioner
{% else %}
mdi:alert
{% endif %})
2022-07-25 09:29:40 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.preconditionning.air_conditioning.status == 'Enabled' }}'
2022-07-25 09:29:40 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: None, template: {{ value_json.preconditionning.air_conditioning.status == 'Enabled' }})
2022-07-25 09:29:41 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:05
2022-07-25 09:29:52 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiogithubapi/client.py", line 103, in async_call_api
result = await self._session.request(**request_arguments)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 535, in _request
conn = await self._connector.connect(
File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 542, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 907, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1175, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 986, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
sock = await self._connect_sock(
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
return await fut
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/system_health/__init__.py", line 103, in handle_info
await asyncio.gather(
File "/usr/src/homeassistant/homeassistant/components/system_health/__init__.py", line 68, in get_integration_info
data = await registration.info_callback(hass)
File "/config/custom_components/hacs/system_health.py", line 22, in system_health_info
response = await hacs.githubapi.rate_limit()
File "/usr/local/lib/python3.10/site-packages/aiogithubapi/github.py", line 210, in rate_limit
response = await self._client.async_call_api(endpoint="/rate_limit", **kwargs)
File "/usr/local/lib/python3.10/site-packages/aiogithubapi/client.py", line 105, in async_call_api
raise GitHubConnectionException(
aiogithubapi.exceptions.GitHubConnectionException: Request exception for 'https://api.github.com/rate_limit' with -
2022-07-25 09:29:55 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry XXX@XX.XX for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/binary_sensor/__init__.py", line 167, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 157, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-07-25 09:29:55 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry XXX@XX.XX for button
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/button/__init__.py", line 64, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 157, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-07-25 09:29:56 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry XXX@XX.XX for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 170, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 157, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-07-25 09:29:56 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry XXX@XX.XX for cover
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/cover/__init__.py", line 206, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 157, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-07-25 09:29:56 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry XXX@XX.XX for fan
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/fan/__init__.py", line 167, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 157, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-07-25 09:29:56 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry XXX@XX.XX for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 597, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 157, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-07-25 09:29:56 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry XXX@XX.XX for remote
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/remote/__init__.py", line 150, in async_setup_entry
return await cast(EntityComponent, hass.data[DOMAIN]).async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 157, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-07-25 09:29:56 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry XXX@XX.XX for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 240, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 157, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-07-25 09:29:56 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry XXX@XX.XX for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/switch/__init__.py", line 81, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 157, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-07-25 09:29:56 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry XXX@XX.XX for number
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 110, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 157, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-07-25 09:29:59 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:05
2022-07-25 09:30:03 WARNING (MainThread) [homeassistant.helpers.entity] Update of camera.xiaomi_cloud_map_extractor is taking over 10 seconds
2022-07-25 09:30:04 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:05
2022-07-25 09:30:06 ERROR (SyncWorker_7) [homeassistant.components.command_line] Command failed: curl -k --silent "http://X.X.X.X:5000/get_vehicleinfo/XXXX?from_cache=1"
2022-07-25 09:30:07 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{% set value = value_json.preconditionning.air_conditioning.status %} {% set switch = states('switch.e2008_clim') %}
{% if value == 'Enabled' %}
mdi:car-defrost-front
{% elif value == 'Disabled' or value == 'Finished' %}
mdi:air-conditioner
{% else %}
mdi:alert
{% endif %}'
2022-07-25 09:30:07 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: None, template: {% set value = value_json.preconditionning.air_conditioning.status %} {% set switch = states('switch.e2008_clim') %}
{% if value == 'Enabled' %}
mdi:car-defrost-front
{% elif value == 'Disabled' or value == 'Finished' %}
mdi:air-conditioner
{% else %}
mdi:alert
{% endif %})
2022-07-25 09:30:07 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.preconditionning.air_conditioning.status == 'Enabled' }}'
2022-07-25 09:30:07 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: None, template: {{ value_json.preconditionning.air_conditioning.status == 'Enabled' }})
2022-07-25 09:30:20 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:05
2022-07-25 09:30:33 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'Failure' %}
Defaut
{% elif value == 'InProgress' %}
En charge
{% elif value == 'Stopped' %}
Pause
{% elif value == 'Finished' %}
Terminé
{% elif value == 'Disconnected' %}
Déconnecté
{% else %}
Inconnu
{% endif %}'
2022-07-25 09:30:33 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'Failure' %}
mdi:alert
{% elif value == 'InProgress' %}
mdi:play
{% elif value == 'Stopped' %}
mdi:pause
{% elif value == 'Finished' %}
mdi:stop
{% else %}
mdi:power-plug-off-outline
{% endif %}'
2022-07-25 09:30:33 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'None' has no attribute 'geometry' when rendering '{{ state_attr('sensor.psa', 'last_position').geometry.coordinates[1] }}'
2022-07-25 09:30:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'None' has no attribute 'geometry' when rendering '{{ state_attr('sensor.psa', 'last_position').geometry.coordinates[0] }}'
2022-07-25 09:30:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].autonomy }}'
2022-07-25 09:30:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].charging.charging_rate * 0.163 }}'
2022-07-25 09:30:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].charging.plugged }}'
2022-07-25 09:30:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% if state_attr('sensor.psa', 'energy')[0].charging.plugged %}
{% if state_attr('sensor.psa', 'energy')[0].charging.charging_mode == 'Slow' %}
mdi:ev-plug-type2
{% elif state_attr('sensor.psa', 'energy')[0].charging.charging_mode == 'Quick' %}
mdi:ev-plug-ccs2
{% endif %}
{% else %}
mdi:power-plug-off-outline
{% endif %}'
2022-07-25 09:30:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].level }}'
2022-07-25 09:30:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'InProgress' %}
{% set value = state_attr('sensor.psa', 'energy')[0].charging.remaining_time %}
{% if value.find("H") > 0 %}
{% set hr = value[value.find("T")+1:value.find("T")+ 3] %}
{% if hr[1:2] == "H" %}
{% set hr = "0" + hr[0] %}
{% endif %}
{% else %}
{% set hr = "00" %}
{% endif %}
{% if value.find("M") > 0 %}
{% set mn = value[value.find("M")-2:value.find("M")] %}
{% if mn[0:1] == "H" or mn[0:1] == "T" %}
{% set mn = "0" + mn[1] %}
{% endif %}
{% else %}
{% set mn = "00" %}
{% endif %}
{% set result = hr + ":" + mn %}
{% if result == "00:00" %}
{{ result }}
{% else %}
{{ as_datetime((now() + timedelta( hours = int(hr), minutes = int(mn) )).isoformat()).strftime("%H:%M") }}
{% endif %}
{% else %}
Déconnecté
{% endif %}'
2022-07-25 09:30:37 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:05
2022-07-25 09:30:37 ERROR (SyncWorker_0) [homeassistant.components.command_line] Command failed: curl -k --silent "http://X.X.X.X:5000/get_vehicleinfo/XXXX?from_cache=1"
2022-07-25 09:30:37 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{% set value = value_json.preconditionning.air_conditioning.status %} {% set switch = states('switch.e2008_clim') %}
{% if value == 'Enabled' %}
mdi:car-defrost-front
{% elif value == 'Disabled' or value == 'Finished' %}
mdi:air-conditioner
{% else %}
mdi:alert
{% endif %}'
2022-07-25 09:30:37 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: None, template: {% set value = value_json.preconditionning.air_conditioning.status %} {% set switch = states('switch.e2008_clim') %}
{% if value == 'Enabled' %}
mdi:car-defrost-front
{% elif value == 'Disabled' or value == 'Finished' %}
mdi:air-conditioner
{% else %}
mdi:alert
{% endif %})
2022-07-25 09:30:37 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.preconditionning.air_conditioning.status == 'Enabled' }}'
2022-07-25 09:30:37 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: None, template: {{ value_json.preconditionning.air_conditioning.status == 'Enabled' }})
2022-07-25 09:30:47 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:05
2022-07-25 09:30:51 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.openweathermap_visibility (m) does not match the unit of already compiled statistics (km). Generation of long term statistics will be suppressed unless the unit changes back to km. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2022-07-25 09:30:57 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:05
2022-07-25 09:31:06 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiogithubapi/client.py", line 103, in async_call_api
result = await self._session.request(**request_arguments)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 559, in _request
await resp.start(conn)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 898, in start
message, payload = await protocol.read() # type: ignore[union-attr]
File "/usr/local/lib/python3.10/site-packages/aiohttp/streams.py", line 616, in read
await self._waiter
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/system_health/__init__.py", line 103, in handle_info
await asyncio.gather(
File "/usr/src/homeassistant/homeassistant/components/system_health/__init__.py", line 68, in get_integration_info
data = await registration.info_callback(hass)
File "/config/custom_components/hacs/system_health.py", line 22, in system_health_info
response = await hacs.githubapi.rate_limit()
File "/usr/local/lib/python3.10/site-packages/aiogithubapi/github.py", line 210, in rate_limit
response = await self._client.async_call_api(endpoint="/rate_limit", **kwargs)
File "/usr/local/lib/python3.10/site-packages/aiogithubapi/client.py", line 105, in async_call_api
raise GitHubConnectionException(
aiogithubapi.exceptions.GitHubConnectionException: Request exception for 'https://api.github.com/rate_limit' with -
2022-07-25 09:31:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'Failure' %}
Defaut
{% elif value == 'InProgress' %}
En charge
{% elif value == 'Stopped' %}
Pause
{% elif value == 'Finished' %}
Terminé
{% elif value == 'Disconnected' %}
Déconnecté
{% else %}
Inconnu
{% endif %}'
2022-07-25 09:31:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'Failure' %}
mdi:alert
{% elif value == 'InProgress' %}
mdi:play
{% elif value == 'Stopped' %}
mdi:pause
{% elif value == 'Finished' %}
mdi:stop
{% else %}
mdi:power-plug-off-outline
{% endif %}'
2022-07-25 09:31:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'None' has no attribute 'geometry' when rendering '{{ state_attr('sensor.psa', 'last_position').geometry.coordinates[1] }}'
2022-07-25 09:31:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'None' has no attribute 'geometry' when rendering '{{ state_attr('sensor.psa', 'last_position').geometry.coordinates[0] }}'
2022-07-25 09:31:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].autonomy }}'
2022-07-25 09:31:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].charging.charging_rate * 0.163 }}'
2022-07-25 09:31:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].charging.plugged }}'
2022-07-25 09:31:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% if state_attr('sensor.psa', 'energy')[0].charging.plugged %}
{% if state_attr('sensor.psa', 'energy')[0].charging.charging_mode == 'Slow' %}
mdi:ev-plug-type2
{% elif state_attr('sensor.psa', 'energy')[0].charging.charging_mode == 'Quick' %}
mdi:ev-plug-ccs2
{% endif %}
{% else %}
mdi:power-plug-off-outline
{% endif %}'
2022-07-25 09:31:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{{ state_attr('sensor.psa', 'energy')[0].level }}'
2022-07-25 09:31:34 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: None has no element 0 when rendering '{% set value = state_attr('sensor.psa', 'energy')[0].charging.status %} {% if value == 'InProgress' %}
{% set value = state_attr('sensor.psa', 'energy')[0].charging.remaining_time %}
{% if value.find("H") > 0 %}
{% set hr = value[value.find("T")+1:value.find("T")+ 3] %}
{% if hr[1:2] == "H" %}
{% set hr = "0" + hr[0] %}
{% endif %}
{% else %}
{% set hr = "00" %}
{% endif %}
{% if value.find("M") > 0 %}
{% set mn = value[value.find("M")-2:value.find("M")] %}
{% if mn[0:1] == "H" or mn[0:1] == "T" %}
{% set mn = "0" + mn[1] %}
{% endif %}
{% else %}
{% set mn = "00" %}
{% endif %}
{% set result = hr + ":" + mn %}
{% if result == "00:00" %}
{{ result }}
{% else %}
{{ as_datetime((now() + timedelta( hours = int(hr), minutes = int(mn) )).isoformat()).strftime("%H:%M") }}
{% endif %}
{% else %}
Déconnecté
{% endif %}'
2022-07-25 09:32:20 WARNING (MainThread) [homeassistant.components.automation.e2008_gps_tracking] e2008 GPS Tracking: Already running
2022-07-25 09:33:20 WARNING (MainThread) [homeassistant.components.automation.e2008_gps_tracking] e2008 GPS Tracking: Already running
2022-07-25 09:39:56 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:05
2022-07-25 09:49:39 WARNING (MainThread) [homeassistant.helpers.entity] Updating state for sensor.wc_pressure (<class 'homeassistant.components.zha.sensor.Pressure'>) took 1.751 seconds. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22
2022-07-25 10:00:17 WARNING (SyncWorker_8) [custom_components.xiaomi_cloud_map_extractor.camera] Unable to retrieve map data
2022-07-25 10:13:20 WARNING (MainThread) [homeassistant.components.automation.e2008_gps_tracking] e2008 GPS Tracking: Already running