Java Runtime Environment: openjdk version “1.8.0_222”
openHAB version: 2.4.0
Hi all,
my name is Denis I’m from Germany and I’m new with OpenHAB. I’m running a small SmartHome installation since about two years now. In the past with homebridge, but after this didn’t run very stable and I was frustrated from configuring all that rules and stuff with the Home App, I did a switch to OpenHAB 2.4 and I’m really happy with that decision. I already intergrated a lot of Hue items, wheater, netatmo, logitech harmony, my 3D printer and a lot of other stuff and I’m just playing with ESP8266 MCU to get some other funny things working.
One thing which is really confusing me, that OpenHAB switches some items when I restart OpenHAB or also when I’m just changing Things- or Items configuration. At the moment I should restart my Instance because I changed my MQTT configuration, but I can’t do that, because my family is already in the beds and if I restart OH now, a lot of lights in there rooms will change their state
Can somebody tell my why OH is doing that? And is there a way to prevent that?
openHAB would not send commands when starting up itself. There are some options, why that could happen to you, but there is not enough information yet.
You don’t need to restart openHAB when changing things viy a things file, instead you have to restart the corresponding addon via openHAB console (Karaf console)
No, that’s not correct. The easy-peasy way to work around this issue is to restart openHAB, but that’s not necessary. To restart the bundle would suffice. Afaik the issue is not fixed completely (at least there is an active issue in github about that).
Are there specific rules in how the switches are changed (e.g. every restart light1 is switched ON, light2 is always switched OFF) or is this a random issue (so you can’t predict the switching at all)?
Don’t you have some rules which has a ‘System started’ trigger or a trigger which is made by one of the lights (like lights01 changed, etc…). If you are sure that there are 0 rules which sends command (sendCommand) to the lights then it must be something else.
Do you just only restart openHAB or your whole server? What MQTT broker are you using? If you restart your whole Raspberry then it might be some misconfiguration in MQTT, especially using retain flag. That can cause issues like this…