kevinvincent / ha-wyzesense

A Home Assistant Component to interface with the WYZE Sense hub and sensor system
369 stars 100 forks source link

Stopped working after latest upgrade of HASSIO #7

Closed DesertDwellerEv closed 5 years ago

DesertDwellerEv commented 5 years ago

USB Dongle has a blue light, so I assume it's working as expected SSH In and looked for hidraw0 core-ssh:~# dmesg | grep hidraw [2101389.233780] hid-generic 0003:1A86:E024.0001: hiddev96,hidraw0: USB HID v1.00 Device [HID 1a86:e024] on usb-3f980000.usb-1.3/input0 HASSIO Log as follows:2019-08-09 20:11:12 WARNING (MainThread) [homeassistant.components.http.auth] legacy_api_password support has been enabled. 2019-08-09 20:11:14 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for wyzesense which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant. 2019-08-09 20:13:15 WARNING (MainThread) [homeassistant.components.mqtt] Data in your config entry is going to override your configuration.yaml: {'broker': 'core-mosquitto', 'discovery': True, 'password': 'ldPDPQS0HTsEekEFrTv_X0FS9Wn7jk_8', 'port': 1883, 'protocol': '3.1.1', 'username': 'homeassistant'} 2019-08-09 20:13:20 ERROR (MainThread) [homeassistant.config] Invalid config for [device_tracker.google_maps]: [password] is an invalid option for [device_tracker.google_maps]. Check: device_tracker.google_maps->password. (See /config/configuration.yaml, line 125). Please check the docs at https://home-assistant.io/components/device_tracker.google_maps/ 2019-08-09 20:13:22 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up platform wyzesense Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 149, in _async_setup_platform await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT) File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for return fut.result() File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, self.kwargs) File "/config/custom_components/wyzesense/binary_sensor.py", line 76, in setup_platform ws = wyzesense.Open(config[CONF_DEVICE], on_event) File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 551, in Open return Dongle(device, event_handler) File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 295, in init self._Start() File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 482, in _Start self._Inquiry() File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 388, in _Inquiry resp = self._DoSimpleCommand(Packet.Inquiry()) File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 383, in _DoSimpleCommand self._DoCommand(pkt, cmd_handler, timeout) File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 374, in _DoCommand raise TimeoutError("_DoCommand") TimeoutError: _DoCommand 2019-08-09 20:11:12 WARNING (MainThread) [homeassistant.components.http.auth] legacy_api_password support has been enabled. 2019-08-09 20:11:14 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for wyzesense which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant. 2019-08-09 20:13:15 WARNING (MainThread) [homeassistant.components.mqtt] Data in your config entry is going to override your configuration.yaml: {'broker': 'core-mosquitto', 'discovery': True, 'password': 'ldPDPQS0HTsEekEFrTv_X0FS9Wn7jk_8', 'port': 1883, 'protocol': '3.1.1', 'username': 'homeassistant'} 2019-08-09 20:13:20 ERROR (MainThread) [homeassistant.config] Invalid config for [device_tracker.google_maps]: [password] is an invalid option for [device_tracker.google_maps]. Check: device_tracker.google_maps->password. (See /config/configuration.yaml, line 125). Please check the docs at https://home-assistant.io/components/device_tracker.google_maps/ 2019-08-09 20:13:22 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up platform wyzesense* Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 149, in _async_setup_platform await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT) File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for return fut.result() File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(self.args, self.kwargs) File "/config/custom_components/wyzesense/binary_sensor.py", line 76, in setup_platform ws = wyzesense.Open(config[CONF_DEVICE], on_event) File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 551, in Open return Dongle(device, event_handler) File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 295, in init self._Start() File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 482, in _Start self._Inquiry() File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 388, in _Inquiry resp = self._DoSimpleCommand(Packet.Inquiry()) File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 383, in _DoSimpleCommand self._DoCommand(pkt, cmd_handler, timeout) File "/usr/local/lib/python3.7/site-packages/wyzesense**/gateway.py", line 374, in _DoCommand raise TimeoutError("_DoCommand") TimeoutError: _DoCommand

Not sure how to proceed.

mediacowboy commented 5 years ago

Can you share your config for the wyze component?

DesertDwellerEv commented 5 years ago

Is this what you are looking for?

confgiuration.yaml binary_sensor:

customize.yaml binary_sensor.wyzesense_777d91d1: device_class: garage_door friendly_name: Garage Sensor

mediacowboy commented 5 years ago

Can you try without the double quotes? If that doesn't help Kevin will have to help you more.

DesertDwellerEv commented 5 years ago

Replaced " with ' and restarted Hassio twice. Same result.

On Sun, Aug 11, 2019, 1:33 PM MediaCowboy notifications@github.com wrote:

Can you try without the double quotes?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevinvincent/ha-wyzesense/issues/7?email_source=notifications&email_token=AM2ZDBDN6B7UMKVBRUFXI5TQEBZQ7A5CNFSM4IK4QWGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4BIFAY#issuecomment-520258179, or mute the thread https://github.com/notifications/unsubscribe-auth/AM2ZDBDFVNKFXKND3OVAEPLQEBZQ7ANCNFSM4IK4QWGA .

kevinvincent commented 5 years ago

I’ve had some reports that seem to indicate that the recent hassio move to an Alpine Linux based container may be causing issues. I’ll be able to upgrade my instance tomorrow and see if I see the same issue. If that’s the case that’s definitely going to be an interesting problem to fix.

DesertDwellerEv commented 5 years ago

Thanks for the prompt replies over the weekend. Appreciate the effort you're putting into this

On Sun, Aug 11, 2019, 4:37 PM Kevin V. notifications@github.com wrote:

I’ve had some reports that seem to indicate that the recent hassio move to an Alpine Linux based container may be causing issues. I’ll be able to upgrade my instance tomorrow and see if I see the same issue. If that’s the case that’s definitely going to be an interesting problem to fix.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevinvincent/ha-wyzesense/issues/7?email_source=notifications&email_token=AM2ZDBCTM636GJN7UDK65ADQECPDBA5CNFSM4IK4QWGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4BLFNI#issuecomment-520270517, or mute the thread https://github.com/notifications/unsubscribe-auth/AM2ZDBDI5ISASU2H6USR2H3QECPDBANCNFSM4IK4QWGA .

kevinvincent commented 5 years ago

Also if you get a chance can you try a full restart of your entire machine? I'm wondering if there are issues with it running while an update happens.

DesertDwellerEv commented 5 years ago

Tried it. No difference.

On Sun, Aug 11, 2019 at 5:43 PM Kevin V. notifications@github.com wrote:

Also if you get a chance can you try a full restart of your entire machine? I'm wondering if there are issues with it running while an update happens.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevinvincent/ha-wyzesense/issues/7?email_source=notifications&email_token=AM2ZDBBX7K7Y5K57JJBA3IDQECW25A5CNFSM4IK4QWGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4BMKKA#issuecomment-520275240, or mute the thread https://github.com/notifications/unsubscribe-auth/AM2ZDBHUTMD6PIQ24MGCTFTQECW25ANCNFSM4IK4QWGA .

kevinvincent commented 5 years ago

Alright thank you for checking that, I'll be able to test with the latest hassio later today and I'll report back.

DesertDwellerEv commented 5 years ago

Cool. Thanks for the update and effort. Have a good day.

On Mon, Aug 12, 2019, 9:55 AM Kevin V. notifications@github.com wrote:

Alright thank you for checking that, I'll be able to test with the latest hassio later today and I'll report back.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevinvincent/ha-wyzesense/issues/7?email_source=notifications&email_token=AM2ZDBAQWXSBXT6NZ4JUTTLQEGIZTA5CNFSM4IK4QWGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4DE25A#issuecomment-520506740, or mute the thread https://github.com/notifications/unsubscribe-auth/AM2ZDBGG3NZZWBUXNWHRL3LQEGIZTANCNFSM4IK4QWGA .

kevinvincent commented 5 years ago

So I don't think its alpine linux (in fact it hasn't switched to it yet and hassio has always been on it, its just the homeassistant/home-assistant docker image is switching). Can you please enable debug logging for the component and post those logs (instructions are at bottom of readme)?

DesertDwellerEv commented 5 years ago

Sure. Will do when I get home. Thanks.

On Mon, Aug 12, 2019 at 2:15 PM Kevin V. notifications@github.com wrote:

So I don't think its alpine linux (in fact it hasn't switched to it yet and hassio has always been on it, its just the homeassistant/home-assistant docker image is switching). Can you please enable debug logging for the component and post those logs (instructions are at bottom of readme).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevinvincent/ha-wyzesense/issues/7?email_source=notifications&email_token=AM2ZDBEPDHM4T5T7MONDMXLQEHHG7A5CNFSM4IK4QWGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4D3HHQ#issuecomment-520598430, or mute the thread https://github.com/notifications/unsubscribe-auth/AM2ZDBGL3R24AIXIUWE6DALQEHHG7ANCNFSM4IK4QWGA .

mediacowboy commented 5 years ago

Was the hub installed and setup before moving to Home Assistant?

DesertDwellerEv commented 5 years ago

Yeah, I had plugged it into my wyze camera and I connected it to my garage door sensor. Once I moved it to HA, it came to up as expected and it worked. Gave it a name and was able to detect open and close without missing a beat.

On Mon, Aug 12, 2019, 8:59 PM MediaCowboy notifications@github.com wrote:

Was the hub installed and setup before moving to Home Assistant?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevinvincent/ha-wyzesense/issues/7?email_source=notifications&email_token=AM2ZDBDPMA5346KRL4FA2KDQEIWTBA5CNFSM4IK4QWGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4EPCGY#issuecomment-520679707, or mute the thread https://github.com/notifications/unsubscribe-auth/AM2ZDBB7PS4CRBQMUGWMCJTQEIWTBANCNFSM4IK4QWGA .

DesertDwellerEv commented 5 years ago

Here is the log

On Mon, Aug 12, 2019 at 8:59 PM MediaCowboy notifications@github.com wrote:

Was the hub installed and setup before moving to Home Assistant?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevinvincent/ha-wyzesense/issues/7?email_source=notifications&email_token=AM2ZDBDPMA5346KRL4FA2KDQEIWTBA5CNFSM4IK4QWGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4EPCGY#issuecomment-520679707, or mute the thread https://github.com/notifications/unsubscribe-auth/AM2ZDBB7PS4CRBQMUGWMCJTQEIWTBANCNFSM4IK4QWGA .

kevinvincent commented 5 years ago

It looks like you're responding via email and the log didn't come through. Can you try copy-pasting it in (instead of attaching it I assume)?

DesertDwellerEv commented 5 years ago

2019-08-09 20:11:11 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant. 2019-08-09 20:11:12 WARNING (MainThread) [homeassistant.components.http] Configuring api_password via the http integration has been deprecated. Use the legacy api password auth provider instead. For instructions, see https://www.home-assistant.io/docs/authentication/providers/#legacy-api-password 2019-08-09 20:11:12 WARNING (MainThread) [homeassistant.components.http.auth] legacy_api_password support has been enabled. 2019-08-09 20:11:14 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for wyzesense which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant. 2019-08-09 20:13:15 WARNING (MainThread) [homeassistant.components.mqtt] Data in your config entry is going to override your configuration.yaml: {'broker': 'core-mosquitto', 'discovery': True, 'password': 'ldPDPQS0HTsEekEFrTv_X0FS9Wn7jk_8', 'port': 1883, 'protocol': '3.1.1', 'username': 'homeassistant'} 2019-08-09 20:13:20 ERROR (MainThread) [homeassistant.config] Invalid config for [device_tracker.google_maps]: [password] is an invalid option for [device_tracker.google_maps]. Check: device_tracker.google_maps->password. (See /config/configuration.yaml, line 125). Please check the docs at https://home-assistant.io/components/device_tracker.google_maps/ 2019-08-09 20:13:22 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up platform wyzesense Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 149, in _async_setup_platform await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT) File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for return fut.result() File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/config/custom_components/wyzesense/binary_sensor.py", line 76, in setup_platform ws = wyzesense.Open(config[CONF_DEVICE], on_event) File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 551, in Open return Dongle(device, event_handler) File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 295, in init self._Start() File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 482, in _Start self._Inquiry() File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 388, in _Inquiry resp = self._DoSimpleCommand(Packet.Inquiry()) File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 383, in _DoSimpleCommand self._DoCommand(pkt, cmd_handler, timeout) File "/usr/local/lib/python3.7/site-packages/wyzesense/gateway.py", line 374, in _DoCommand raise TimeoutError("_DoCommand") TimeoutError: _DoCommand 2019-08-09 20:13:27 WARNING (MainThread) [homeassistant.core] Unable to remove unknown listener <function async_track_point_in_utc_time..point_in_time_listener at 0x7fad7eef80> 2019-08-09 20:13:30 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 179, in _async_callback_delayed_write await self._async_handle_write_data() File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 191, in _async_handle_write_data if "data_func" in data: TypeError: argument of type 'NoneType' is not iterable 2019-08-09 20:13:54 WARNING (SyncWorker_17) [plexapi] BadRequest (401) unauthorized http://10.0.0.85:32400/; Unauthorized

401 Unauthorized

2019-08-09 20:44:07 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-09 20:49:07 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds 2019-08-09 20:49:14 ERROR (SyncWorker_13) [homeassistant.components.honeywell.climate] SomeComfort update failed, Retrying - Error: You are being rate-limited. Try waiting a bit. 2019-08-09 22:28:52 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.office_tv_power is taking over 10 seconds 2019-08-09 22:28:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.living_room is taking over 10 seconds 2019-08-09 22:29:13 WARNING (MainThread) [homeassistant.components.switch] Updating command_line switch took longer than the scheduled update interval 0:00:30 2019-08-09 22:59:03 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-09 23:19:49 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 03:20:11 WARNING (Thread-4) [pychromecast.socket_client] [Digital Projector:8009] Heartbeat timeout, resetting connection 2019-08-10 03:32:57 ERROR (Thread-6) [pychromecast.socket_client] [Home Audio:42802] Error reading from socket. 2019-08-10 03:32:57 WARNING (Thread-6) [pychromecast.socket_client] [Home Audio:42802] Error communicating with socket, resetting connection 2019-08-10 03:33:33 WARNING (Thread-5) [pychromecast.socket_client] [Master Bedroom TV:8009] Heartbeat timeout, resetting connection 2019-08-10 04:34:05 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template 'value' is undefined 2019-08-10 04:35:05 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template 'states' is undefined 2019-08-10 04:39:37 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template 'states' is undefined 2019-08-10 04:41:14 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 07:05:40 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 08:01:06 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 10:42:34 ERROR (SyncWorker_18) [somecomfort] Failed to de-JSON /Device/CheckDataSession/4342272 response Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 2019-08-10 10:42:34 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.thermostat fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 249, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 419, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/usr/src/homeassistant/homeassistant/components/honeywell/climate.py", line 453, in update self._device.refresh() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 87, in refresh data = self._client._get_thermostat_data(self.deviceid) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 468, in _get_thermostat_data return self._get_json(url) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 444, in _get_json return self._request_json('get', args, **kwargs) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 434, in _request_json return self._resp_json(resp, req) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 424, in _resp_json raise APIError('Failed to process %s response', req) somecomfort.client.APIError: ('Failed to process %s response', '/Device/CheckDataSession/4342272') 2019-08-10 11:42:48 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 12:12:15 ERROR (Thread-6) [pychromecast.socket_client] [Home Audio:42802] Error reading from socket. 2019-08-10 12:12:15 WARNING (Thread-6) [pychromecast.socket_client] [Home Audio:42802] Error communicating with socket, resetting connection 2019-08-10 12:12:15 ERROR (Thread-6) [pychromecast.socket_client] [Home Audio:42802] Failed to connect to service Google-Cast-Group-6a9c93c878bd43b89a5410bd7652d75f._googlecast._tcp.local., retrying in 5.0s 2019-08-10 12:54:04 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template 'value' is undefined 2019-08-10 12:54:59 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template 'states' is undefined 2019-08-10 12:59:13 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template 'states' is undefined 2019-08-10 13:28:42 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 18:10:00 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds 2019-08-10 18:17:07 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds 2019-08-10 18:54:05 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 18:54:16 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 18:54:17 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 21:05:32 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 21:05:47 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 21:06:02 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 21:06:16 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 21:06:26 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 21:06:35 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 21:14:01 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template 'value' is undefined 2019-08-10 21:14:39 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-10 21:14:51 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template 'states' is undefined 2019-08-10 21:18:42 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template 'states' is undefined 2019-08-10 22:27:12 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds 2019-08-10 22:29:14 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds 2019-08-10 22:51:03 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-11 00:07:34 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-11 01:00:02 WARNING (Thread-6) [pychromecast.socket_client] [Home Audio:42802] Heartbeat timeout, resetting connection 2019-08-11 01:00:07 WARNING (Thread-7) [pychromecast.socket_client] [Dining Room:8009] Heartbeat timeout, resetting connection 2019-08-11 01:00:32 ERROR (Thread-6) [pychromecast.socket_client] [Home Audio:42802] Failed to connect to service Google-Cast-Group-6a9c93c878bd43b89a5410bd7652d75f-1._googlecast._tcp.local., retrying in 5.0s 2019-08-11 01:00:37 ERROR (Thread-7) [pychromecast.socket_client] [Dining Room:8009] Failed to connect to service Chromecast-Audio-f25ed98aec8259f153765dd7c9f37ce1._googlecast._tcp.local., retrying in 5.0s 2019-08-11 01:01:16 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-11 01:42:39 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-11 01:42:39 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-11 01:53:32 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds 2019-08-11 02:22:31 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-11 03:39:28 WARNING (Thread-4) [pychromecast.socket_client] [Digital Projector:8009] Heartbeat timeout, resetting connection 2019-08-11 04:16:53 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds 2019-08-11 04:17:37 ERROR (SyncWorker_10) [homeassistant.components.honeywell.climate] SomeComfort update failed, Retrying - Error: HTTPSConnectionPool(host='www.mytotalconnectcomfort.com', port=443): Read timed out. (read timeout=30) 2019-08-11 04:20:58 ERROR (Thread-6) [pychromecast.socket_client] [Home Audio:42802] Error reading from socket. 2019-08-11 04:20:58 WARNING (Thread-6) [pychromecast.socket_client] [Home Audio:42802] Error communicating with socket, resetting connection 2019-08-11 04:20:58 ERROR (Thread-6) [pychromecast.socket_client] [Home Audio:42802] Failed to connect to service Google-Cast-Group-6a9c93c878bd43b89a5410bd7652d75f._googlecast._tcp.local., retrying in 5.0s 2019-08-11 04:21:34 WARNING (Thread-5) [pychromecast.socket_client] [Master Bedroom TV:8009] Heartbeat timeout, resetting connection 2019-08-11 04:42:18 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds 2019-08-11 04:43:00 ERROR (SyncWorker_0) [somecomfort] Login as desertdweller85212@gmail.com failed 2019-08-11 04:43:00 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.thermostat fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 452, in _retries_login self.keepalive() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 495, in keepalive raise SessionTimedOut('Session timed out') somecomfort.client.SessionTimedOut: Session timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 249, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 419, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/usr/src/homeassistant/homeassistant/components/honeywell/climate.py", line 453, in update self._device.refresh() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 87, in refresh data = self._client._get_thermostat_data(self.deviceid) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 467, in _get_thermostat_data with self._retries_login(): File "/usr/local/lib/python3.7/contextlib.py", line 112, in enter return next(self.gen) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 454, in _retries_login self._login() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 49, in wrapper return fn(args, kwargs) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 405, in _login raise AuthError('Login failed') somecomfort.client.AuthError: Login failed 2019-08-11 04:55:36 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-11 05:34:04 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template 'value' is undefined 2019-08-11 05:34:57 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template 'states' is undefined 2019-08-11 05:39:05 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template 'states' is undefined 2019-08-11 07:36:00 ERROR (Thread-6) [pychromecast.socket_client] [Home Audio:42802] Error reading from socket. 2019-08-11 07:36:00 WARNING (Thread-6) [pychromecast.socket_client] [Home Audio:42802] Error communicating with socket, resetting connection 2019-08-11 09:00:06 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: invalid HTTP method 2019-08-11 09:16:07 WARNING (MainThread) [aiohttp.websocket] websocket connection is closing. 2019-08-11 09:16:07 WARNING (MainThread) [aiohttp.websocket] websocket connection is closing. 2019-08-11 09:16:07 WARNING (MainThread) [aiohttp.websocket] websocket connection is closing. 2019-08-11 09:16:07 WARNING (MainThread) [aiohttp.websocket] websocket connection is closing. 2019-08-11 09:16:07 WARNING (MainThread) [aiohttp.websocket] websocket connection is closing. 2019-08-11 09:16:07 WARNING (MainThread) [aiohttp.websocket] websocket connection is closing. 2019-08-11 09:16:24 WARNING (Thread-7) [pychromecast.socket_client] [Dining Room:8009] Heartbeat timeout, resetting connection 2019-08-11 09:16:28 WARNING (Thread-6) [pychromecast.socket_client] [Home Audio:42802] Heartbeat timeout, resetting connection 2019-08-11 09:16:30 ERROR (Thread-7) [pychromecast.socket_client] [Dining Room:8009] Failed to connect to service Chromecast-Audio-f25ed98aec8259f153765dd7c9f37ce1._googlecast._tcp.local., retrying in 5.0s 2019-08-11 09:16:30 ERROR (Thread-6) [pychromecast.socket_client] [Home Audio:42802] Failed to connect to service Google-Cast-Group-6a9c93c878bd43b89a5410bd7652d75f._googlecast._tcp.local., retrying in 5.0s 2019-08-11 11:43:50 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.548376387728] Disconnected: Did not receive auth message within 10 seconds 2019-08-11 11:44:52 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template argument of type 'NoneType' is not iterable 2019-08-11 11:45:11 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template argument of type 'NoneType' is not iterable 2019-08-11 11:46:52 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.office_tv_power is taking over 10 seconds 2019-08-11 11:46:53 WARNING (Thread-5) [pychromecast.socket_client] [Master Bedroom TV:8009] Heartbeat timeout, resetting connection 2019-08-11 11:46:54 WARNING (Thread-4) [pychromecast.socket_client] [Digital Projector:8009] Heartbeat timeout, resetting connection 2019-08-11 11:46:56 WARNING (Thread-7) [pychromecast.socket_client] [Dining Room:8009] Heartbeat timeout, resetting connection 2019-08-11 11:47:00 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.living_room is taking over 10 seconds 2019-08-11 11:47:00 WARNING (Thread-6) [pychromecast.socket_client] [Home Audio:42802] Heartbeat timeout, resetting connection 2019-08-11 12:14:53 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template argument of type 'NoneType' is not iterable 2019-08-11 12:44:54 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template argument of type 'NoneType' is not iterable 2019-08-11 13:06:31 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds 2019-08-11 13:09:34 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds 2019-08-11 13:10:35 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds 2019-08-11 13:11:36 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds 2019-08-11 13:14:55 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template argument of type 'NoneType' is not iterable 2019-08-11 13:22:45 ERROR (SyncWorker_13) [somecomfort] Failed to de-JSON /Device/CheckDataSession/4342272 response Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 2019-08-11 13:22:45 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.thermostat fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 249, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 419, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/usr/src/homeassistant/homeassistant/components/honeywell/climate.py", line 453, in update self._device.refresh() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 87, in refresh data = self._client._get_thermostat_data(self.deviceid) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 468, in _get_thermostat_data return self._get_json(url) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 444, in _get_json return self._request_json('get', args, **kwargs) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 434, in _request_json return self._resp_json(resp, req) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 424, in _resp_json raise APIError('Failed to process %s response', req) somecomfort.client.APIError: ('Failed to process %s response', '/Device/CheckDataSession/4342272') 2019-08-11 13:24:49 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds 2019-08-11 13:26:51 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds 2019-08-11 13:27:41 ERROR (SyncWorker_13) [homeassistant.components.honeywell.climate] Failed to initialize honeywell client: 2019-08-11 13:27:41 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.thermostat fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request six.raise_from(e, None) File "", line 2, in raise_from File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 383, in _make_request httplib_response = conn.getresponse() File "/usr/local/lib/python3.7/http/client.py", line 1336, in getresponse response.begin() File "/usr/local/lib/python3.7/http/client.py", line 306, in begin version, status, reason = self._read_status() File "/usr/local/lib/python3.7/http/client.py", line 267, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/local/lib/python3.7/socket.py", line 589, in readinto return self._sock.recv_into(b) File "/usr/local/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 317, in recv_into raise timeout('The read operation timed out') socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 641, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 368, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.7/site-packages/urllib3/packages/six.py", line 686, in reraise raise value File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 603, in urlopen chunked=chunked) File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 389, in _make_request self._raise_timeout(err=e, url=url, timeout_value=read_timeout) File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 307, in _raise_timeout raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value) urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=' www.mytotalconnectcomfort.com', port=443): Read timed out. (read timeout=30)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 249, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 419, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, self.kwargs) File "/usr/src/homeassistant/homeassistant/components/honeywell/climate.py", line 464, in update raise exp File "/usr/src/homeassistant/homeassistant/components/honeywell/climate.py", line 453, in update self._device.refresh() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 87, in refresh data = self._client._get_thermostat_data(self.deviceid) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 467, in _get_thermostat_data with self._retries_login(): File "/usr/local/lib/python3.7/contextlib.py", line 112, in enter return next(self.gen) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 452, in _retries_login self.keepalive() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 492, in keepalive resp = self._session.get(url, timeout=self._timeout) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 546, in get return self.request('GET', url, kwargs) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send r = adapter.send(request, kwargs) File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 529, in send raise ReadTimeout(e, request=request) requests.exceptions.ReadTimeout: HTTPSConnectionPool(host=' www.mytotalconnectcomfort.com', port=443): Read timed out. (read timeout=30) 2019-08-11 13:27:52 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds 2019-08-11 13:28:19 ERROR (SyncWorker_15) [somecomfort] API returned 403 from /Location/GetLocationListData request 2019-08-11 13:28:19 ERROR (SyncWorker_15) [homeassistant.components.honeywell.climate] Failed to initialize honeywell client: Unexpected 403 response from API 2019-08-11 13:28:19 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.thermostat fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request six.raise_from(e, None) File "", line 2, in raise_from File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 383, in _make_request httplib_response = conn.getresponse() File "/usr/local/lib/python3.7/http/client.py", line 1336, in getresponse response.begin() File "/usr/local/lib/python3.7/http/client.py", line 306, in begin version, status, reason = self._read_status() File "/usr/local/lib/python3.7/http/client.py", line 267, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/local/lib/python3.7/socket.py", line 589, in readinto return self._sock.recv_into(b) File "/usr/local/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 317, in recv_into raise timeout('The read operation timed out') socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 641, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 368, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.7/site-packages/urllib3/packages/six.py", line 686, in reraise raise value File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 603, in urlopen chunked=chunked) File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 389, in _make_request self._raise_timeout(err=e, url=url, timeout_value=read_timeout) File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 307, in _raise_timeout raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value) urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=' www.mytotalconnectcomfort.com', port=443): Read timed out. (read timeout=30)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 249, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 419, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, self.kwargs) File "/usr/src/homeassistant/homeassistant/components/honeywell/climate.py", line 464, in update raise exp File "/usr/src/homeassistant/homeassistant/components/honeywell/climate.py", line 453, in update self._device.refresh() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 87, in refresh data = self._client._get_thermostat_data(self.deviceid) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 467, in _get_thermostat_data with self._retries_login(): File "/usr/local/lib/python3.7/contextlib.py", line 112, in enter return next(self.gen) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 452, in _retries_login self.keepalive() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 492, in keepalive resp = self._session.get(url, timeout=self._timeout) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 546, in get return self.request('GET', url, kwargs) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send r = adapter.send(request, kwargs) File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 529, in send raise ReadTimeout(e, request=request) requests.exceptions.ReadTimeout: HTTPSConnectionPool(host=' www.mytotalconnectcomfort.com', port=443): Read timed out. (read timeout=30) 2019-08-11 13:31:50 ERROR (SyncWorker_3) [somecomfort] Login as desertdweller85212@gmail.com failed 2019-08-11 13:31:50 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.thermostat fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 452, in _retries_login self.keepalive() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 495, in keepalive raise SessionTimedOut('Session timed out') somecomfort.client.SessionTimedOut: Session timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 249, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 419, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/usr/src/homeassistant/homeassistant/components/honeywell/climate.py", line 453, in update self._device.refresh() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 87, in refresh data = self._client._get_thermostat_data(self.deviceid) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 467, in _get_thermostat_data with self._retries_login(): File "/usr/local/lib/python3.7/contextlib.py", line 112, in enter return next(self.gen) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 454, in _retries_login self._login() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 49, in wrapper return fn(args, kwargs) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 405, in _login raise AuthError('Login failed') somecomfort.client.AuthError: Login failed 2019-08-11 13:36:52 ERROR (SyncWorker_19) [somecomfort] Failed to de-JSON /Device/CheckDataSession/4342272 response Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 2019-08-11 13:36:52 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.thermostat fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 249, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 419, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/usr/src/homeassistant/homeassistant/components/honeywell/climate.py", line 453, in update self._device.refresh() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 87, in refresh data = self._client._get_thermostat_data(self.deviceid) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 468, in _get_thermostat_data return self._get_json(url) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 444, in _get_json return self._request_json('get', args, kwargs) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 434, in _request_json return self._resp_json(resp, req) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 424, in _resp_json raise APIError('Failed to process %s response', req) somecomfort.client.APIError: ('Failed to process %s response', '/Device/CheckDataSession/4342272') 2019-08-11 13:38:53 ERROR (SyncWorker_19) [somecomfort] Failed to de-JSON /Device/CheckDataSession/4342272 response Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 2019-08-11 13:38:53 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.thermostat fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 249, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 419, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/usr/src/homeassistant/homeassistant/components/honeywell/climate.py", line 453, in update self._device.refresh() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 87, in refresh data = self._client._get_thermostat_data(self.deviceid) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 468, in _get_thermostat_data return self._get_json(url) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 444, in _get_json return self._request_json('get', args, kwargs) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 434, in _request_json return self._resp_json(resp, req) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 424, in _resp_json raise APIError('Failed to process %s response', req) somecomfort.client.APIError: ('Failed to process %s response', '/Device/CheckDataSession/4342272') 2019-08-11 13:41:56 ERROR (SyncWorker_2) [somecomfort] Failed to de-JSON /Device/CheckDataSession/4342272 response Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 2019-08-11 13:41:56 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.thermostat fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 249, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 419, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/usr/src/homeassistant/homeassistant/components/honeywell/climate.py", line 453, in update self._device.refresh() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 87, in refresh data = self._client._get_thermostat_data(self.deviceid) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 468, in _get_thermostat_data return self._get_json(url) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 444, in _get_json return self._request_json('get', args, kwargs) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 434, in _request_json return self._resp_json(resp, req) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 424, in _resp_json raise APIError('Failed to process %s response', req) somecomfort.client.APIError: ('Failed to process %s response', '/Device/CheckDataSession/4342272') 2019-08-11 13:42:57 ERROR (SyncWorker_7) [somecomfort] Failed to de-JSON /Device/CheckDataSession/4342272 response Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 2019-08-11 13:42:57 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.thermostat fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 249, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 419, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/usr/src/homeassistant/homeassistant/components/honeywell/climate.py", line 453, in update self._device.refresh() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 87, in refresh data = self._client._get_thermostat_data(self.deviceid) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 468, in _get_thermostat_data return self._get_json(url) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 444, in _get_json return self._request_json('get', args, kwargs) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 434, in _request_json return self._resp_json(resp, req) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 424, in _resp_json raise APIError('Failed to process %s response', req) somecomfort.client.APIError: ('Failed to process %s response', '/Device/CheckDataSession/4342272') 2019-08-11 13:43:58 ERROR (SyncWorker_8) [somecomfort] Failed to de-JSON /Device/CheckDataSession/4342272 response Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 2019-08-11 13:43:58 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.thermostat fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 249, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 419, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/usr/src/homeassistant/homeassistant/components/honeywell/climate.py", line 453, in update self._device.refresh() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 87, in refresh data = self._client._get_thermostat_data(self.deviceid) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 468, in _get_thermostat_data return self._get_json(url) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 444, in _get_json return self._request_json('get', args, kwargs) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 434, in _request_json return self._resp_json(resp, req) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 424, in _resp_json raise APIError('Failed to process %s response', req) somecomfort.client.APIError: ('Failed to process %s response', '/Device/CheckDataSession/4342272') 2019-08-11 13:44:56 WARNING (MainThread) [custom_components.hacs.template] Error rendering info template argument of type 'NoneType' is not iterable 2019-08-11 13:50:04 ERROR (SyncWorker_2) [somecomfort] Failed to de-JSON /Device/CheckDataSession/4342272 response Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 2019-08-11 13:50:04 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.thermostat fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 249, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 419, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/usr/src/homeassistant/homeassistant/components/honeywell/climate.py", line 453, in update self._device.refresh() File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 87, in refresh data = self._client._get_thermostat_data(self.deviceid) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 468, in _get_thermostat_data return self._get_json(url) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 444, in _get_json return self._request_json('get', args, kwargs) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 434, in _request_json return self._resp_json(resp, req) File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 424, in _resp_json raise APIError('Failed to process %s response', req) somecomfort.client.APIError: ('Failed to process %s response', '/Device/CheckDataSession/4342272') 2019-08-11 13:51:05 ERROR (SyncWorker_13) [somecomfort] Failed to de-JSON /Device/CheckDataSession/4342272 response Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 2019-08-11 13:51:05 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.thermostat fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/somecomfort/client.py", line 419, in _resp_json return resp.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897

kevinvincent commented 5 years ago

A couple of things, are you sure you enabled debug logs using the following configuration options?

logger:
  default: info
  logs:
    custom_components.wyzesense: debug
    wyzesense.gateway: debug

Can you click "Show Full Home Assistant Log" and post that? All I'm seeing above are WARNING and ERROR which means one of the two above didn't occur. There should be plenty of lines with the word DEBUG in it. For example:

2019-08-12 23:08:55 DEBUG (Thread-2) [wyzesense.gateway] <=== Received: Packet: Cmd=53FF, Payload=ACK(5316)
2019-08-12 23:08:55 DEBUG (Thread-2) [wyzesense.gateway] Trying to parse: b'55aa531c17302e302e302e33302056312e3420446f6e676c65205544335507c5'
2019-08-12 23:08:55 DEBUG (Thread-2) [wyzesense.gateway] Received: b'55aa531c17302e302e302e33302056312e3420446f6e676c65205544335507c5'
kevinvincent commented 5 years ago

Also please go ahead and update if you installed via HACS. I just pushed out a change that adds retrying for simple failures.

DesertDwellerEv commented 5 years ago

Looks good. Sorry it took me a while to respond. Thanks.

On Mon, Aug 12, 2019 at 11:13 PM Kevin V. notifications@github.com wrote:

Also please go ahead and update if you installed via HACS. I just pushed out a change that adds retrying for simple failures.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevinvincent/ha-wyzesense/issues/7?email_source=notifications&email_token=AM2ZDBFMEC5DGNSBSR7TOLLQEJGILA5CNFSM4IK4QWGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4EUX4Q#issuecomment-520702962, or mute the thread https://github.com/notifications/unsubscribe-auth/AM2ZDBAYI73BINAUN7BY7RLQEJGILANCNFSM4IK4QWGA .

DesertDwellerEv commented 5 years ago

Got the garage door icon displaying.

On Mon, Aug 12, 2019, 11:31 PM Kevin V. notifications@github.com wrote:

No worries, do mean that it works for you now?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevinvincent/ha-wyzesense/issues/7?email_source=notifications&email_token=AM2ZDBCY3HNKBHZFNP7TKJLQEJINPA5CNFSM4IK4QWGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4EVZFQ#issuecomment-520707222, or mute the thread https://github.com/notifications/unsubscribe-auth/AM2ZDBFUULDH444RJZL4SSTQEJINPANCNFSM4IK4QWGA .

kevinvincent commented 5 years ago

Oh okay nice. Was this after you updated? Hopefully the retrying logic is helping there.

DesertDwellerEv commented 5 years ago

I believe it did. Leaving for work this morning, watched my phone as the garage door shut and immediately garage door icon switched to close. Now to finish printing my car presence case for D1 Mini and garage door control with Sonoff SV. Have the Node Red flows in place for opening garage door as soon as car presence is detected if door is closed. Got one for my motorcycle too!

On Tue, Aug 13, 2019 at 8:59 AM Kevin V. notifications@github.com wrote:

Oh okay nice. Was this after you updated? Hopefully the retrying logic is helping there.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevinvincent/ha-wyzesense/issues/7?email_source=notifications&email_token=AM2ZDBG46ZDTNBDULQBGUM3QELK7JA5CNFSM4IK4QWGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4GEENY#issuecomment-520897079, or mute the thread https://github.com/notifications/unsubscribe-auth/AM2ZDBE7MDJHKVRKCJBU53LQELK7JANCNFSM4IK4QWGA .

kevinvincent commented 5 years ago

Okay great! Please keep an eye on things and let me know if the issue reappears! I will close this issue for now but feel free to re-open it or comment below if anything changes.

neth3ro commented 4 years ago

What was the resolution? I believe I might be having the same issue. I have previously established wyze sensor communication and I see the MAC's in the DEBUG messages but am not able to see the wyze.remove or scan services anymore. Is there a way to manually reset the sensor?

neth3ro commented 4 years ago

What was the resolution? I believe I might be having the same issue. I have previously established wyze sensor communication and I see the MAC's in the DEBUG messages but am not able to see the wyze.remove or scan services anymore. Is there a way to manually reset the sensor?

I had another Wyze Sensor Hub and rebooted my machine. The wyze.remove/scan services show up now. I think that somehow the sensors got stuck in the hub itself. Any tips on getting these out of the device?