Hi, this is what I have in configuration.yaml.
- platform: template
sensors:
garage_temperature_offset:
value_template: '{{ states.sensor.aeotec_zw074_multisensor_gen5_temperature.state | float + 4 }}'
friendly_name: 'garagetemp'
Hass is complaining that the code is invalid.
Testing configuration at /config
ERROR:homeassistant.config:Invalid config for [sensor.template]: expected a dictionary for dictionary value @ data['sensors']['friendly_name']. Got 'garagetemp'
expected a dictionary for dictionary value @ data['sensors']['garage_temperature_offset']. Got None
expected a dictionary for dictionary value @ data['sensors']['value_template']. Got '{{ states.sensor.aeotec_zw074_multisensor_gen5_temperature.state | float + 4 }}'. (See ?, line ?). Please check the docs at https://home-assistant.io/components/sensor.template/
Failed config
sensor.template:
platform: template
sensors: [source /config/configuration.yaml:43]
friendly_name: garagetemp
garage_temperature_offset: None
value_template: {{ states.sensor.aeotec_zw074_multisensor_gen5_temperature.state | float + 4 }}
Successful config (partial)
sensor.template:
Any idea what I am doing wrong?
Thanks