Post by elkuba on Oct 14, 2015 9:42:40 GMT
Hi.
I have made RFM69 Gateway 2.2 and DHT end node and they work fine.
On my server I have OpenHAB 1.7 with Mosquitto.
Every 20s DHT end node publish data to broker
My OpenHAB can't read data from broker
My .item file
My .sitemap file
openhab.cfg
Result on OpenHAB interface
What am I doing wrong?
I have made RFM69 Gateway 2.2 and DHT end node and they work fine.
On my server I have OpenHAB 1.7 with Mosquitto.
Every 20s DHT end node publish data to broker
Client mosqsub/12039-compaq received PINGRESP
Client mosqsub/12039-compaq received PUBLISH (d0, q0, r0, m0, 'home/rfm_gw/nb/node02/dev48', ... (5 bytes))
24.40
Client mosqsub/12039-compaq received PUBLISH (d0, q0, r0, m0, 'home/rfm_gw/nb/node02/dev49', ... (5 bytes))
37.90
Client mosqsub/12039-compaq received PUBLISH (d0, q0, r0, m0, 'home/rfm_gw/nb/node02/dev48', ... (5 bytes))
24.40
Client mosqsub/12039-compaq received PUBLISH (d0, q0, r0, m0, 'home/rfm_gw/nb/node02/dev49', ... (5 bytes))
37.90
Client mosqsub/12039-compaq received PUBLISH (d0, q0, r0, m0, 'home/rfm_gw/nb/node02/dev48', ... (5 bytes))
24.30
Client mosqsub/12039-compaq received PUBLISH (d0, q0, r0, m0, 'home/rfm_gw/nb/node02/dev49', ... (5 bytes))
My OpenHAB can't read data from broker
My .item file
Number Temp "Temperature [%.1f °C]" {mqtt="<[mosquitto:home/rfm_gw/nb/node02/dev48:state:default]"}
Number HUM "Humidity [%.1f %%]" {mqtt="<[mosquitto:home/rfm_gw/nb/node02/dev49:state:default]"}
Number RSSI "RSSI [%d dB]" {mqtt="<[mosquitto:home/rfm_gw/nb/node02/dev02:state:default]"}
String getRSSI "get rssi" {mqtt=">[mosquitto:home/rfm_gw/sb/node02/dev02:command:*:default]"}
My .sitemap file
Frame label="MQTT Test" {
Text item=Temp
Text item=HUM
Text item=RSSI
}
openhab.cfg
################################# MQTT Transport ######################################
mqtt:mosquitto.url=tcp://localhost:1883
mqtt:mosquitto.qos=0
mqtt:mosquitto.retain=true
mqtt:mosquitto.async=true
Result on OpenHAB interface
MQTT Test
* Temperature - DEGC
* Humidity - %
* RSSI - dB
(c)2010-2015 openHAB.org
What am I doing wrong?