I have a running openhab 2.4 installation with Ubuntu 18.04.2 LTS (GNU/Linux 4.18.0-20-generic x86_64). The Amazon Echo Control Binding is working well as long as the internet connection not lost.
Last night the internet connection lost caused by a DSL provider problem. In this case the Amazon Echo Control Binding throws a hughe amount of error messages
2019-05-23 00:56:33.852 [WARN ] [mazonechocontrol.internal.Connection] - Request to url 'https://alexa.amazon.de/api/content-skills/enabled-feeds' fails with unkown error
Finally openhab server does not resond to any request. Rules are not working, UI’s are not working, karaf console not working. Needed to restart openhab service after internet connection restored.
Is there a way to prevent such problems?
My solutuion is not to use the Amazon Echo Control Binding any more.
Could you provide the technical framework for this concept? Maybe use one of my bindings below that maybe you have an example (network, amazon, open weather, ring, sonos, nest, dark sky, air quality, unifi and ip camera)?
I am on openhab 3.2 and this is still a problem. Log fills up when the internet becomes unavailable. I would like the binding to recognise that situation and make the error in the log simple and plain instead of verbose and difficult to work out what happened. I did ask the devloper a while ago but he wasn’t supportive at the time.
So, I wrote a rule and some scripts that monitor the network access to the internet and when the internet is unreachable a script runs that stops the binding (uses karaf) or disable the the amazon echo account thing (uses REST api). When the network is back the rule enables the thing or restarts the binding. Enabling,disabling the thing is the preferred method as I found sometimes restarting the binding didn’t always work in OH2. I have the monitoring now also running in OH3
I’ve been doing this also since OH 2.x and now with OH 3.x A combination of checking a group of internet connection values and the Alexa status value on ALL Alexa related commands.
If my internet goes down, the inline logic rules kick in above so they don’t execute. When the internet comes back online, I restart the binding also via Karaf and then check if it worked by the Alexa Status, if Alexa Status != ONLINE, I do it again if necessary.
It would be nice if the binding could provide some sort of this Internet connectivity switch logic.