Hello, i try to do template for one of my sensors, which is not all the time up and online.
I want to display 0 or “not available” in case the sensor is offline and did this template:
- platform: template
nodemcu_ds18b20_bme280_temperature:
entitiy_id: sensor.nodemcu_ds18b20_bme280_temperature
friendly_name: 'Huidige opbrengst'
value_template: "{{ sensor.nodemcu_ds18b20_bme280_temperature | replace('unknown','0') }}"
but have this error:
ha core check
Error: Testing configuration at /config
INFO:homeassistant.util.package:Attempting install of httplib2==0.10.3
Failed config
sensor.template:
- Invalid config for [sensor.template]: [nodemcu_ds18b20_bme280_temperature] is an invalid option for [sensor.template]. Check: sensor.template->nodemcu_ds18b20_bme280_temperature. (See ?, line ?).
what i doing wrong ?