I did some testing with the DEV build in combination with the Shelly RGBW2.
I still can get the shelly to perform a reboot (to crash) if I do very quick changes in color, brightness, etc. The only difference I saw is that there is no more timeout log message (and password protected devices are not working, but I think you already mentioned that).
2020-01-24 13:51:42.423 [hingStatusInfoChangedEvent] - 'shelly:shellyrgbw2-color:fenster' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Es trat ein unerwartetes Problem beim API-Zugriff auf. Überprüfen Sie die Logdatei für genauere Informationen.
I thing the connect timeout is the phase while the device is rebooting. This usually takes between 5-15sec.
Do you see “xxx: Alarm condition: RESTARTED” in the log. You could also link the channel uptime. If the device restarts this values gets resetted and starts over (that is the condition checked by the binding).
Coap and mqtt are disabled. The only things I changed are the wifi settings, the NTP server and I set a login password. I don’t use the shelly app / shelly cloud.
Is Cloud enabled? Could you try to disable the Cloud function and repeat the test?
It seems that the device is not able to handle http requests (REST) while the device sends data to the cloud.
I uploaded a DEV buld to myfiles with increased timeouts (connect 30s, read 6s). @Nightman@Chris_si Could you please verify this build.
I will try this new build of the binding, but maybe not before weekend.
@markus7017
I have just done another test with the current (not updated) dev build of your binding.
Reproducable timeouts happen, if I use the Shelly 2.5 as it was configured from the binding (http:// entries in the Actions section of the Shelly enabled and set).
As soon as I disable all Actions in the Shelly (using the webinterface of the Shelly 2.5) I do not see any timeouts in the openHAB log any more, regardless how much and how quickly I switch.
My conclusion: Timeouts are happening due to the actions ‘callback’ of the Shelly (bug in binding or openHAB or openHAB-system OS?) or during the Shelly doing the actions ‘callback’ (bug in Shelly firmware?).
@Nightman@Chris_si
That’s good info, I forward to the Shelly guys. That’s a clear pointer to the http events (action urls)
please perform another test (if you have time)
disable button & relay events in the thing config, enable CoIoT
clear action urls using the Web App
run the test
In this case to http events should be echoed, but Coap, which is UDP-based
sounds good, that means CoIoT would fix it. However, I don’t all status values by Coap. I already reported the missing ones to Shelly and they are checking to implement those for firmware 1.6.0 (not yet confirmed)
Currently the binding sets the urls when this is enabled in the thing config, but it doesn’t deregister when you switch it off. That’s on my list.
Could yo switch to DEBUG (for a while) even exception should be displayed on INFO level. Just to make sure the log is clean. OH console: “log:set DEBUG org.openhab.binding.shelly”
Quick question… on the RGBW2 device, there isn’t a channel shown for the ‘input’ like you see on other devices. Is that expected behaviour? Is there a way to activate that function somehow?