Home Assistant in a docker container.
Running latest dev build
Getting these errors every minutes in log:
2019-05-07 21:44:11 ERROR (EndpointThread-Subscribe-0) [pubnub] Exception in subscribe loop: Connection Error: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))
Already tried deleting Wink integration and performed new integration with Wink and getting the same error.
This isn’t an error you need to worry about. This is how Wink is handling the subscription, it disconnects and reconnects with a new connection. The fix for this is Wink to stop the disconnects/handle them more gracefully.
If you want to eliminate these once a minute subscribe loop errors from spamming your log, update your logger in configuration.yaml to add pubnub: critical
Awesome effort, Thanks for that.
I’m running 0.92.2 on linux docker and before your custom_component the switches were not updating on clickin on them, they alwgays revert to its previous state.
Now thanks to you, after installing the custom_component, the state is updated immeidately after clicking on them which is great!.
Nevertheless if I change the state of the switches from Google Home (published switches from HA) or from winkapp directly, the state is not updated in HA, not sure if I’m still missing something here or if I’m alone in such behaviour.
It seems they never get updated, it has been more than 30 minutes now since I change the state of a switch which wasn’t reflected until now in the Lovelace ui
Although I see now in the log:
Exception in subscribe loop: Connection Error: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))
So I restarted the HA and then retried immediately and now the state is being updated normally even if the change is coming form Google home / Winkapp
It seems for some reason after sometime the subscription/connection gets disconnected
Quick update:
Now I get the error again but even with that the updates are working normally, not sure what happened to be fixed alll what I did is restarted the HA second time after installing the custom_componentn, will keep an eye on it if it happens again, here is the current error in which is not affecting the updates so far:
Exception in subscribe loop: Connection Error: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))
2:07 AM /usr/local/lib/python3.7/site-packages/pubnub/pubnub.py (ERROR) - message first occured at 2:02 AM and shows up 5 times
You sir, are a genius. I had to manually update the needed packages in the docker container but my wink thermostats are once again responding properly HASS. Thank you!!!
Will these fixes be included in a future Hassio release?
I’m having the same " HTTPSConnectionPool(host=‘ps.pndsn.com’, port=443): Read timed out" issue but I haven’t loaded the custom component yet either. I’ll try that today at some point.
Thank you @w1ll1am23 for an awesome fix. Yesterday I added your fix and so far everything working correctly. This issue boggling my setup for last week since Wink outage. I need to find a way to get out this Wink hub mess.