Mqtt Subscription of temperature values

Hello,
I am running local MQTT broker and I am sending temperature and humidity values to Gladys:
MQTT broker logs:

1685610114: New client connected from 127.0.0.1 as gladys-main-instance-827662 (p2, c1, k60).
1685610114: No will message specified.
1685610114: Sending CONNACK to gladys-main-instance-827662 (0, 0)
1685610114: Received SUBSCRIBE from gladys-main-instance-827662
1685610114:     stat/+/+ (QoS 0)
1685610114: gladys-main-instance-827662 0 stat/+/+
1685610114: Sending SUBACK to gladys-main-instance-827662
1685610114: Received SUBSCRIBE from gladys-main-instance-827662
1685610114:     tele/+/+ (QoS 0)
1685610114: gladys-main-instance-827662 0 tele/+/+
1685610114: Sending SUBACK to gladys-main-instance-827662
1685610114: Received SUBSCRIBE from gladys-main-instance-827662
1685610114:     gladys/master/# (QoS 0)
1685610114: gladys-main-instance-827662 0 gladys/master/#
1685610114: Sending SUBACK to gladys-main-instance-827662
1685610139: New connection from 192.168.51.95 on port 1883.

1685610139: New client connected from 192.168.51.95 as auto-2FAE309D-CDEE-437B-6EEE-5C1197C5FB59 (p2, c1, k60).
1685610139: No will message specified.
1685610139: Sending CONNACK to auto-2FAE309D-CDEE-437B-6EEE-5C1197C5FB59 (0, 0)
1685610139: Received PUBLISH from auto-2FAE309D-CDEE-437B-6EEE-5C1197C5FB59 (d0, q0, r0, m0, 'gladys/master/device/mqtt:matter/feature/mqtt:temperature/state', ... (2 bytes))
1685610139: Sending PUBLISH to gladys-main-instance-827662 (d0, q0, r0, m0, 'gladys/master/device/mqtt:matter/feature/mqtt:temperature/state', ... (2 bytes))
1685610139: Received DISCONNECT from auto-2FAE309D-CDEE-437B-6EEE-5C1197C5FB59
1685610139: Client auto-2FAE309D-CDEE-437B-6EEE-5C1197C5FB59 disconnected.
1685610166: New connection from 192.168.51.95 on port 1883.
1685610166: New client connected from 192.168.51.95 as auto-EEE8488A-5E21-6061-EF16-3CFB7AB48AF3 (p2, c1, k60).
1685610166: No will message specified.
1685610166: Sending CONNACK to auto-EEE8488A-5E21-6061-EF16-3CFB7AB48AF3 (0, 0)
1685610166: Received PUBLISH from auto-EEE8488A-5E21-6061-EF16-3CFB7AB48AF3 (d0, q0, r0, m0, 'gladys/master/device/mqtt:matter/feature/mqtt:humidity/state', ... (5 bytes))
1685610166: Sending PUBLISH to gladys-main-instance-827662 (d0, q0, r0, m0, 'gladys/master/device/mqtt:matter/feature/mqtt:humidity/state', ... (5 bytes))
1685610166: Received DISCONNECT from auto-EEE8488A-5E21-6061-EF16-3CFB7AB48AF3
1685610166: Client auto-EEE8488A-5E21-6061-EF16-3CFB7AB48AF3 disconnected.
1685610174: Received PINGREQ from gladys-main-instance-827662
1685610174: Sending PINGRESP to gladys-main-instance-827662
1685610185: New connection from 192.168.51.95 on port 1883.
1685610185: New client connected from 192.168.51.95 as auto-B9417BE0-E53B-987D-6774-65A40423BEF6 (p2, c1, k60).
1685610185: No will message specified.
1685610185: Sending CONNACK to auto-B9417BE0-E53B-987D-6774-65A40423BEF6 (0, 0)
1685610185: Received PUBLISH from auto-B9417BE0-E53B-987D-6774-65A40423BEF6 (d0, q0, r0, m0, 'gladys/master/device/mqtt:matter/feature/mqtt:temperature/state', ... (2 bytes))
1685610185: Sending PUBLISH to gladys-main-instance-827662 (d0, q0, r0, m0, 'gladys/master/device/mqtt:matter/feature/mqtt:temperature/state', ... (2 bytes))
1685610185: Received DISCONNECT from auto-B9417BE0-E53B-987D-6774-65A40423BEF6
1685610185: Client auto-B9417BE0-E53B-987D-6774-65A40423BEF6 disconnected.
1685610229: New connection from 192.168.51.95 on port 1883.
1685610229: New client connected from 192.168.51.95 as auto-1BD56E27-01F5-EC96-6234-B7EB46E967AA (p2, c1, k60).
1685610229: No will message specified.
1685610229: Sending CONNACK to auto-1BD56E27-01F5-EC96-6234-B7EB46E967AA (0, 0)
1685610229: Received PUBLISH from auto-1BD56E27-01F5-EC96-6234-B7EB46E967AA (d0, q0, r0, m0, 'gladys/master/device/mqtt:matter/feature/mqtt:temperature/state', ... (4 bytes))
1685610229: Sending PUBLISH to gladys-main-instance-827662 (d0, q0, r0, m0, 'gladys/master/device/mqtt:matter/feature/mqtt:temperature/state', ... (4 bytes))
1685610229: Received DISCONNECT from auto-1BD56E27-01F5-EC96-6234-B7EB46E967AA
1685610229: Client auto-1BD56E27-01F5-EC96-6234-B7EB46E967AA disconnected.
1685610234: Received PINGREQ from gladys-main-instance-827662

I have created MQTT device with temperature, humidity features and added to the room.


Interesting enough I can see humidity but NOT temperature values. !? I can not see any spelling error, See attached pictures;


Can you check value sent in humidity topic ? It should be a numeric only.
You can try with https://mqttx.app/

Hi @cicoub13,

Using command line:

mosquitto_pub -h rock5b.local -t "gladys/master/device/mqtt:matter/feature/mqtt:temperature/state" -m "25"

And I can see that on MQTT integration UI state message is updated: Last value received a few seconds ago.

But Dashboard is Not :frowning:

This is not a case for humidity:

mosquitto_pub -h rock5b.local -t "gladys/master/device/mqtt:matter/feature/mqtt:humidity/state" -m "33"

gladys_temp5

My bad :neutral_face: When you choose the device feature, you have to select Temperature under Temperature Sensor (and not Air Conditioning/Thermostat/Device Sensor)

You should see a selector with Unit

image

1 Like

Yes, that was the issue, not right ‘Temperature’ was chosen.
I can see that dashboard has limited widgets to choose,… and I can select widget which is not connected to any integrated device ( maybe different mqtt topic path ? ) I am not UX developer, but by my opinion it would be nice to select only those widget which are related to already defined devices in integration page.

Another question: How to add pressure widget to the dashboard?
Cheers
/Sigis

Maybe you didn’t see it but there is a widget “Devices in room” that let you display any kind of device.

You can display your pressure (or any device) here:

“Temperature in room” and “humidity in room” widgets are “special” widgets, because they calculate the average temperature/humidity value of all temperature/humidity sensors in this room.