bieniu/ha-shellies-discovery-gen2

value_json.target warning

Closed this issue · 4 comments

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

You can search value_json.target using MQTT Explorer.

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?

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

thanks for the suggestion! another integration was causing this.