bieniu / ha-shellies-discovery-gen2

Script that adds MQTT discovery support for Shellies Gen2 devices
Apache License 2.0
98 stars 18 forks source link

value_json.target warning #431

Closed 1mfaasj closed 2 months ago

1mfaasj commented 2 months ago

Hi, I'm not 100% sure if I'm at the correct address here but I get this warning A LOT:

Logger: homeassistant.helpers.template
Bron: helpers/template.py:2629
Eerst voorgekomen: 21 juni 2024 om 20:16:44 (9233 gebeurtenissen)
Laatst gelogd: 10:12:07

Template variable warning: 'dict object' has no attribute 'target' when rendering '{{value_json.target}}'

Do you know if this comes from one of your shellies scripts? and why it does that? When I search for it in python_scripts\shellies_discovery_gen2.py

I came across this line that includes it: Regel 388: TPL_TARGET_TEMPERATURE = "{{value_json.target_C}}"

My versions: shellies discovery 5.1.0 shellies discovery gen2 2.30.0 HA: 2024.6

bieniu commented 2 months ago

You can search value_json.target using MQTT Explorer.

1mfaasj commented 2 months ago

I have the mqtt explorer tool open but don't see anything yet, need to wait a bit I think or is there a way to force something?

bieniu commented 2 months ago

You don't need to wait, use search box. Templates are in config payloads so they are retained.

1mfaasj commented 2 months ago

thanks for the suggestion! another integration was causing this.