Raspberry Pi and MQTT-OpenHAB
-
I am a newbei and some stupid questions like cookies:p
Do i have to use Raspberry Pi for OpenHAB or PiDome?My hardware : ENC28J60 Ethernet module + UNO + NRF24L01 Radio so I made connections following http://www.mysensors.org/build/ethernet_gateway and using sketch : http://www.mysensors.org/build/mqtt_gateway without changing any code i got this:
Started!
0;0;3;0;9;read: 0-0-0 s=0,c=0,t=0,pt=0,l=0:
0;0;3;0;9;version mismatch
0;0;3;0;9;read: 0-0-0 s=0,c=0,t=0,pt=0,l=0:
0;0;3;0;9;version mismatchIs it ok?
I tried everything to install OpenHAB server with Mac but "start.sh" didnt work, i cant open this file, do you have any idea? (Yes i installed Java)
When Uno is connected with the same network
- Win8 cmd is running this:****
Launching the openHAB runtime...
osgi> 2014-11-27 19:21:06.004 [INFO ] [.o.core.internal.CoreActivator] - openHAB
runtime has been started (v1.6.0).
2014-11-27 19:21:06.619 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service
has been started
2014-11-27 19:21:06.734 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Disco
very initialization completed.
2014-11-27 19:21:06.739 [INFO ] [.io.transport.mqtt.MqttService] - MQTT Service
initialization completed.
2014-11-27 19:21:06.739 [INFO ] [o.i.t.m.i.MqttBrokerConnection] - Starting MQTT
broker connection 'mysensor'
2014-11-27 19:21:07.990 [INFO ] [penhab.io.rest.RESTApplication] - Started REST
API at /rest
2014-11-27 19:21:16.926 [INFO ] [.o.u.w.i.servlet.WebAppServlet] - Started Class
ic UI at /openhab.app
2014-11-27 19:21:27.769 [ERROR] [.io.transport.mqtt.MqttService] - Error startin
g broker connection
org.eclipse.paho.client.mqttv3.MqttException: Unable to connect to server
at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNet
workModule.java:75) ~[na:na]
at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(Cli
entComms.java:538) ~[na:na]
at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_25]
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) ~[na:
1.8.0_25]
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[na:
1.8.0_25]
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[na:1.8.0
_25]
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[n
a:1.8.0_25]
at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_2
5]
at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_25] at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNet
workModule.java:66) ~[na:na]
... 2 common frames omitted
-
If you are planning on using PiDome i would say yes because that is the primary platform focused on, it could theoratically also run on other platforms but we are not done yet supporting a correct way to start.
If you are planning openhab you can run it on other systems like windows (as you do (win8?)) as well.
Your first error, i would say double check you are using the latest versions of each (MQTT gateway on the uno and the nodes).
The second error mentions that it is having a connection timeout which would say it is unable to reach the given ip address, make sure you can connect to the MQTT broker on the uno using for example with mqtt.fx (http://mqttfx.jfx4ee.org/). or other mqtt tools.
John.
-
I can nothing say about OpenHAB or PiDome but:
Started! 0;0;3;0;9;read: 0-0-0 s=0,c=0,t=0,pt=0,l=0: 0;0;3;0;9;version mismatch 0;0;3;0;9;read: 0-0-0 s=0,c=0,t=0,pt=0,l=0: 0;0;3;0;9;version mismatch
Does not look good, it seems an error from the gateway.
Suggested Topics
-
My final setup to get MySensors and OpenHab communicating via MQTT
OpenHAB • 28 Jul 2016, 04:10 • Eric Buhring 21 Jun 2017, 20:06 -
SmartSleep and multiple messages on HVAC sensor
OpenHAB • 28 Apr 2018, 14:08 • ogghst 8 May 2018, 19:36 -
[Solved] MQTT gateway problem
Troubleshooting • 10 Oct 2016, 21:29 • pinkkoff 13 Oct 2016, 20:10 -
Switching from v1.5 MQTT gateway to ESP8266 MQTT Client gateway
OpenHAB • 1 Feb 2016, 18:41 • mbj 8 Mar 2016, 22:07 -
Sonoff + MySensors mqtt gateway + Home-Assistant
My Project • 19 Jan 2017, 21:51 • Efflon 31 Mar 2017, 14:15 -
OpenHAB 2.1 keeps showing light level as 0 with BH1750 and V_LEVEL
Troubleshooting • 9 Jul 2017, 20:52 • George Laynes 11 Jul 2017, 18:41 -
The Most Stable Controller and gateway, vera or another listed controller
Controllers • 24 Nov 2014, 03:15 • raditv 25 Nov 2014, 07:31