zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Incorrect display of the negative temperature values ​​in the TS0601_temperature_humidity_sensor_1 sensor

Open lirtm opened this issue 1 year ago β€’ 12 comments

What happened?

I found this issue - https://github.com/Koenkk/zigbee2mqtt/issues/20774 . It talks about a different sensor β€” https://aliexpress.ru/item/1005005954597374.html , but with the same problem as mine. The sensor display shows -2.6Β°C and the Z2M shows 6551Β°C. 1

What did you expect to happen?

The values should match.

How to reproduce it (minimal and precise)

Place the sensor in an environment where a temperature value below 0Β°C is expected.

Zigbee2MQTT version

1.36.0-1 and EDGE

Adapter firmware version

20230507

Adapter

SONOFF ZB Dongle-P Zigbee 3,0 USB Dongle Plus

Setup

Add-on in Home Assistant in Proxmox on NUC Beelink Mini S

Debug log

No response

lirtm avatar Mar 10 '24 18:03 lirtm

???

lirtm avatar Mar 23 '24 08:03 lirtm

can you provide the data/database.db entry of your device?

Koenkk avatar Mar 23 '24 09:03 Koenkk

can you provide the data/database.db entry of your device?

are you talking about the file in zigbee2mqtt, I mean this one? 2024-03-23_133154

lirtm avatar Mar 23 '24 10:03 lirtm

Should be fixed now.

Changes will be available in the dev branch in a few hours from now.

Koenkk avatar Mar 24 '24 12:03 Koenkk

Should be fixed now.

Changes will be available in the dev branch in a few hours from now.

OK, if the temperature drops below 0 Π‘ tonight, I'll let you know.

Thank U

lirtm avatar Mar 24 '24 14:03 lirtm

Should be fixed now.

Changes will be available in the dev branch in a few hours from now.

unfortunately, nothing has changed.

lirtm avatar Apr 05 '24 04:04 lirtm

Could you provide the debug log when running with z2m 1.36.1 and the incorrect value is published?

See this on how to enable debug logging.

Koenkk avatar Apr 06 '24 06:04 Koenkk

Could you provide the debug log when running with z2m 1.36.1 and the incorrect value is published? > > > See this on how to enable debug logging.

I'm using the EDGE version now, as per your tip. If I catch a minus value, I'll post it. Logging enabled. We're warming up and even at night we're already getting positive temps. If only to put the sensor in the freezer, and then delete the values from the database).

lirtm avatar Apr 06 '24 08:04 lirtm

Could you provide the debug log when running with z2m 1.36.1 and the incorrect value is published?

See this on how to enable debug logging.

log.txt Here's the log. Stuck it in the freezer after all.) at 1:13 p.m., I got a negative

lirtm avatar Apr 06 '24 10:04 lirtm

You are not running z2m 1.36.1: Starting Zigbee2MQTT version 1.36.0-dev (commit #14e0440)

Koenkk avatar Apr 07 '24 08:04 Koenkk

You are not running z2m 1.36.1: Starting Zigbee2MQTT version 1.36.0-dev (commit #14e0440).

I apologize. Yes, everything is fine on the main version, the negative value in HA is displayed correctly. Apparently I didn't look at changelog 1.36.1, and kept using the dev version.

lirtm avatar Apr 07 '24 08:04 lirtm

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days

github-actions[bot] avatar Oct 05 '24 00:10 github-actions[bot]