openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.88k stars 3.59k forks source link

[loxone] Loxone integration not working #9848

Closed hazaart closed 10 months ago

hazaart commented 3 years ago

Added the Loxone add on to openhab.

Getting the following error when connecting to the miniserver: "Error communicating with Miniserver (normally closed)"

All connection details are correct. My loxone miniserver is also exposed to the outside via dyndns. I tried both with local connection string and external.

ppieczul commented 3 years ago

What version of Loxone Config (or firmware) and which generation of Miniserver?

hazaart commented 3 years ago

Gen 2 miniserver running firmware version11.1.9.14

ppieczul commented 3 years ago

@hazaart 11.1 only for GEN2 introduces websocket level encryption. This needs to be implemented in the binding. Unfortunately I have only GEN1. I think it should not be hard to implement, but I would need remote access to a GEN2 miniserver, or to find someone who has GEN2 and can implement this encryption.

ppieczul commented 3 years ago

@hazaart I just got GEN2 Miniserver at home and installed latest Beta FW (11.3.2.16). I can see the binding connects just fine, like with GEN1 and all earlier FW versions. So it looks like we are facing here some other problem. Does the issue still occur for you?

hazaart commented 3 years ago

Unfortunately yes.

ppieczul commented 3 years ago

Please check first if you have a token field empty under thing preferences advanced. It should be blank. If this is the case please enable debug logging: log into console: openhab-cli console (default password habopen) in console run: log:set DEBUG org.openhab.binding.loxone Then try to connect and send me the log from /var/log/openhab/openhab.log

sirkserac commented 3 years ago

I have the same issue whit the same firmware and miniserver gen2. Did you find a solution?

ppieczul commented 3 years ago

@sirkserac can you please post debug logs? It is not possible to diagnose this without it.

sirkserac commented 3 years ago

Hi, I wil try to do this later this week.

On Sun, 18 Apr 2021, 18:29 Pawel Pieczul, @.***> wrote:

@sirkserac https://github.com/sirkserac can you please post debug logs? It is not possible to diagnose this without it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openhab/openhab-addons/issues/9848#issuecomment-822019361, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMBH6ZCAY6IG7LYOBALM3TTJMCHZANCNFSM4WF66INQ .

sirkserac commented 3 years ago

first of all i c this warning in the openhab log: 2021-04-18 14:45:21.957 [WARN ] [fig.discovery.DiscoveryResultBuilder] - Representation property 'MAC' of discovery result for thing 'loxone:miniserver:MAC' is missing in properties map. It has to be fixed by the bindings developer.

sirkserac commented 3 years ago

hi, i just removed the thing and added it manualy instead of automatic and now it works.

ppieczul commented 3 years ago

Ah, ok, I haven't checked how the discovery works for a long time. I will test it. Also, if binding refuses to connect in the future, please remember that in order to enter a password, you need to delete the key under advanced properties. Otherwise it will keep on logging on with the key, which may be invalid. I am happy that it works now.

lsiepel commented 1 year ago

As no follow-up was post, can i assume this issue was fixed?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.