{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13182","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13182/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13182/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13182/events","html_url":"https://github.com/home-assistant/home-assistant/issues/13182","id":304889614,"number":13182,"title":"Unable to serialize to JSON","user":{"login":"maxclaey","id":17512341,"avatar_url":"https://avatars1.githubusercontent.com/u/17512341?v=4","gravatar_id":"","url":"https://api.github.com/users/maxclaey","html_url":"https://github.com/maxclaey","followers_url":"https://api.github.com/users/maxclaey/followers","following_url":"https://api.github.com/users/maxclaey/following{/other_user}","gists_url":"https://api.github.com/users/maxclaey/gists{/gist_id}","starred_url":"https://api.github.com/users/maxclaey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxclaey/subscriptions","organizations_url":"https://api.github.com/users/maxclaey/orgs","repos_url":"https://api.github.com/users/maxclaey/repos","events_url":"https://api.github.com/users/maxclaey/events{/privacy}","received_events_url":"https://api.github.com/users/maxclaey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-13T18:44:28Z","updated_at":"2018-03-14T00:40:59Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Make sure you are running the latest version of Home Assistant before reporting an issue.\r\n\r\nYou should only file an issue if you found a bug. Feature and enhancement requests should go in [the Feature Requests section](https://community.home-assistant.io/c/feature-requests) of our community forum:\r\n\r\n**Home Assistant release (`hass --version`):**\r\n0.66.0.dev0\r\n\r\n**Python release (`python3 --version`):**\r\nPython 3.5.3\r\n\r\n**Component/platform:**\r\nhttp.view\r\n\r\n**Description of problem:**\r\nWhen I try to open history, either the \"history\" page or a single entity history, I get \"Unable to serialize to JSON\" errors. For example:\r\n```\r\nMar 13 18:38:12 raspberrypi hass[2079]: 2018-03-13 18:38:12 INFO (MainThread) [homeassistant.components.http.view] Serving /api/history/period/2018-03-12T18:38:12.779Z to 192.168.0.1 (auth: True)\r\nMar 13 18:38:12 raspberrypi hass[2079]: 2018-03-13 18:38:12 ERROR (Thread-5) [homeassistant.components.http.view] Unable to serialize to JSON: dict_values([[<state climate.living_room=heat; away_mode=off, max_temp=32, supported_features=1153, operation_mode=heat, min_temp=9, operation_list=['off', 'heat', 'eco'], temperature=21.0, unit_of_measurement=°C, current_temperature=21.5, friendly_name=Nest @ 2018-03-13T19:37:52.869991+01:00>]]) is not JSON serializable\r\nMar 13 18:38:12 raspberrypi hass[2079]: dict_values([[<state climate.living_room=heat; away_mode=off, max_temp=32, supported_features=1153, operation_mode=heat, min_temp=9, operation_list=['off', 'heat', 'eco'], temperature=21.0, unit_of_measurement=°C, current_temperature=21.5, friendly_name=Nest @ 2018-03-13T19:37:52.869991+01:00>]])\r\nMar 13 18:38:12 raspberrypi hass[2079]: 2018-03-13 18:38:12 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: level=ERROR, exception=, message=Unable to serialize to JSON: dict_values([[<state climate.living_room=heat; away_mode=off, max_temp=32, supported_features=1153, operation_mode=heat, min_temp=9, operation_list=['off', 'heat', 'eco'], temperature=21.0, unit_of_measurement=°C, current_temperature=21.5, friendly_name=Nest @ 2018-03-13T19:37:52.869991+01:00>]]) is not JSON serializable\r\nMar 13 18:38:12 raspberrypi hass[2079]: dict_values([[<state climate.living_room=heat; away_mode=off, max_temp=32, supported_features=1153, operation_mode=heat, min_temp=9, operation_list=['off', 'heat', 'eco'], temperature=21.0, unit_of_measurement=°C, current_temperature=21.5, friendly_name=Nest @ 2018-03-13T19:37:52.869991+01:00>]]), source=components/http/view.py, timestamp=1520966292.851335>\r\n```\r\n\r\nThe same happens for other device types, such as remote and alarm control panel.\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/372866494","html_url":"https://github.com/home-assistant/home-assistant/issues/13182#issuecomment-372866494","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13182","id":372866494,"user":{"login":"mezz64","id":2854333,"avatar_url":"https://avatars0.githubusercontent.com/u/2854333?v=4","gravatar_id":"","url":"https://api.github.com/users/mezz64","html_url":"https://github.com/mezz64","followers_url":"https://api.github.com/users/mezz64/followers","following_url":"https://api.github.com/users/mezz64/following{/other_user}","gists_url":"https://api.github.com/users/mezz64/gists{/gist_id}","starred_url":"https://api.github.com/users/mezz64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezz64/subscriptions","organizations_url":"https://api.github.com/users/mezz64/orgs","repos_url":"https://api.github.com/users/mezz64/repos","events_url":"https://api.github.com/users/mezz64/events{/privacy}","received_events_url":"https://api.github.com/users/mezz64/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T00:40:59Z","updated_at":"2018-03-14T00:40:59Z","author_association":"CONTRIBUTOR","body":"Seeing this as well.  I'm using an external sql db for history, but I'm not sure that matters in this case."}}
{"actor":{"display_login":"mezz64"}}