Template Error/ TemplateSyntaxError/ UI

Hello all,
I’m currently facing a problem that I can’t get solved no matter what approach I take.
Since the latest Home Assistant update (2023.9.3) I get the error message below.

Even if I remove my templats in the UI ( Mushroom Template Card) as well as in the Automation the following error still comes up.
The way the code is just presented in the error report here, it is not written anywhere.
You can find the original code below the bug report.
At the end you will find a picture, what the code does.
(Convert the battery voltage into a percentage value and change the symbol and color, based on the battery voltage).
Batter overview, turns red as soon as a battery voltage has fallen below the limit value and the name of the device is displayed, where the battery must be replaced.

Can you help me here how I can counteract the problem?
Also, I can’t get into the specified file path even via MobaExtrem, which is further annoying me.

I am more than grateful for any help.

Logger: homeassistant.helpers.event
Source: helpers/template.py:570
First occurred: 22:54:13 (17 occurrences)
Last logged: 22:54:13

Error while processing template: Template<template=({% set voltage = states('sensor.aussensensor_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Außensensor leer {% endif %} {% set voltage = states('sensor.wohnzimmer_links_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Wohnzimmer links Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.wohnzimmer_rechts_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Wohnzimmer rechts Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.kuche_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Küche Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.flur_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Flur Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.gaste_wc_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Gäste WC Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.schlafzimmer_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Schlafzimmer Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.og_links_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie OG linkes Zimmer Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.og_rechts_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie OG rechtes Zimmer Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.og_bad_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie OG Bad Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.keller_flur_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Keller Flur Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.hmip_etrv_2_000a1d89b4b8bd_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Waschküche Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.wohnzimmer_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie Wohnzimmerfenster leer {% endif %} {% set voltage = states('sensor.og_rechts_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie OG rechtes Zimmer Fenster leer {% endif %} {% set voltage = states('sensor.og_bad_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie OG Badezimmerfenster leer {% endif %} {% set voltage = states('sensor.kuche_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie Küchenfenster leer {% endif %} {% set voltage = states('sensor.fenster_schlafzimmer_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Schlafzimmerfenster leer {% endif %}) renders=6>
Error while processing template: Template<template=({% set voltage = states('sensor.aussensensor_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Außensensor leer {% endif %} {% set voltage = states('sensor.wohnzimmer_links_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Wohnzimmer links Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.wohnzimmer_rechts_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Wohnzimmer rechts Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.kuche_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Küche Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.flur_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Flur Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.gaste_wc_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Gäste WC Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.schlafzimmer_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Schlafzimmer Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.og_links_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie OG linkes Zimmer Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.og_rechts_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie OG rechtes Zimmer Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.og_bad_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie OG Bad Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.keller_flur_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Keller Flur Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.hmip_etrv_2_000a1d89b4b8bd_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Waschküche Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.wohnzimmer_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie Wohnzimmerfenster leer {% endif %} {% set voltage = states('sensor.og_rechts_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie OG rechtes Zimmer Fenster leer {% endif %} {% set voltage = states('sensor.og_bad_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie OG Badezimmerfenster leer {% endif %} {% set voltage = states('sensor.kuche_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie Küchenfenster leer {% endif %} {% set voltage = states('sensor.fenster_schlafzimmer_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Schlafzimmerfenster leer {% endif %}) renders=8>
Error while processing template: Template<template=({% set voltage = states('sensor.aussensensor_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Außensensor leer {% endif %} {% set voltage = states('sensor.wohnzimmer_links_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Wohnzimmer links Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.wohnzimmer_rechts_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Wohnzimmer rechts Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.kuche_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Küche Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.flur_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Flur Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.gaste_wc_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Gäste WC Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.schlafzimmer_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Schlafzimmer Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.og_links_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie OG linkes Zimmer Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.og_rechts_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie OG rechtes Zimmer Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.og_bad_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie OG Bad Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.keller_flur_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Keller Flur Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.hmip_etrv_2_000a1d89b4b8bd_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Waschküche Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.wohnzimmer_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie Wohnzimmerfenster leer {% endif %} {% set voltage = states('sensor.og_rechts_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie OG rechtes Zimmer Fenster leer {% endif %} {% set voltage = states('sensor.og_bad_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie OG Badezimmerfenster leer {% endif %} {% set voltage = states('sensor.kuche_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie Küchenfenster leer {% endif %} {% set voltage = states('sensor.fenster_schlafzimmer_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Schlafzimmerfenster leer {% endif %}) renders=10>
Error while processing template: Template<template=({% set voltage = states('sensor.aussensensor_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Außensensor leer {% endif %} {% set voltage = states('sensor.wohnzimmer_links_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Wohnzimmer links Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.wohnzimmer_rechts_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Wohnzimmer rechts Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.kuche_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Küche Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.flur_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Flur Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.gaste_wc_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Gäste WC Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.schlafzimmer_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Schlafzimmer Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.og_links_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie OG linkes Zimmer Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.og_rechts_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie OG rechtes Zimmer Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.og_bad_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie OG Bad Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.keller_flur_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Keller Flur Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.hmip_etrv_2_000a1d89b4b8bd_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Waschküche Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.wohnzimmer_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie Wohnzimmerfenster leer {% endif %} {% set voltage = states('sensor.og_rechts_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie OG rechtes Zimmer Fenster leer {% endif %} {% set voltage = states('sensor.og_bad_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie OG Badezimmerfenster leer {% endif %} {% set voltage = states('sensor.kuche_fenster_operating_voltage') | float %} {% if voltage >= 1.8 %} {% else %} Batterie Küchenfenster leer {% endif %} {% set voltage = states('sensor.fenster_schlafzimmer_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Schlafzimmerfenster leer {% endif %}) renders=2>
Error while processing template: Template<template=({% set voltage = states('sensor.aussensensor_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Außensensor leer {% endif %} {% set voltage = states('sensor.wohnzimmer_links_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Wohnzimmer links Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.wohnzimmer_rechts_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Wohnzimmer rechts Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.kuche_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Küche Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.flur_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Flur Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.gaste_wc_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Gäste WC Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.schlafzimmer_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Schlafzimmer Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.og_links_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie OG linkes Zimmer Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.og_rechts_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie OG rechtes Zimmer Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.og_bad_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie OG Bad Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.keller_flur_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Keller Flur Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.hmip_etrv_2_000a1d89b4b8bd_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Waschküche Heizungsthermostat leer {% endif %} {% set voltage = states('sensor.wohnzimmer_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie Wohnzimmerfenster leer {% endif %} {% set voltage = states('sensor.og_rechts_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie OG rechtes Zimmer Fenster leer {% endif %} {% set voltage = states('sensor.og_bad_fenster_operating_voltage') | float %} {% if voltage >= 1.2 %} {% else %} Batterie OG Badezimmerfenster leer {% endif %} {% set voltage = states('sensor.kuche_fenster_operating_voltage') | float %} {% if voltage >= 1.8 %} {% else %} Batterie Küchenfenster leer {% endif %} {% set voltage = states('sensor.fenster_schlafzimmer_operating_voltage') | float %} {% if voltage >= 2.3 %} {% else %} Batterie Schlafzimmerfenster leer {% endif %}) renders=4>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 568, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2198, in _render_with_context
    return template.render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 1, in top-level template code
TypeError: '>' not supported between instances of 'str' and 'float'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 694, in async_render_to_info
    render_info._result = self.async_render(
                          ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 570, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: TypeError: '>' not supported between instances of 'str' and 'float'

Original codes:

type: horizontal-stack
cards:
  - type: custom:mushroom-template-card
    primary: Spannung Batterie
    secondary: >
      Küche Fenster

      {{ ((100-(1.6-states('sensor.kuche_fenster_operating_voltage')|float) *
      200) | round(1)) }}%

      {{ states('sensor.kuche_fenster_operating_voltage') }} V
    icon: >+

      {% if states('sensor.kuche_fenster_operating_voltage') in
      ('unavailable','unknown') %}

      mdi:lan-disconnect

      {% elif states('sensor.kuche_fenster_operating_voltage')|float >= 1.4  %}

      mdi:battery-high

      {% elif states('sensor.kuche_fenster_operating_voltage')|float >= 1.3 %}

      mdi:battery-medium

      {% elif states('sensor.kuche_fenster_operating_voltage')|float >= 1.2 %}

      mdi:battery-low

      {% else %}

      mdi:battery-alert-variant-outline

      {% endif %}


    entity: ''
    icon_color: >+

      {% if states('sensor.kuche_fenster_operating_voltage') in
      ('unavailable','unknown') %}

      purple

      {% elif states('sensor.kuche_fenster_operating_voltage')|float >= 1.4  %}

      green

      {% elif states('sensor.kuche_fenster_operating_voltage')|float >= 1.3 %}

      yellow

      {% elif states('sensor.kuche_fenster_operating_voltage')|float >= 1.2 %}

      orange

      {% else %}

      red

      {% endif %}


    multiline_secondary: true
    layout: vertical
    fill_container: true
    tap_action:
      action: none
    hold_action:
      action: none
    double_tap_action:
      action: none
  - type: custom:mushroom-template-card
    primary: Spannung Batterie
    secondary: >
      Wohnz. Fenster

      {{ ((100-(1.6-states('sensor.wohnzimmer_fenster_operating_voltage')|float)
      * 200) | round(1)) }}%

      {{ states('sensor.wohnzimmer_fenster_operating_voltage') }} V
    icon: >+

      {% if states('sensor.wohnzimmer_fenster_operating_voltage') in
      ('unavailable','unknown') %}

      mdi:lan-disconnect

      {% elif states('sensor.wohnzimmer_fenster_operating_voltage')|float >=
      1.4  %}

      mdi:battery-high

      {% elif states('sensor.wohnzimmer_fenster_operating_voltage')|float >= 1.3
      %}

      mdi:battery-medium

      {% elif states('sensor.wohnzimmer_fenster_operating_voltage')|float >= 1.2
      %}

      mdi:battery-low

      {% else %}

      mdi:battery-alert-variant-outline

      {% endif %}


    entity: ''
    icon_color: >+

      {% if states('sensor.wohnzimmer_fenster_operating_voltage') in
      ('unavailable','unknown') %}

      purple

      {% elif states('sensor.wohnzimmer_fenster_operating_voltage')|float >=
      1.4  %}

      green

      {% elif states('sensor.wohnzimmer_fenster_operating_voltage')|float >= 1.3
      %}

      yellow

      {% elif states('sensor.wohnzimmer_fenster_operating_voltage')|float >= 1.2
      %}

      orange

      {% else %}

      red

      {% endif %}


    multiline_secondary: true
    layout: vertical
    fill_container: true
    tap_action:
      action: none
    hold_action:
      action: none
    double_tap_action:
      action: none

type: horizontal-stack
title: Batterie Übersicht
cards:
  - type: custom:button-card
    entity: input_boolean.battery_alert_helper
    label: |
      [[[
        var bri = states['input_boolean.warnung_batterie'].attributes.brightness;
        return 'Alarm leere Batterie: ' + (bri ? bri : '0') + '%';
      ]]]
    show_label: false
    show_state: true
    icon: mdi:battery-alert
    color: red
    name: Batterie leer
    size: 100%
    styles:
      card:
        - height: 100px
        - width: 200px
      label:
        - color: white
        - font-size: 10px
        - justify-self: start
        - padding: 0px 5px
      name:
        - text-transform: uppercase
        - letter-spacing: 0.1em
        - font-familly: cursive
        - justify-self: start
        - padding: 0px 32px
      state:
        - justify-self: start
        - font-size: 10px
        - padding: 0px 5px
    state:
      - value: 'on'
        styles:
          state:
            - color: red
      - value: 'off'
        styles:
          state:
            - color: green
          card:
            - filter: brightness(100%)
  - type: markdown
    content: >-
      {% set voltage = states('sensor.aussensensor_operating_voltage') | float
      %}

      {% if voltage >= 2.3 %}

      {% else %}

      Batterie Außensensor leer

      {% endif %}


      {% set voltage = states('sensor.wohnzimmer_links_operating_voltage') |
      float %}

      {% if voltage >= 2.3 %}

      {% else %}

      Batterie Wohnzimmer links Heizungsthermostat leer

      {% endif %}


      {% set voltage = states('sensor.wohnzimmer_rechts_operating_voltage') |
      float %}

      {% if voltage >= 2.3 %}

      {% else %}

      Batterie Wohnzimmer rechts Heizungsthermostat leer

      {% endif %}


      {% set voltage = states('sensor.kuche_operating_voltage') | float %}

      {% if voltage >= 2.3 %}

      {% else %}

      Batterie Küche Heizungsthermostat leer

      {% endif %}


      {% set voltage = states('sensor.flur_operating_voltage') | float %}

      {% if voltage >= 2.3 %}

      {% else %}

      Batterie Flur Heizungsthermostat leer

      {% endif %}


      {% set voltage = states('sensor.gaste_wc_operating_voltage') | float %}

      {% if voltage >= 2.3 %}

      {% else %}

      Batterie Gäste WC Heizungsthermostat leer

      {% endif %}


      {% set voltage = states('sensor.schlafzimmer_operating_voltage') | float
      %}

      {% if voltage >= 2.3 %}

      {% else %}

      Batterie Schlafzimmer Heizungsthermostat leer

      {% endif %}


      {% set voltage = states('sensor.og_links_operating_voltage') | float %}

      {% if voltage >= 2.3 %}

      {% else %}

      Batterie OG linkes Zimmer Heizungsthermostat leer

      {% endif %}


      {% set voltage = states('sensor.og_rechts_operating_voltage') | float %}

      {% if voltage >= 2.3 %}

      {% else %}

      Batterie OG rechtes Zimmer Heizungsthermostat leer

      {% endif %}


      {% set voltage = states('sensor.og_bad_operating_voltage') | float %}

      {% if voltage >= 2.3 %}

      {% else %}

      Batterie OG Bad Heizungsthermostat leer

      {% endif %}


      {% set voltage = states('sensor.keller_flur_operating_voltage') | float %}

      {% if voltage >= 2.3 %}

      {% else %}

      Batterie Keller Flur Heizungsthermostat leer

      {% endif %}


      {% set voltage =
      states('sensor.hmip_etrv_2_000a1d89b4b8bd_operating_voltage') | float %}

      {% if voltage >= 2.3 %}

      {% else %}

      Batterie Waschküche Heizungsthermostat leer

      {% endif %}




      {% set voltage = states('sensor.wohnzimmer_fenster_operating_voltage') |
      float %}

      {% if voltage >= 1.2 %}

      {% else %}

      Batterie Wohnzimmerfenster leer

      {% endif %}


      {% set voltage = states('sensor.og_rechts_fenster_operating_voltage') |
      float %}

      {% if voltage >= 1.2 %}

      {% else %}

      Batterie OG rechtes Zimmer Fenster leer

      {% endif %}


      {% set voltage = states('sensor.og_bad_fenster_operating_voltage') | float
      %}

      {% if voltage >= 1.2 %}

      {% else %}

      Batterie OG Badezimmerfenster leer

      {% endif %}


      {% set voltage = states('sensor.kuche_fenster_operating_voltage') | float
      %}

      {% if voltage >= 1.2 %}

      {% else %}

      Batterie Küchenfenster leer

      {% endif %}


      {% set voltage = states('sensor.fenster_schlafzimmer_operating_voltage') |
      float %}

      {% if voltage >= 2.3 %}

      {% else %}

      Batterie Schlafzimmerfenster leer

      {% endif %}

image

The issue is that you have not provided default values for your float filters. On restart all of those templates are trying to mathematically compare a string to a float or subtract a string from an integer, both of which are nonsense.

1 Like

Hey thanks for your help, but I’m giving up on the template… I am now facing the problem that I have deleted all the templates, booted the system, but the error persists…
I can’t explain it to myself.

Have you set up any template sensors through the Helpers menu?

No, I have now checked it 10 times, neither Helper nor Automation, nor Config.yaml.

i have the same problem.
I even put float(1) and the log shows an error for float(

!!!