Skip to content

Tolerance and Min/Max settings for Zigbee Temperature and Humidity cluster settings don't work as expected #11211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
def1149 opened this issue Apr 1, 2025 · 6 comments
Assignees
Labels
Area: Zigbee Issues and Feature Request about Zigbee

Comments

@def1149
Copy link

def1149 commented Apr 1, 2025

Board

ESP32-C6

Device Description

Adafruit Feather ESP32-c6

Hardware Configuration

N/A

Version

v3.2.0

IDE Name

Arduino IDE

Operating System

Windows 11

Flash frequency

80 MHz

PSRAM enabled

no

Upload speed

921600

Description

For the Temperature and Humidity endpoint. Other numerically valued endpoints were not tested

  1. If either the Temperature value or the Humidity value fall outside the upper and lower limits set when configuring
    the endpoint, garbage values are reported to Home Assistant ZHA. The set limit value should be reported, or
    some indication like ">>" or "<<" should be reported to indicate the limits were exceeded. I'm don't know if the
    Zigbee standard calls out a result for this scenario

  2. Setting the tolerance to 0.01 for Temperature or Humidity doesn't work. Tolerance is limited to 0.1

Sketch

N/A

Debug Message

N/A

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@def1149 def1149 added the Status: Awaiting triage Issue is waiting for triage label Apr 1, 2025
@P-R-O-C-H-Y
Copy link
Member

Hi @def1149, thank you for the report. I will take a look.

@P-R-O-C-H-Y P-R-O-C-H-Y added Area: Zigbee Issues and Feature Request about Zigbee Status: Needs investigation We need to do some research before taking next steps on this issue and removed Status: Awaiting triage Issue is waiting for triage labels Apr 2, 2025
@P-R-O-C-H-Y P-R-O-C-H-Y self-assigned this Apr 2, 2025
@P-R-O-C-H-Y
Copy link
Member

P-R-O-C-H-Y commented May 6, 2025

Hi @def1149, I can point you to the Zigbee cluster specification:
If you use MIN/MAX measured values, it means that you cannot set Measured values outside this area. If you do, the value is invalid.

Image Image

Tolerance should be possible to set to 0,01 °C. Do you have any error messages or logs where you see it does not work?

@P-R-O-C-H-Y P-R-O-C-H-Y removed the Status: Needs investigation We need to do some research before taking next steps on this issue label May 6, 2025
@def1149
Copy link
Author

def1149 commented May 6, 2025

Tolerance worked at 0.01, but I had to set it in Home Assistant because I changed the setting in the EP code after initial enrollment

Min and Max settings work, but if your reported values exceed those settings, you get random garbage values in HA. I think you should get no value or some other Zigbee-defined indication that the range setting was violated, instead of a garbage value

@P-R-O-C-H-Y
Copy link
Member

Then its something maybe worth reporting on HA side.
But as written in the cluster specification, if you set value outside the MIN/MAX range its invalid value. So you are the one controlling the value, so you should set in your code the min/max according to your temp sensor and filter out the values outside the range :)

@def1149
Copy link
Author

def1149 commented May 6, 2025

Yes, I set it very wide now as it's an unnecessary feature

@def1149
Copy link
Author

def1149 commented May 6, 2025

Closing this as not a bug

@def1149 def1149 closed this as completed May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Zigbee Issues and Feature Request about Zigbee
Projects
None yet
Development

No branches or pull requests

2 participants