@liksvette wrote:
I am stumped.
Can anyone please tell me whats wrong with the value template below?- platform: template sensors: garage_humidity_difference: value_template: '{{ state_attr('weather.met_no', 'humidity') - ( states('sensor.garage_sensor_humidity')|int ) }}' friendly_name: 'Luftfuktighet ute vs garasje' #entity_id: sensor.garage_humidity_difference unit_of_measurement: '%'
It resolves in the template editor, but when I add it to my config I get the following error:
Error loading /config/configuration.yaml: while parsing a block mapping
in “/config/sensors/garage_humidity_difference.yaml”, line 4, column 7
expected , but found ‘< scalar >’
in “/config/sensors/garage_humidity_difference.yaml”, line 4, column 39I can’t for the life of me see what’s wrong.
Posts: 3
Participants: 2