zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

COZB0001 local temperature calibration does not seem to work

Open tobimai opened this issue 1 year ago • 17 comments

What happened?

I recently bought 2 COZB0001 TRVs, and I am using automations to automatically set the local temperature calibration to adjust it to be similar to a temperature sensor. This works fine with the predecessor of the device.

On these devices, local temperate calibration seems to have no effect.

When adjusting it, the reported local temperature does not change

What did you expect to happen?

The local temperature changes

How to reproduce it (minimal and precise)

Try to set the local temperature calibration and observe the reported local temperature

Zigbee2MQTT version

2.6.1

Adapter firmware version

Can't find, should not be relevant. CC2652R stick without any problems

Adapter

Electrolama zig-a-zig-ah!

Setup

Homeassistant addon, HA running on a VM on x86

Device database.db entry

{"id":59,"type":"EndDevice","ieeeAddr":"0xf4ce365804bc3b9f","nwkAddr":50571,"manufId":4151,"manufName":"Eurotronic","powerSource":"Battery","modelId":"SPZB0001","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":769,"inClusterList":[0,1,3,513,10],"outClusterList":[25,0],"clusters":{"genBasic":{"attributes":{"modelId":"SPZB0001","manufacturerName":"Eurotronic","powerSource":3,"zclVersion":8,"appVersion":1,"stackVersion":4,"hwVersion":34,"dateCode":"20240821","swBuildId":"00560210"}},"hvacThermostat":{"attributes":{"16386":0,"16387":1550,"16392":161,"localTemp":2050,"pIHeatingDemand":0,"occupiedHeatingSetpoint":1550,"unoccupiedHeatingSetpoint":1550,"localTemperatureCalibration":25}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":200}}},"binds":[{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00124b0022a54d45","endpointID":1},{"cluster":513,"type":"endpoint","deviceIeeeAddress":"0x00124b0022a54d45","endpointID":1}],"configuredReportings":[{"cluster":513,"attrId":8,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":18,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":20,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":16387,"minRepIntval":0,"maxRepIntval":3600,"repChange":25,"manufacturerCode":4151},{"cluster":513,"attrId":16392,"minRepIntval":0,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4151},{"cluster":513,"attrId":0,"minRepIntval":0,"maxRepIntval":300,"repChange":1}],"meta":{}}},"appVersion":1,"stackVersion":4,"hwVersion":34,"dateCode":"20240821","swBuildId":"00560210","zclVersion":8,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{},"lastSeen":1758556417210}

Debug log

No response

AFAIK the device is pretty new, so if you need some more logs/tests let me know, I have 2 of them

tobimai avatar Sep 22 '25 15:09 tobimai

Hello

i can confirm theis behavior. It do not work, "Current temperature" do not changes. Please fix it.

Thamks!

RestOp avatar Oct 10 '25 14:10 RestOp

additional interesting findings:

  • accepted range seems to be -2.5 to 2.5 - larger values will be ignored or set to -25/25 in the response
  • the sign seems to be switched internally, i.e. setting a value of +25 will trigger PIDemand increase. I'd expected the opposite.

lehneres avatar Oct 14 '25 19:10 lehneres

As mentioned in #28649 the newer revision (led display and two touch-sense buttons) SPZB0001 have the local_temperature_calibration inverted compared to the old model as it seems from some crude testing.

jkrenzer avatar Oct 16 '25 18:10 jkrenzer

It seems from playing around with both types of TRVs the complete logic is inverted:

  • SPZB0001 adds the calibration-value to the internal temperature, then regulates using the setpoint and the corrected internal temperature. Measured Temperature changes.
  • COZB0001 adds the calibration-value to the given setpoint, then regulates using the corrected setpoint and the interla temperature. Measured Temperature seems to stay constant.

This would explain why the internal temperature value does not seem to change when the calibration is changed and why the reaction seems inverted. In the difference calculated by the algorithm $\Delta T = T_{measure}' - T_{target}'$ it is

  • SPZB0001: $\Delta T = \left( T_{measure} + T_{calib} \right) - T_{target} = T_{measure} + T_{calib} - T_{target}$
  • COZB0001: $\Delta T = T_{measure} - \left( T_{target} + T_{calib} \right) = T_{measure} - T_{target} - T_{calib}$

So in one case $\Delta T$ shrinks (meaning the TRV will close the valve as it nears the target) when $T_{calib}$ is increased, in the other the exact opposite.

jkrenzer avatar Oct 17 '25 17:10 jkrenzer

Interesting finding @jkrenzer . When it gets colder next week I will adjust my automation accordingly and look at the pid demand and the temp and see if it works that way

tobimai avatar Oct 23 '25 21:10 tobimai

@tobimai: Were you able to replicate the behavior? This would be helpful to know. Thanks!

jkrenzer avatar Nov 28 '25 11:11 jkrenzer

@jkrenzer

It took longer than expected to be actually cold enough to need heating, but from what I have seen from the few days it is working if you do it the way you described it.

tobimai avatar Nov 30 '25 00:11 tobimai

It will be nice the documentation for this product to include that calibration works... differently

fumantsu avatar Jan 22 '26 12:01 fumantsu

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

github-actions[bot] avatar Mar 24 '26 00:03 github-actions[bot]

Not stale

On Tue 24 Mar 2026, 01:06 github-actions[bot], @.***> wrote:

github-actions[bot] left a comment (Koenkk/zigbee2mqtt#28703) https://github.com/Koenkk/zigbee2mqtt/issues/28703#issuecomment-4114494892

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

— Reply to this email directly, view it on GitHub https://github.com/Koenkk/zigbee2mqtt/issues/28703?email_source=notifications&email_token=ABWRA63VPVBTNKYZICQB53L4SHGQLA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMJRGQ2DSNBYHEZKM4TFMFZW63VGNVQW45LBNSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-4114494892, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWRA645ZYAGD4FOWUVDLI34SHGQLAVCNFSM6AAAAACHFYAXI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DCMJUGQ4TIOBZGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

fumantsu avatar Mar 24 '26 07:03 fumantsu

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

github-actions[bot] avatar May 24 '26 00:05 github-actions[bot]

Not stale

On Sun 24 May 2026, 02:20 github-actions[bot], @.***> wrote:

github-actions[bot] left a comment (Koenkk/zigbee2mqtt#28703) https://github.com/Koenkk/zigbee2mqtt/issues/28703#issuecomment-4526903125

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

— Reply to this email directly, view it on GitHub https://github.com/Koenkk/zigbee2mqtt/issues/28703#issuecomment-4526903125, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWRA62JXLWWGVQB7UJTGXL44I56VAVCNFSM6AAAAACHFYAXI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DKMRWHEYDGMJSGU . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

fumantsu avatar May 24 '26 05:05 fumantsu

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

github-actions[bot] avatar Jul 27 '26 00:07 github-actions[bot]

Not stale

fumantsu avatar Jul 27 '26 05:07 fumantsu

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

github-actions[bot] avatar Sep 28 '26 00:09 github-actions[bot]

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

github-actions[bot] avatar Nov 29 '26 00:11 github-actions[bot]