This is a template trigger? IOs this an automation and a sensor? Not sure what you have going on.
However the trigger format appears to be the deprecated (if a template) or legacy, either way look at the HA Docs and see how it needs to look now.
If this is a template, this thread might help. Deprecation of legacy template entities in 2025.12
Hello @Sir_Goodenough ,
thank you for reply.
The trigger is obviously that of an automation
id: "4997"
alias: Termosifoni - Controllo automatico new
description: Procede con l'accensione automatica del termosifone quando la temperatura va sotto i 19.5 gradi
trigger:
- platform: numeric_state
entity_id: sensor.valvola_letto_current_temp
below: 19.5
condition:
...
I’ve been trying to figure this out since this morning, but I can’t seem to fix this error. Could it be related to the new sensor format? Yet the sensor seems to be fine.
sensor.valvola_letto_current_temp
state: 19.5
unit_of_measurement: °C
friendly_name: Valvola Letto Current Temp
First of all, you would not need the template sensor just for the sake of the trigger. The trigger can test for an attribute too.
Having said that, what you show would also work, but you are not showing the full automation, nor where you get the error. It is quite likely the error is not for the snippets you show.
If the error is in the log, likely the log shows more info.
The error also clearly mentions the word includes, which is not in what you show. Includes is not a keyword HA uses afaik, so where does it say includes in either your configuration files or your automation?
Having a similar warning, but mine’s saying “error in describing condition” and that “e is undefined”.
Error in traces:
if/condition/1
Iteration 3
[Error in describing condition: can’t access property “includes”, e is undefined]
Executed: December 14, 2025 at 9:10:11 PM
Result:
The error is just something in the GUI, it normally describes the trigger there, but it can’t as you are using the legacy trigger syntax using platform instead of trigger.
I apologize for the delay in responding.
This is my full automation
id: "4567"
alias: Termosifoni - Controllo automatico
description: Procede con l'accensione automatica del termosifone quando la temperatura va sotto i 19.5 gradi
trigger:
- platform: numeric_state
entity_id: sensor.valvola_letto_current_temp
below: 19.5
condition:
not:
- condition: state
entity_id: climate.termostato
attribute: hvac_action
state: 'heating'
action:
- service: climate.set_temperature
entity_id: climate.valvola_letto
data:
temperature: 19.5
The automations work. There’s only an error in displaying the description for the trigger. If that bothers you, you’ll need to change platform to trigger
In the traces I see this code snippet, but in which file do I have to change platform to trigger?
platform: numeric_state
entity_id: sensor.shelly1pm_trockner_power
for:
minutes: 3
above: 250
I had “platform” in the “automations.yaml” file, but the GUI showed the correct YAML code.
Made a dummy change in one automation using the GUI and saved it.
The automations.yaml file got changed, but only that specific edited automation.
The others are still in the old format.
So you can edit each automation and it will change those in the file.
(using HAOS: 2025.12.5)