{"action":"created","issue":{"url":"https://api.github.com/repos/OttoWinter/esphomeyaml/issues/37","repository_url":"https://api.github.com/repos/OttoWinter/esphomeyaml","labels_url":"https://api.github.com/repos/OttoWinter/esphomeyaml/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/OttoWinter/esphomeyaml/issues/37/comments","events_url":"https://api.github.com/repos/OttoWinter/esphomeyaml/issues/37/events","html_url":"https://github.com/OttoWinter/esphomeyaml/issues/37","id":330428361,"node_id":"MDU6SXNzdWUzMzA0MjgzNjE=","number":37,"title":"error with DHT","user":{"login":"carlosmgr","id":14163602,"node_id":"MDQ6VXNlcjE0MTYzNjAy","avatar_url":"https://avatars0.githubusercontent.com/u/14163602?v=4","gravatar_id":"","url":"https://api.github.com/users/carlosmgr","html_url":"https://github.com/carlosmgr","followers_url":"https://api.github.com/users/carlosmgr/followers","following_url":"https://api.github.com/users/carlosmgr/following{/other_user}","gists_url":"https://api.github.com/users/carlosmgr/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosmgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosmgr/subscriptions","organizations_url":"https://api.github.com/users/carlosmgr/orgs","repos_url":"https://api.github.com/users/carlosmgr/repos","events_url":"https://api.github.com/users/carlosmgr/events{/privacy}","received_events_url":"https://api.github.com/users/carlosmgr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-07T20:43:07Z","updated_at":"2018-06-07T20:49:37Z","closed_at":null,"author_association":"NONE","body":"Hi \r\nI get the following error every time with the dht.\r\n\r\n[21:37:51][C][sensor.mqtt:025]: Setting up MQTT Sensor '2'...\r\n[21:37:51][C][sensor.mqtt:027]:     Expire After: 675s\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/esphomeyaml\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/lib/python2.7/dist-packages/esphomeyaml/__main__.py\", line 458, in main\r\n    return run_esphomeyaml(sys.argv)\r\n  File \"/usr/local/lib/python2.7/dist-packages/esphomeyaml/__main__.py\", line 448, in run_esphomeyaml\r\n    return POST_CONFIG_ACTIONS[args.command](args, config)\r\n  File \"/usr/local/lib/python2.7/dist-packages/esphomeyaml/__main__.py\", line 320, in command_run\r\n    return show_logs(config, args, port, escape=args.escape)\r\n  File \"/usr/local/lib/python2.7/dist-packages/esphomeyaml/__main__.py\", line 216, in show_logs\r\n    escape=escape)\r\n  File \"/usr/local/lib/python2.7/dist-packages/esphomeyaml/mqtt.py\", line 65, in show_logs\r\n    return initialize(config, [topic], on_message, username, password, client_id)\r\n  File \"/usr/local/lib/python2.7/dist-packages/esphomeyaml/mqtt.py\", line 36, in initialize\r\n    client.loop_forever()\r\n  File \"/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py\", line 1481, in loop_forever\r\n    rc = self.loop(timeout, max_packets)\r\n  File \"/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py\", line 1003, in loop\r\n    rc = self.loop_read(max_packets)\r\n  File \"/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py\", line 1284, in loop_read\r\n    rc = self._packet_read()\r\n  File \"/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py\", line 1849, in _packet_read\r\n    rc = self._packet_handle()\r\n  File \"/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py\", line 2305, in _packet_handle\r\n    return self._handle_publish()\r\n  File \"/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py\", line 2500, in _handle_publish\r\n    self._handle_on_message(message)\r\n  File \"/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py\", line 2647, in _handle_on_message\r\n    self.on_message(self, self._userdata, message)\r\n  File \"/usr/local/lib/python2.7/dist-packages/esphomeyaml/mqtt.py\", line 63, in on_message\r\n    print(time + message)\r\n  File \"/usr/local/lib/python2.7/dist-packages/colorama/ansitowin32.py\", line 40, in write\r\n    self.__convertor.write(text)\r\n  File \"/usr/local/lib/python2.7/dist-packages/colorama/ansitowin32.py\", line 141, in write\r\n    self.write_and_convert(text)\r\n  File \"/usr/local/lib/python2.7/dist-packages/colorama/ansitowin32.py\", line 169, in write_and_convert\r\n    self.write_plain_text(text, cursor, len(text))\r\n  File \"/usr/local/lib/python2.7/dist-packages/colorama/ansitowin32.py\", line 174, in write_plain_text\r\n    self.wrapped.write(text[start:end])\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xb0' in position 68: ordinal not in range(128)"},"comment":{"url":"https://api.github.com/repos/OttoWinter/esphomeyaml/issues/comments/395560119","html_url":"https://github.com/OttoWinter/esphomeyaml/issues/37#issuecomment-395560119","issue_url":"https://api.github.com/repos/OttoWinter/esphomeyaml/issues/37","id":395560119,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTU2MDExOQ==","user":{"login":"OttoWinter","id":6833237,"node_id":"MDQ6VXNlcjY4MzMyMzc=","avatar_url":"https://avatars1.githubusercontent.com/u/6833237?v=4","gravatar_id":"","url":"https://api.github.com/users/OttoWinter","html_url":"https://github.com/OttoWinter","followers_url":"https://api.github.com/users/OttoWinter/followers","following_url":"https://api.github.com/users/OttoWinter/following{/other_user}","gists_url":"https://api.github.com/users/OttoWinter/gists{/gist_id}","starred_url":"https://api.github.com/users/OttoWinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OttoWinter/subscriptions","organizations_url":"https://api.github.com/users/OttoWinter/orgs","repos_url":"https://api.github.com/users/OttoWinter/repos","events_url":"https://api.github.com/users/OttoWinter/events{/privacy}","received_events_url":"https://api.github.com/users/OttoWinter/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T20:49:37Z","updated_at":"2018-06-07T20:49:37Z","author_association":"OWNER","body":"That's probably because the DHT sends the degree symbol (maps to `0xb0` ASCII character in your error log) over MQTT and the dashboard wasn't escaping it properly.\r\n\r\nThis issue *should* be fixed with v1.6.2 which I published yesterday. See https://esphomelib.com/esphomeyaml/guides/faq.html#how-do-i-update-to-the-latest-version"}}
{"actor":{"display_login":"OttoWinter"}}