Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable To Start Home Assistant During A Lightwave Outage #7

Closed
MightyJudge opened this issue Oct 6, 2019 · 2 comments
Closed

Unable To Start Home Assistant During A Lightwave Outage #7

MightyJudge opened this issue Oct 6, 2019 · 2 comments

Comments

@MightyJudge
Copy link

It appears that lightwave2 stops home assistant from booting in the event of a lightwave api outage.

These outages are very rare but I wanted to make you aware of this as It seems there is an outage at the moment.

Home assistant was working ok until I rebooted it, now checking the logs shows a lot of error messages similar to:

2019-10-06 12:34:41 WARNING (MainThread) [lightwave2.lightwave2] Cannot connect (exception '0, message='Attempt to decode JSON with unexpected mimetype: text/html''). Waiting 120 seconds
2019-10-06 12:34:42 WARNING (MainThread) [lightwave2.lightwave2] Cannot connect (exception '0, message='Attempt to decode JSON with unexpected mimetype: text/html''). Waiting 32 seconds
2019-10-06 12:34:43 WARNING (MainThread) [lightwave2.lightwave2] Cannot connect (exception '0, message='Attempt to decode JSON with unexpected mimetype: text/html''). Waiting 2 seconds
2019-10-06 12:34:43 WARNING (MainThread) [lightwave2.lightwave2] Cannot connect (exception '0, message='Attempt to decode JSON with unexpected mimetype: text/html''). Waiting 120 seconds
2019-10-06 12:34:43 WARNING (MainThread) [lightwave2.lightwave2] Cannot connect (exception '0, message='Attempt to decode JSON with unexpected mimetype: text/html''). Waiting 4 seconds
2019-10-06 12:34:45 WARNING (MainThread) [lightwave2.lightwave2] Cannot connect (exception '0, message='Attempt to decode JSON with unexpected mimetype: text/html''). Waiting 64 seconds
2019-10-06 12:34:45 WARNING (MainThread) [lightwave2.lightwave2] Cannot connect (exception '0, message='Attempt to decode JSON with unexpected mimetype: text/html''). Waiting 4 seconds
2019-10-06 12:34:48 WARNING (MainThread) [lightwave2.lightwave2] Cannot connect (exception '0, message='Attempt to decode JSON with unexpected mimetype: text/html''). Waiting 8 seconds
2019-10-06 12:34:49 WARNING (MainThread) [lightwave2.lightwave2] Cannot connect (exception '0, message='Attempt to decode JSON with unexpected mimetype: text/html''). Waiting 8 seconds
2019-10-06 12:34:56 WARNING (MainThread) [lightwave2.lightwave2] Cannot connect (exception '0, message='Attempt to decode JSON with unexpected mimetype: text/html''). Waiting 16 seconds
2019-10-06 12:34:58 WARNING (MainThread) [lightwave2.lightwave2] Cannot connect (exception '0, message='Attempt to decode JSON with unexpected mimetype: text/html''). Waiting 16 seconds

@maa-x
Copy link

maa-x commented Oct 6, 2019

To be fair, wouldn't allowing Home Assistant to start create other issues relating to automations that depend on the state of the lights?

@bigbadblunt
Copy link
Owner

Fixed in latest commit. Not super-elegant, as the only way of recovering is to restart HA when the LW server comes back up, but it'll do for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants