Skip to content
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

thermostat Moes BHT-002-GCLZB shows factor 10 too low temperature #11980

Closed
regissg opened this issue Mar 29, 2022 · 14 comments
Closed

thermostat Moes BHT-002-GCLZB shows factor 10 too low temperature #11980

regissg opened this issue Mar 29, 2022 · 14 comments
Labels
problem Something isn't working stale Stale issues

Comments

@regissg
Copy link

regissg commented Mar 29, 2022

What happened?

All is working fine except for the local_temperature that is 10 time lower than expected (1.8 instead of 18.5°).

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.23.0-dev commit: 6394d0f

Adapter firmware version

20220103

Adapter

Sonoff zStack3x0

Debug log

debug 2022-03-29 17:18:17: Received Zigbee message from 'sda', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,18],"type":"Buffer"},"datatype":2,"dp":24}],"seq":15109}' from endpoint 1 with groupID 0 info 2022-03-29 17:18:18: MQTT publish: topic 'zigbee2mqtt/sda/state', payload 'ON' info 2022-03-29 17:18:18: MQTT publish: topic 'zigbee2mqtt/sda/system_mode', payload 'heat' info 2022-03-29 17:18:18: MQTT publish: topic 'zigbee2mqtt/sda/preset', payload 'hold' info 2022-03-29 17:18:18: MQTT publish: topic 'zigbee2mqtt/sda/current_heating_setpoint', payload '20' info 2022-03-29 17:18:18: MQTT publish: topic 'zigbee2mqtt/sda/child_lock', payload 'UNLOCK' info 2022-03-29 17:18:18: MQTT publish: topic 'zigbee2mqtt/sda/sensor', payload 'IN' info 2022-03-29 17:18:18: MQTT publish: topic 'zigbee2mqtt/sda/running_state', payload 'heat' info 2022-03-29 17:18:18: MQTT publish: topic 'zigbee2mqtt/sda/heat', payload 'ON' info 2022-03-29 17:18:18: MQTT publish: topic 'zigbee2mqtt/sda/kinds_of_period', payload 'OFF' info 2022-03-29 17:18:18: MQTT publish: topic 'zigbee2mqtt/sda/local_temperature', payload '1.8' info 2022-03-29 17:18:18: MQTT publish: topic 'zigbee2mqtt/sda/preset_mode', payload 'hold' info 2022-03-29 17:18:18: MQTT publish: topic 'zigbee2mqtt/sda/local_temperature_calibration', payload '-1' info 2022-03-29 17:18:18: MQTT publish: topic 'zigbee2mqtt/sda/max_temperature', payload '40' info 2022-03-29 17:18:18: MQTT publish: topic 'zigbee2mqtt/sda/linkquality', payload '43'

@regissg regissg added the problem Something isn't working label Mar 29, 2022
@Koenkk
Copy link
Owner

Koenkk commented Mar 29, 2022

Please check with z2m 1.24.0

@regissg
Copy link
Author

regissg commented Mar 30, 2022

I have updated to 1.24.0 but I still have the same problem

@Koenkk
Copy link
Owner

Koenkk commented Mar 30, 2022

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

@regissg
Copy link
Author

regissg commented Mar 30, 2022

The device modelID is a TS0601 but the manufacturerName is _TZE200_ye5jkfsb. I have edited directly the .../devices/moes.js file to add that device.

Here are the database.db as well as the moes.js
moes.zip

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Apr 1, 2022
@Koenkk
Copy link
Owner

Koenkk commented Apr 1, 2022

Added it now, could you check if the reported local_temperature value is correct now?

@regissg
Copy link
Author

regissg commented Apr 1, 2022

Your proposed fix does not work as you keep a temperature = temperature / 10 for _TZE200_ye5jkfsb.

I do not understand why there was a /10 in the original fromZigbee.js file ?:

            case tuya.dataPoints.moesLocalTemp:
                temperature = value & 1<<15 ? value - (1<<16) + 1 : value;
                return {local_temperature: parseFloat((temperature / 10).toFixed(1))};

If I remove the /10 it does work well

            case tuya.dataPoints.moesLocalTemp:
                temperature = value & 1<<15 ? value - (1<<16) + 1 : value;
                return {local_temperature: parseFloat(temperature.toFixed(1))}; 

@regissg
Copy link
Author

regissg commented Apr 1, 2022

To be more accurate the commercial brand name of this TS0601 / _TZE200_ye5jkfsb device is Avatto and its commercial model id is ME81H.

As I could not find Avatto in your devices folder I added it as a Moes BHT-002-GCLZB in your moes.js file at it seems identical in behavior.

@adamaru
Copy link

adamaru commented Apr 3, 2022

Probably this fix broke my _TZE200_aoclfnxz . Now it's showing 10 times more than it's supposed to. 19.5°C before fix now shows as 195°C.

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Apr 3, 2022
@Koenkk
Copy link
Owner

Koenkk commented Apr 3, 2022

Whoops; made a typo, fixed it now.

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

@adamaru
Copy link

adamaru commented Apr 4, 2022

It's working again, thanks.

@chrisazzopardi
Copy link

chrisazzopardi commented Apr 5, 2022

I still can't get it to work.... using HA Edge Addon v1.25.0

{ "child_lock": "UNLOCK", "current_heating_setpoint": 21, "linkquality": 142, "local_temperature": 1.9, "local_temperature_calibration": -1, "max_temperature": 35, "preset": "program", "preset_mode": "program", "sensor": "OU", "system_mode": "heat" }

Manufacturer: Moes
Model: BHT-002-GCLZB
Zigbee Model: TS0601
Zigbee Manufacturer: _TZE200_ztvwu4nk

@chrisazzopardi
Copy link

any update on this?

@github-actions
Copy link
Contributor

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

@VoltickVL
Copy link

I still also get have problem with temperature.... I am using HA Edge Addon v1.29.0-dev commit: [3351bc2]

{
"child_lock": "UNLOCK",
"current_heating_setpoint": 190,
"deadzone_temperature": 1,
"heat": "OFF",
"linkquality": 116,
"local_temperature": 275,
"local_temperature_calibration": -2,
"max_temperature": 30,
"max_temperature_limit": 350,
"min_temperature_limit": 1,
"preset": "hold",
"preset_mode": "hold",
}

Manufacturer: Moes
Model: BHT-002-GCLZB
Zigbee Model: TS0601
Zigbee Manufacturer: _TZE200_5toc8efa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working stale Stale issues
Projects
None yet
Development

No branches or pull requests

5 participants