I use an Iotawatt to measure power in my houshold. As datacollector i run a emonpi with emoncms on it.
Need some data also in openhab
To being able to publish to the internal MQTT server i add in Key16 the publish to MQTT process.
imageimage.png839x47 3.15 KB
This seems to work correct as I controlled the output with a free MQTT client MQTTFX and see data every 10 seconds.
But the setup on the client side seems to bee not correct:
OPENHAB MQQT binding installed and mqtt.cfg adapted as following
mosquitto.url=tcp://192.168.x.xx:1883
mosquitto.user=emonpi
mosquitto.pwd=emonpimqtt2016
mosquitto.qos=2
in openhab in my itemfile i defined following item:
Number Gesamtverbrauch { mqtt="<[mosquitto:emon/IotaWatt/Verbrauch_gesamt:state:default]" }
As MQTT topic is documented as :
[basetopic]/[node]/[keyname] i use
emon is the base topic (found in the docu)
Iotawatt is my Node
Verbrauch_gesamt is my Topic which i will subscribe
But get no values to openhab ?? Think there is something wrong with the topic syntax
Don´t find the failure in my configuration
Maybe somwhere have done similar and could give my advice
Thanks