rule "Cupboard Light" when Item CupboardLightStatus changed then
val CupboardLightState =CupboardLightStatus.state.toString
if (CupboardLightState == 'true') {sendCommand(CupboardLight,ON)}
else if (CupboardLightState == 'false') { sendCommand(CupboardLight,OFF)}
end
The error is that openHAB cannot reach 192.168.6.91. Has that machine changed IP addresses? Is it ON? Perhaps your network is spotty and the device loses it’s network connection periodically?
This error indicates a networking error and not something that can be addressed from OH.
I haven’t looked into too much at the moment, they are all static IP’s and it happens to multiple devices at exactly the same time (but not all of them). It may be a firmware issue with the devices as they are constantly upgrading them, just wanted to see what the error really meant (I assumed no network but wanted to see if anyone else had experienced problems with the binding itself)
we have constant power cuts in South Africa, when power is restored my router boots up way slower than OH and of course the MQTT broker, resulting in this error (due to the network not being up yet). is there a way to ensure the broker retries the connection if it fails the first time? any help on this matter would be greatly appreciated. i am still utilizing MQTT binding 1.x
The MQTT 2 binding will keep trying to connect/reconnect. I don’t know the behavior of MQTT 1. If it doesn’t there isn’t anything you can do about it beyond upgrading to v2.