my setup with an Innogy SHC1 and OH2 (using binding-innogysmarthome - 2.5.2) pretty often experiences the bridge going offline and not reconnecting automatically. This is annoying because many OH2 commands do not get through to my Innogy smart home devices.
Is there an item reflecting the bridge status (online / offline) I could use in a rule, e.g. to send me a warning?
I tried, just guessing, and without success:
You think I should ping the IP address of my SHC? I doubt this is the issue: My SHC is alive all the time.
To my knowledge, the problem is caused by the Innogy backend servers providing the webservices (API) to the binding.
Thank you, rossko57! Your hint led me to the solution:
// Innogy SHC / Bridge goes offline
rule "Innogy SHC went offline"
when
Thing "innogysmarthome:bridge:SMARTHOME04" changed
then
var status = getThingStatusInfo("innogysmarthome:bridge:SMARTHOME04").getStatus()
// do whatever, e.g:
sendNotification("some.body@mail.org", "Innogy bridge status changed to "+status.toString())
end
The correct name of the Thing was taken from events.log.