During the last weeks I frequently face the issue that the bridge is offline. OH does not recover from this on its own but I need to stop/start it.
2020-08-01 08:50:40.072 [DEBUG] [internal.handler.InnogyDeviceHandler] - handleCommand called for channel ‘innogysmarthome:VariableActuator:SMARTHOME09:cxxxxxxxxxxxxecba84d1dce7d2cca9b:switch’ of type ‘VariableActuator’ with command ‘ON’
2020-08-01 08:50:40.076 [DEBUG] [internal.handler.InnogyDeviceHandler] - Cannot handle command - bridge is not online. Command ignored.
2020-08-01 08:51:40.091 [DEBUG] [internal.handler.InnogyDeviceHandler] - handleCommand called for channel ‘innogysmarthome:VariableActuator:SMARTHOME09:cxxxxxxxxxxxxecba84d1dce7d2cca9b:switch’ of type ‘VariableActuator’ with command ‘ON’
2020-08-01 08:51:40.092 [DEBUG] [internal.handler.InnogyDeviceHandler] - Cannot handle command - bridge is not online. Command ignored.
2020-08-01 08:52:40.072 [DEBUG] [internal.handler.InnogyDeviceHandler] - handleCommand called for channel ‘innogysmarthome:VariableActuator:SMARTHOME09:cxxxxxxxxxxxxecba84d1dce7d2cca9b:switch’ of type ‘VariableActuator’ with command ‘ON’
2020-08-01 08:52:40.074 [DEBUG] [internal.handler.InnogyDeviceHandler] - Cannot handle command - bridge is not online. Command ignored.
2020-08-01 08:53:40.073 [DEBUG] [internal.handler.InnogyDeviceHandler] - handleCommand called for channel ‘innogysmarthome:VariableActuator:SMARTHOME09:cxxxxxxxxxxxxecba84d1dce7d2cca9b:switch’ of type ‘VariableActuator’ with command ‘ON’
2020-08-01 08:53:40.075 [DEBUG] [internal.handler.InnogyDeviceHandler] - Cannot handle command - bridge is not online. Command ignored.
2020-08-01 08:54:40.074 [DEBUG] [internal.handler.InnogyDeviceHandler] - handleCommand called for channel ‘innogysmarthome:VariableActuator:SMARTHOME09:cxxxxxxxxxxxxecba84d1dce7d2cca9b:switch’ of type ‘VariableActuator’ with command ‘ON’
2020-08-01 08:54:40.075 [DEBUG] [internal.handler.InnogyDeviceHandler] - Cannot handle command - bridge is not online. Command ignored.
2020-08-01 08:55:40.096 [DEBUG] [internal.handler.InnogyDeviceHandler] - handleCommand called for channel ‘innogysmarthome:VariableActuator:SMARTHOME09:cxxxxxxxxxxxxecba84d1dce7d2cca9b:switch’ of type ‘VariableActuator’ with command ‘ON’
2020-08-01 08:55:40.101 [DEBUG] [internal.handler.InnogyDeviceHandler] - Cannot handle command - bridge is not online. Command ignored.
OH is 2.5.7 and innogy binding is 2.5.7 as well. Innogy is accessible from the app and the browser.
It’s not yet fixed. It was thought to be fixed, but the fix didn’t work correctly, so it was reversed. The issue reported is that the websocket connects stops and than no commands can be send.
There has been an update of the SHC2 to version 8.16 - 1.1.20.350. The binding still works fine. I have a watchdog/ flip-flop scenario implenented using a state. So I can detect quickly if communication has stopped.
I’ll report how things develop…
Thank you. Script and rule have been created. If the binding is not connected for more than 1 hour I will restart the binding. I’ll report if it works.
These are the variables
Number ZVWDBuffer “Innogy Watchdog Reset Counter [%d]” (gBoilerControl)
Switch kZVWD “ZVWD” (All ) {channel=“innogysmarthome:VariableActuator:XXXXXXXXX:XXXXXXXXXXXXXXX:switch”}
and some more information on the script I forgot to post
you need to install sshpass using apt-get install sshpass
make sure permissions for the script as set that openhab can execute the script. I used the following command to test this
sudo -u openhab /mnt/USER/haushalt/scripts/RestartInnogy.sh
Please excuse if my installation instructions are clumsy but I am a linux beginner myself and most of what I do is copy paste from what I find on the internet.
You could just check if the bridge is online/offline:
rule "InnogyBridgeThingUpdate"
when
Thing "innogysmarthome:bridge:SMARTHOME08" changed
then
val bridgeStatus = getThingStatusInfo("innogysmarthome:bridge:SMARTHOME08").getStatus()
logWarn("default.rules", "Innogy Bridge is " + bridgeStatus.toString())
if (bridgeStatus.toString() == "OFFLINE") {
[...]
}
end
Sounds good. That an option I have not thought of.
In the very beginning of the binding I had issues with values not refreshing. At this point in time I build the watchdog to make sure openhab receives updates. The interface is important to me as we control our viessmann boiler from the heating demand calculated using innogy thermostats. Works very well if updates are received.
Have the following issue since a couple of months. After Telekom refreshes the DSL connection to my Fritzbox (every night @ approx. 03:30am), the innogy bridge is OFFLINE and unable to reconnect again. Have to restart openhab every morning then in order to get ONLINE again. A restart of the binding does not help. Thus, for me the issue described above doesn’t appear to be solved.
@dk8pn
I had similar behaviour here. When my Fritzbox lost the DSL connection, the SHC could no longer establish a connection.
In a conversation with Innogy support, it was recommended not to assign a fixed IP to the SHC in the Fritzbox.
It was only 1 week ago, but since then at least the SHC seems to connect again.
The problem with the binding described above remains.
Thanks for the hints. Have been unprecise in my post above and need to correct my message: the innogy SHC reconnects (set DHCP within the Fritzbox), but openHAB is not able to reconnect the bridge. The log file INFO is indeed the ERROR message
@Hilbrand: due to the fact, that the binding restart doesn’t help, i am convinced that it is an openHAB issue.