Error validating template result

HI, I need some help…

Getting an error for this template:

binary_sensor:
  led:
          icon_template: radiobox-blank
          value_template: >-
            {% if is_state('switch.tuin_klep_ingang_leidingwater', 'on') %}
              on
            {% else %}
              off
            {% endif %}

The error:
Error validating template result 'radiobox-blank' from template 'Template("radiobox-blank")' for attribute '_icon' in entity binary_sensor.led validation message 'contains non-whitespace: radiobox-blank'

Why is that?

Try this:
icon_template: hass:radiobox-blank

Thanks!.. still wonder what ad why :slight_smile:

Whoops, partially ok… the error is gone but the “radio box” is not working anymore in lovelace then…

now I have this for on:
image

and this for off:
image

as wanted but with error…

think you you talking about the

DEVICE CLASS

Yes, that is solved. stupid from me, I used that before. Thanks!