Hi all,
I have just started to use openhab (latest) on an RPi3. It is installed properly. I have an elkoep/inels controller which uses http protocol, it cannot use https, therefore the official addon cannot be used with it.
Oh thanks.
mosquitto is up and running now. It looks like it is also properly connected to the elan-rf-003.
also I could add binding to mqtt in openhab, but I think it is not correct (although the devices were detected)
It looks like I need home assistant mqtt binding, but I can’t find that.
Mosquitto is your MQTT broker.
You need to define a MQTT bridge thing first ( ThingType: MQTT Broker ). OH then is able to connect to Mosquitto.
See MQTT - Bindings | openHAB .
Do you have one ?
Once you have a MQTT bridge the MQTT things ( e.g. Generic MQTT Thing ) can be defined / discovered related to the defined bridge.
Yes, MQTT broker is up and running (as far as I see).
MQTT bridge is defined and able to connect to mosquitto, at least the status is green, online (in openhab).
And now I don’t know how should I continue.
Now I start to understand (probably). The github link you posted contains a tool which collected the things and put into openhab, so actually mosquitto is working. But that elan host is still unreachable from openhab. I need to configure that bridging somehow I think.
One way communication from elan to openhab via mosquitto works ?
The way back ( openhab via mosquitto to elan ) does not work yet ?
According to the github project documentation there are two python scripts that are to be executed ( main_worker.py and socket_listener.py ) do you run both scripts ?
mosquitto works, but no bridge defined (yet), therefore openhab can reach the broker, but cannot communicate with elan.
The python scripts are configured properly, so they can communicate with the broker and also can reach elan (and find the devices). Also the python scrips can upload the collected devices into openhab (somehow), but those devices are currently useless in openhab, because the bridge is not working (so openhab cannot communicate with them). There is a run.sh which calls both python scripts.
That’s what I understand at this moment.
No, it looks like the real connection chain is:
openhab <=> mosquitto <=> python scripts <=> elan <=> devices
the python scripts (at least one of them) should run continuously to make it work, because that makes the conversion between mqtt and elan. This elan box does not handle mqtt at all, it has only a http interface.
here you can see the home assistant MQTT component, which cannot be added if MQTT broker is already set. So first I have to delete the broker, add that component, create the broker and configure home assistant component to use that broker. Probably it is a bug in openhab, or probably it is intentionally designed that way, but it took me more than 2 weeks to catch it.