Items randomly turning on

Correct. And it is not likely you have it installed.
You absolutely do not need to have any ports open to the outside for openHAB, so I would strongly advise against it. I had a quick look earlier on shodan.io and immediately found a number of openhab installations completely open. I just had to connect to the URL to be presented with the UI, and be able to switch lights etc.

1 Like