Openhab MQTT Example
-
Connection refused means (in 99%) your broker is not up or you got the wrong address.
I supposed you to run mosquitto_sub/pub on the same machine your broker runs on.
On a different machine you have to add the host address like:mosquitto_sub -h 192.168.1.10 -t /topic -m "message".No - at last its not really complicated, but I think you had just a bad start. MySensors and OpenHab tend to start right out of the box - but you need the right box......
-
Please stop helping me now. Now i have pidome and the first sensor is running after 30 minutes with my ethernet mqtt gateway ;-)
That is what i want. Maybe one day there are nice tutorials for Openhab. Thank u very much for trying to help. If i now start with mosquitto to get openhab run is the same as when i make a patch for a patch....
It seems that pidome has wait for me it is really nice and not much complicated.
This thread can be closed here.
-
Please stop helping me now. Now i have pidome and the first sensor is running after 30 minutes with my ethernet mqtt gateway ;-)
That is what i want. Maybe one day there are nice tutorials for Openhab. Thank u very much for trying to help. If i now start with mosquitto to get openhab run is the same as when i make a patch for a patch....
It seems that pidome has wait for me it is really nice and not much complicated.
This thread can be closed here.
@Marcus Try Tim's files and JAR file for serial openHab http://forum.mysensors.org/topic/655/serial-gateway-connection-to-openhab/2
I added a motion sensor and its fine. -
@Marcus Try Tim's files and JAR file for serial openHab http://forum.mysensors.org/topic/655/serial-gateway-connection-to-openhab/2
I added a motion sensor and its fine. -
@Marcus Good to see you have it working! The MySensors MQTT plugin and serial drivers are quite stable. Some parts of the server can behave a little strange, cause still in heavy development.
@John There was a problem with serial....1.6.1.jar it doesnt show this correctly;
ArduinoUpdate -> 0;0;3;0;9;read: 14-14-0 s=1,c=1,t=16,pt=0,l=1:0
14;1;1;0;16;0i think its related with baud rate for jar file because i saw these kind of things in terminal ����BO�"U��²e��B&��i�
-
@John There was a problem with serial....1.6.1.jar it doesnt show this correctly;
ArduinoUpdate -> 0;0;3;0;9;read: 14-14-0 s=1,c=1,t=16,pt=0,l=1:0
14;1;1;0;16;0i think its related with baud rate for jar file because i saw these kind of things in terminal ����BO�"U��²e��B&��i�
@C.r.a.z.y. That's highly possible, or there was a wrong choice of encoding at the wrong moment.
-
Hi.
I have OpenHAB, MQTT and battery powered units (http://iot-playground.com/2-uncategorised/10-low-power-door-window-sensor). I cannot receive battery status in Openhab (other things from the same unit are transmitted OK). What is wrong?- I send: gw.sendBatteryLevel(batLevel);
- Number node4_bat "Bat [%.1f %%]" <temperature> (node4, GBattery) {mqtt="<[mysensor:MyMQTT/4/255/50:state:default]"}
I have seen somewhere that battery state is transmitted via '50'?!?
-
Hi. I have figured it out. It is presented as "mysensor:MyMQTT/4/255/V_:state:default". No number in current version from mysensors!!!
The next step was to edit MyMQTT.cpp: char V_50[] PROGMEM = ""; into char V_50[] PROGMEM = "50";. Now I get battery status via "mysensor:MyMQTT/4/255/V_50:state:default".So in conclusion I have answered my own questions and have solved them...