Hi, I renamed a sensor this way
corrected_name_for_humidity_garage:
friendly_name: "Garage"
unit_of_measurement: "%"
device_class: humidity
value_template: '{{ states("sensor.garage_humidity")|round(0) }}'
and I’m getting this error:
TemplateError(‘ValueError: Template error: round got invalid input ‘unavailable’ when rendering template ‘{{ states(“sensor.garage_humidity”)|round(0) }}’ but no default was specified’) while processing template ‘Template<template=({{ states(“sensor.garage_humidity”)|round(0) }}) renders=14>’ for attribute ‘_attr_native_value’ in entity ‘sensor.corrected_name_for_humidity_garage’
Any hints, I don’t get what’s wrong…