MQTT: No publish flow registered

  • Platform information:
    • Hardware: QNAP NAS using virt. Station
    • OS: Ubuntu 24.03
    • openHAB version: 5.03
  • Issue of the topic: Error message and no data from MQTT

Hi

sorry that I start with a question, but I’m new with OpenHAB.

I tried several times to get rid of the message below and also googled it; I found several user with the same message but without a solution.

The following warning messages are pubished every minute geting a new value from MQTT:
Logger Class

com.hivemq.client.internal.mqtt.handler.publish.incoming.MqttIncomingPublishService

Message

No publish flow registered for MqttStatefulPublish{stateless=MqttPublish{topic=solar/ac/yieldtotal, payload=8byte, qos=AT_MOST_ONCE, retain=true}, packetIdentifier=-1, dup=false, topicAlias=0, subscriptionIdentifiers=}.

Any idea how to et rid of it? It also looks like the values are not stored.

Best regards

Christian

Welcome.

I’m not an expert, but maybe one will come along and give a better answer. As background

  1. (Outside of OH) Do you have a MQTT broker on a server (not part of OH)? Can you reach it with Mqtt Explorer (very helpful, but not required)? Are you getting data from device? Do you know if it conforms to some standard like HA?

  2. (Inside of OH) Did you install the MQTT binding in Openhab? Did you create a generic MQTT thing that references the MQTT broker in OH? Or did you Scan (UI Thing page, plus sign in lower corner, choose MQTT binding and Scan?

  3. If generic Thing copy the state channel from MQTT explorer and link to an OH item. Can’t help more without more information.

  4. Pictures; Thing

Channel

Configure Channel

The link to item. Is log message still there?

Hi appela

this is part of the log: Every minute I get an update from MQTT broker:

I expect the connections is stetup correctly, the two values are registered and send to OH.

Broker: Running within a container on QNAP NAS. Image: IOBROKER

I’ll check your printscreens above.

Regards

Christian

Just additionally: My printscreen looks the same (as I can see):

My thing and channel:

I think OH doesn’t know what to do with the data.

Regards and thanks for help

Christian

So far looks okay to me except state topic has dot instead of slash. I usually just copy the state from MQTT explorer to make sure

Also the message usually contains a value that is unpacked with JSON path (You need to have that installed -It is under Transforms)

      Basement_Door_Light_n:
        type: dimmer
        label: Basement Door Light
        config:
          stateTopic: zwave2/Door_Light/switch_multilevel/endpoint_0/currentValue
          commandTopic: zwave2/Door_Light/switch_multilevel/endpoint_0/targetValue/set
          transformationPattern:
            - JSONPATH:$.value

I don’t see a value in your error message

Hi apella,

just pointing to this solves the issue. I copied/ pasted the object names from iobroker, which uses 'dot’ as the delimiter. Just replacing the dot with a slash sloves it.

‘jasontranslate’ was not required, but a good hint.

Typical problem of a novice.

Thanks a lot to solve the issue.

Regards

Christian

1 Like