I have had many months of great service from this component but just recently (last 3-4 days) it has started to misbehave. I am finding that the switches are becoming unavailable after a few minutes after boot up of HASSIO.
Looking at the log I see
2019-11-21 08:41:54 WARNING (MainThread) [custom_components.sonoff] Grace period activated!
2019-11-21 08:43:41 ERROR (Thread-3) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x722f46b0>>: string indices must be integers
2019-11-21 08:43:41 ERROR (Thread-9) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x722f46b0>>: string indices must be integers
2019-11-21 08:45:50 ERROR (Thread-9) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x722f46b0>>: string indices must be integers
2019-11-21 08:45:50 ERROR (Thread-3) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x722f46b0>>: string indices must be integers
2019-11-21 08:45:52 ERROR (Thread-3) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x722f46b0>>: string indices must be integers
2019-11-21 08:53:04 WARNING (MainThread) [custom_components.sonoff] Grace period activated!
2019-11-21 09:03:14 WARNING (MainThread) [custom_components.sonoff] Grace period activated!
I know grace period suggests that I have logged in to the Ewelink service twice but the thing is that I haven’t as far as I know! Whenever I use the Ewelink app, I remove the Sonoff component config from HASSIO (And restart) so it doesn’t interfere, then I restore it and restart HASSIO afterwards.
I am still running the Websocket release from January 2019 because it has been working fine for me this whole time. I don’t think I have updated HASSIO since then either.
Any pointers would be much appreciated! And apologies in advance if this has already been covered above. I looked but I couldn’t find anything reporting this particular issue.