Trying to finish up my thermostat configuration and getting an odd display issue with the operating state. I have a (’ at the beginning and a ',) at the end:
As you can see the fan state doesn’t have the same issue. Here are both of them in the states page:
16-12-09 18:37:23 homeassistant.bootstrap: Invalid config for [sensor.template]: invalid template (TemplateSyntaxError: expected token ‘end of print statement’, got ‘gig_technologies_ct100_thermostat_usa_heating_1_8_1’) for dictionary value @ data[‘sensors’][‘climate_main_operating_state’][‘value_template’]. Got ‘{{ states.climate.2gig_technologies_ct100_thermostat_usa_heating_1_8_1.attributes.operating_state }}’. (See ?:?). Please check the docs at Template - Home Assistant
pi@raspberrypi:/home/hass/.homeassistant $ tail home-assistant.log
16-12-10 00:43:57 homeassistant.util.yaml: while parsing a block mapping
in "/home/hass/.homeassistant/configuration.yaml", line 111, column 9
expected <block end>, but found '<scalar>'
in "/home/hass/.homeassistant/configuration.yaml", line 113, column 169
I had actually caught that and tried it but I get the same error:
pi@raspberrypi:/home/hass/.homeassistant $ tail home-assistant.log
16-12-10 15:49:46 homeassistant.util.yaml: while parsing a block mapping
in "/home/hass/.homeassistant/configuration.yaml", line 112, column 9
expected <block end>, but found '<scalar>'
in "/home/hass/.homeassistant/configuration.yaml", line 114, column 167
Are you sure? I just tested and it worked for me. Plug it into your template dev tool and tweak till it works. You’ve got enough there to figure out the syntax for a replace filter.
pi@raspberrypi:/home/hass/.homeassistant $ tail home-assistant.log
16-12-10 15:58:01 homeassistant.util.yaml: while parsing a block mapping
in "/home/hass/.homeassistant/configuration.yaml", line 112, column 9
expected <block end>, but found '<scalar>'
in "/home/hass/.homeassistant/configuration.yaml", line 115, column 167
Yes, it works fine just still has the single quotes on either end. Once I add in the 4th replace it dies - even though the dev tools show it as working as expected.