{"action":"closed","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/3933","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/3933/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/3933/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/3933/events","html_url":"https://github.com/home-assistant/home-assistant/issues/3933","id":183684502,"number":3933,"title":"Special character encoding error in YAML file not properly identified","user":{"login":"rpitera","id":19910294,"avatar_url":"https://avatars.githubusercontent.com/u/19910294?v=3","gravatar_id":"","url":"https://api.github.com/users/rpitera","html_url":"https://github.com/rpitera","followers_url":"https://api.github.com/users/rpitera/followers","following_url":"https://api.github.com/users/rpitera/following{/other_user}","gists_url":"https://api.github.com/users/rpitera/gists{/gist_id}","starred_url":"https://api.github.com/users/rpitera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpitera/subscriptions","organizations_url":"https://api.github.com/users/rpitera/orgs","repos_url":"https://api.github.com/users/rpitera/repos","events_url":"https://api.github.com/users/rpitera/events{/privacy}","received_events_url":"https://api.github.com/users/rpitera/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-18T13:21:34Z","updated_at":"2016-10-23T14:47:06Z","closed_at":"2016-10-23T14:47:06Z","body":"**Home Assistant release (`hass --version`):**\r\n0.30.2\r\n\r\n**Python release (`python3 --version`):**\r\n3.4.2\r\n\r\n**Description of problem:**\r\nWas trying to create an average main floor temperature sensor using a value template.  Found this example here:  https://community.home-assistant.io/t/get-average-of-multiple-temperature-sensors/4050/2?u=rpitera\r\n\r\nI copied/pasted the example into my sensors.yaml file after adjusting the sensors to reflect my own and changing the unit of measurement from C to F.   Upon restarting, HA was unable to start and would not produce an error log.  Running `sudo systemctl status home-assistant.service -l` produced this error:\r\n\r\n```\r\n● home-assistant.service - Home Assistant\r\nLoaded: loaded (/etc/systemd/system/home-assistant.service; enabled)\r\nActive: failed (Result: exit-code) since Mon 2016-10-17 23:52:26 EDT; 20s ago\r\nProcess: 2278 ExecStart=/srv/hass/hass_venv/bin/hass -c /home/hass/ (code=exited, status=1/FAILURE)\r\nMain PID: 2278 (code=exited, status=1/FAILURE)\r\nOct 17 23:52:25 raspi1 hass[2278]: self.update(index+1)\r\nOct 17 23:52:25 raspi1 hass[2278]: File \"/srv/hass/hass_venv/lib/python3.4/site-packages/yaml/reader.py\", line 153, in update\r\nOct 17 23:52:25 raspi1 hass[2278]: self.update_raw()\r\nOct 17 23:52:25 raspi1 hass[2278]: File \"/srv/hass/hass_venv/lib/python3.4/site-packages/yaml/reader.py\", line 178, in update_raw\r\nOct 17 23:52:25 raspi1 hass[2278]: data = self.stream.read(size)\r\nOct 17 23:52:25 raspi1 hass[2278]: File \"/srv/hass/hass_venv/lib/python3.4/codecs.py\", line 313, in decode\r\nOct 17 23:52:25 raspi1 hass[2278]: (result, consumed) = self._buffer_decode(data, self.errors, final)\r\nOct 17 23:52:25 raspi1 hass[2278]: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 179: invalid start byte\r\nOct 17 23:52:26 raspi1 systemd1: home-assistant.service: main process exited, code=exited, status=1/FAILURE\r\nOct 17 23:52:26 raspi1 systemd1: Unit home-assistant.service entered failed state.\r\n```\r\nWith help from a forum member I figured out that the issue was the degree symbol that I copied in the example file from the forum post.  But the file that it was in - sensors.yaml - is not referenced in the error above.  Without guidance in the forum mentioning to look for special characters, I would never have known to look at the degree symbol as being the culprit.\r\n\r\n**Expected:**\r\n\r\nHA should be able to trap formatting issue like this and produce an error in an error log rather than just not starting up and giving no indication where the issue is.  It should at least identify the file that has the issue.  Using the config check script method showed nothing either.\r\n\r\nIn my initial trouble shooting steps, I immediately thought something in the new sensor was causing the issue (since it was the only new change) so I commented it out of the sensors.yaml file, but HA still refused to start.  Not sure why HA would read the section if it was commented out, so this seems like an issue as well.\r\n\r\n"}}
{"actor":{"display_login":"kellerza"}}