-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: Include homie-convention such that openHAB MQTT 2.4 Binding can auto-discover the Sensors #57
Comments
Not just an idea, this is definitely something that is going to happen 😃 |
I was playing around a little bit to publish the sensor data according to the homie 3.0 convention. see here: https://github.com/pavax/miflora-mqtt-daemon/blob/master/miflora-mqtt-daemon.py Pay attention to the fact, that openhab 2.4 does not support '-' within the device-id's name or apparently has some issues with it (see: eclipse-archived/smarthome#6784). So make sure you change that value in the config.ini:
|
Do you use the embedded MQTT Broker from OpenHab 2.4? Don't you have a problem with #55? |
@Markkuuss I'm using mosquitte so there was no need to set the client_id as mentioned in #55. |
@pavax your code works for me with the latest openHAB 2.5.5 (and mosquitto) |
Ich erlaube mir mal in Deutsch zu schreiben, mein Englisch ist nicht so gut :-) Wie seht ihr das? So sieht das ganze aus, dem Sensor vom Elefantenbaum habe ich absichtlich die Batterie entnommen, damit man sieht, dass dieser in openHAB auch sauber als Offline angezeigt wird: |
Just an idea for easier use. If the device "announces" itself according to the complete homie convention, then the new MQTT Binding in openHAB would auto-discover it.
The text was updated successfully, but these errors were encountered: