- Platform information:
- Hardware: RPI 3 B+ / SD 64Go
- OS: strech_
- Java version “1.8.0_201” Java™ SE Runtime Environment (build 1.8.0_201-b09) Java HotSpot™
Client VM (build 25.201-b09, mixed mode) - openHAB 2.4
- Issue of the topic: I can not find how to link my string item in OH2 to subscribe and view the msg.payload of my topic (TCPin) that I published with node-red. Yet I see the string in the Node-red console and in the debug window of Node-red UI
Hello everyone
Below my parameters :
- Items configuration related to the issue
String Message2 "Lu [%S]" {mqtt = "<[broker:MosquittoPI3:/TCPin:state:default"}
String Message "Lu [%S]" {mqtt = "<[broker:MosquittoPI3:/TCPin"}
- Sitemap configuration related to the issue
sitemap mqtt label="Test MQTT"
{
// Text item=VoiceCommand
Frame label="MQTT Control" {
Text item=MyString
Text item=Message
}
}
- Rules code related to the issue -> None
- Services configuration related to the issue
#mqtt:broker.url=tcp://192.168.0.27:1883
pid:org.openhab.mqtt
broker.url=tcp://192.168.0.27:1883
broker.clientId=openhab
broker.user=openhab
broker.pwd=openhab
broker.retain=true
broker.async=false
#mqtt:broker.qos=1
- If logs where generated please post these here using code fences:
- Mosquitto Log:
1558977765: mosquitto version 1.4.10 (build date Wed, 13 Feb 2019 00:45:38 +0000) starting
1558977765: Config loaded from /etc/mosquitto/mosquitto.conf.
1558977765: Opening ipv4 listen socket on port 1883.
1558977765: Opening ipv6 listen socket on port 1883.
1558977770: New connection from 127.0.0.1 on port 1883.
1558977770: New client connected from 127.0.0.1 as paho5084805050204 (c1, k60, u’openhab’).
1558977779: New connection from 127.0.0.1 on port 1883.
Openhab2 Log:
08:55:19.227 [INFO ] [smarthome.event.ItemStateChangedEvent] - Message changed from Unknown pattern P0=13 - P1=12 - P2=25 - P3=34
to Apres lecture des pulses 00000101110001100000000000000001 len=32
08:55:19.255 [INFO ] [smarthome.event.ItemStateChangedEvent] - Message changed from Apres lecture des pulses 00000101110001100000000000000001 len=32
to 20;01;SmartWare;ID=00171800;SWITCH=1;CMD=OFF;
08:57:54.961 [INFO ] [.io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 1c3f93db-384a-4257-afa0-be8708c6a40a, base URL = http://localhost:8080)
08:59:51.571 [INFO ] [.io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = 1c3f93db-384a-4257-afa0-be8708c6a40a, base URL = http://localhost:8080)
09:18:28.414 [INFO ] [smarthome.event.ItemStateChangedEvent] - Message changed from 20;01;SmartWare;ID=00171800;SWITCH=1;CMD=OFF;
to Decodage stream de bits > 162 RawSignal.Number = 132
- OPENHAB2 Things :
![Node|690x160] - Node-red console with msg.paylod
- Node-red UI with msg.payload
Thank you in advance for your information
Arpagor