Erreur homeassistant.helpers.template

Bonjour,

j’ai un souci de message d’erreur dans le journal de HA que je n’arrive pas a comprendre

si quelqu 'un a une idée je suis preneur

Enregistreur: homeassistant.helpers.template
Source: helpers/template.py:776
S'est produit pour la première fois: 19:13:44 (54 occurrences)
Dernier enregistrement: 19:21:37
Error parsing value: access to attribute 'update' of 'dict' object is unsafe. (value: {"child_lock":"UNLOCK","countdown":0,"current":0,"energy":74.21,"indicator_mode":"off/on","linkquality":61,"power":0,"power_outage_memory":"restore","state":"OFF","voltage":236}, template: {"in_progress": {{ iif(value_json['update']['state'] == 'updating', 'true', 'false') }} })
Error parsing value: access to attribute 'update' of 'dict' object is unsafe. (value: {"child_lock":"UNLOCK","countdown":0,"current":0,"energy":74.21,"indicator_mode":"off/on","linkquality":61,"power":0,"power_outage_memory":"restore","state":"OFF","voltage":236}, template: {{ value_json['update']['latest_version'] }})
Error parsing value: access to attribute 'update' of 'dict' object is unsafe. (value: {"child_lock":"UNLOCK","countdown":null,"current":0,"energy":1.83,"indicator_mode":"off/on","linkquality":18,"power":0,"power_outage_memory":"restore","state":"OFF","voltage":236}, template: {{ value_json['update']['installed_version'] }})
Error parsing value: access to attribute 'update' of 'dict' object is unsafe. (value: {"child_lock":"UNLOCK","countdown":null,"current":0,"energy":1.83,"indicator_mode":"off/on","linkquality":18,"power":0,"power_outage_memory":"restore","state":"OFF","voltage":236}, template: {{ value_json['update']['latest_version'] }})
Error parsing value: access to attribute 'update' of 'dict' object is unsafe. (value: {"child_lock":"UNLOCK","countdown":null,"current":0,"energy":1.83,"indicator_mode":"off/on","linkquality":18,"power":0,"power_outage_memory":"restore","state":"OFF","voltage":236}, template: {"in_progress": {{ iif(value_json['update']['state'] == 'updating', 'true', 'false') }} })

et en rouge dans le journal complet

2024-06-04 19:16:11.758 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: access to attribute 'update' of 'dict' object is unsafe. (value: {"child_lock":"UNLOCK","countdown":null,"current":0,"energy":1.83,"indicator_mode":"off/on","linkquality":61,"power":0,"power_outage_memory":"restore","state":"OFF","voltage":236}, template: {{ value_json['update']['latest_version'] }})

2024-06-04 19:16:11.761 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: access to attribute 'update' of 'dict' object is unsafe. (value: {"child_lock":"UNLOCK","countdown":null,"current":0,"energy":1.83,"indicator_mode":"off/on","linkquality":61,"power":0,"power_outage_memory":"restore","state":"OFF","voltage":236}, template: {"in_progress": {{ iif(value_json['update']['state'] == 'updating', 'true', 'false') }} })

Ma configuration


[center]```## System Information

version core-2024.6.0b6
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.28-haos-raspi
arch aarch64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.34.0
Stage running
Available Repositories 1462
Downloaded Repositories 6
HACS Data ok
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 12.3
update_channel beta
supervisor_version supervisor-2024.06.0
agent_version 1.6.0
docker_version 25.0.5
disk_total 117.3 GB
disk_used 15.8 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board rpi3-64
supervisor_api ok
version_api ok
installed_addons Mosquitto broker (6.4.0), File editor (5.8.0), SomfyProtect2MQTT (2024.3.0), Zigbee2MQTT (1.37.1-1), Terminal & SSH (9.14.0), Filebrowser (2.23.0_14)
Dashboards
dashboards 2
resources 3
views 6
mode storage
Recorder
oldest_recorder_run 25 mai 2024 à 08:13
current_recorder_run 4 juin 2024 à 19:09
estimated_db_size 308.84 MiB
database_engine sqlite
database_version 3.44.2
Solcast PV Forecast
can_reach_server ok
used_requests 0
rooftop_site_count 0
```[/center]

Salut,

N’oublie pas d’utiliser la mise en forme pour rendre les infos plus lisibles.
A regarder mais on dirait que le format des données que tu récupères ne plait pas bien à HA.
La clé ‹ update › existe bien ?

merci pour la mise en page

la clé oui je pense puisque je peut mettre a jour mes entité ou ha . mais dans le doute ou est ce que je verifie ça

Personne , n 'a une idée pour aiguiller mes recherches .

ce matin 1200 fois l 'erreur et ça fait planter HA ou bout d 'un moment