Hallo zusammen,
seit meinem update von AHC V5.3 to V5.5, sehe ich im Logger folgende Fehlermeldung:
Logger:
homeassistant.components.automation.thermostatsteuerung_wzez_neu
Quelle: components/automation/init .py:814
Integration: Automation (Dokumentation, Probleme)
Erstmals aufgetreten: 16:30:19 (4 Vorkommnisse)
Zuletzt protokolliert: 16:32:24
Error rendering variables: ValueError: Template error: float got invalid input ‘None’ when rendering template ‘{% if trigger.id == ‘temperature_change_valve_target’ %} {{ trigger.to_state.attributes.temperature | float }} {% else %} {{ none }} {% endif %}’ but no default was specified
Das ganze tritt auf, wenn der Thermostat durch den Fenstersensor beim Öffnen des Fensters auf „off“ geschaltet wird.
Das Schalten des Thermostat beim Öffnen/Schliessen des Fensters funktioniert. Es kommt trotzdem diese Fehlermeldung.
Hat jemand einen Tipp dazu?
ppaulh
11. Mai 2026 um 11:10
2
Ich scheine wohl der einzige mit dieser Fehlermeldung zu sein.
Gibt es evt. diese Art von Fehlerneldung bei einer anderen Komponente?
Dann könnte der dortige Lösungsansatz evtl. mir weiter helfen.
totow
11. Mai 2026 um 11:29
3
ppaulh:
float got invalid input
Guten Morgen,
ich habe nun schon ewig dies umgesetzt Mit Home Assistant richtig lüften und Schimmelbildung vorbeugen . Nun störte mich beim Neustart die FM nicht. Aber so langsam schon.
Was kann ich machen?
Problem: Beim Neustart kommt immer ein template error im log pro template:
ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ ( float(states('sensor.absolute_luftfeuchtigkeit_gastezimmer')) - float(states('sensor.absolute_luftfeuchtigkeit_aussen'…
I updated to 2021.10.0 and now getting a warning that I need a default value for my template. Basically there is a bug I find with my Ecobee that it keeps changing to a super low volume. So whenever it drops below 80% volume I force it back up. ...
Reading time: 1 mins 🕑
Likes: 1 ❤
Edit:
hier spezifisch zu AHC was ja ein Blueprint ist, da wurde auch schon ein Fehler geöffnet, muss nur noch gefixt werden.
offen 12:00PM - 23 Mar 26 UTC
**Bug description**
When the `temperature_change_valve_target` trigger fires an… d the entity becomes unavailable at the same moment, `trigger.to_state` is `None`. The following variable templates then raise `UndefinedError: 'None' has no attribute 'attributes'`:
- `change_temperature` — accesses `trigger.to_state.attributes.temperature`
- `is_ui_change` — accesses `trigger.to_state.context.user_id`
- `is_physical_change` — accesses `trigger.to_state.context.user_id` and `context.parent_id`
**Error from HA logs**
```
homeassistant.helpers.template: Template variable error: 'None' has no attribute 'attributes'
when rendering '{% if trigger.id == 'temperature_change_valve_target' %}
{{ trigger.to_state.attributes.temperature | float }}
{% else %} {{ none }} {% endif %}'
homeassistant.components.automation.advanced_heating_control_bedroom_ac:
Error rendering variables: UndefinedError: 'None' has no attribute 'attributes'
```
**Environment**
- Home Assistant: 2025.x
- Blueprint: Advanced Heating Control V5 (min_version: 2024.10.0)
- Affected automations: any automation using `temperature_change_valve_target` trigger
**Root cause**
In HA, a state trigger can fire with `trigger.to_state = None` when the entity transitions to an unavailable/unknown state. The blueprint does not guard against this case.
**Proposed fix**
Add `and trigger.to_state is not none` guard in all three affected templates:
```yaml
change_temperature: >
{% if trigger.id == 'temperature_change_valve_target' and trigger.to_state is not none %}
{{ trigger.to_state.attributes.temperature | float }}
{% else %}
{{ none }}
{% endif %}
is_ui_change: >
{{ is_ui_change_enabled and
trigger_id_defined and
trigger.id == 'temperature_change_valve_target' and
trigger.to_state is not none and
trigger.to_state.context.user_id is not none }}
is_physical_change: >
{{ is_physical_change_enabled and
trigger_id_defined and
trigger.id == 'temperature_change_valve_target' and
trigger.to_state is not none and
trigger.to_state.context.user_id is none and
trigger.to_state.context.parent_id is none }}
```
LG
1 „Gefällt mir“
ppaulh
11. Mai 2026 um 16:59
4
@totow
Vielen Dank.
Hab zwar im AHC-Forum gesucht. Auf die open issues in github bin ich nicht gekommen.