zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

tuya ZWT198/ZWT100-BH - AVATTO thermostat

Open kirtapix opened this issue 1 year ago β€’ 9 comments

What happened?

In z2m expose device menu :

  • system mode settings "manual" and "auto" are inverted, when you set "auto" in z2m frontend, it sets "manual" mode on the device.
  • workday settings "5-2" and "6-1" are inverted too, when you set "5-2" on z2m frontend it sets "6-1" setting on device.

What did you expect to happen?

Obviously I expect that manual mode sets manual mode, and auto mode sets auto mode. Same for workday : when I choose "5-2" on frontend, it should set "5-2" on device.

How to reproduce it (minimal and precise)

Use z2m frontend to notice that system mode settings and workday settings are messed up.

Zigbee2MQTT version

1.36.1

Adapter firmware version

20210708

Adapter

zStack3x0

Setup

z2m installed on HA OS, on a rpi4

Debug log

No response

kirtapix avatar Apr 06 '24 16:04 kirtapix

  1. have same issues with ZWT198/ZWT100-BH AVATTO thermostat - i used SONOFF Zigbee 3.0 USB Dongle Plus, TI CC2652P + CP2102(N) coordinator
  2. can you explain to me - exposes - sensor - internal/external/both ....how is this feature usable? This thermostat have only one NTC temperature sensor. If i check all exposed entites I don't see any "remote temp sensor" or simialry named entity. =3) how to use external temperature sensor?

johnfromul avatar Apr 07 '24 19:04 johnfromul

Same issues here.

@johnfromul the zwt100 has the option of connecting an external sensor, the zwt198 not.

B3WiN avatar Oct 01 '24 16:10 B3WiN

any solutions for this one. i think i have the same problem with this model. also i feel like i can never understand when it powers up and when it powers down. i am standing next to radiator for the test. which is not nice. happy to know if there is solution.

studymonkey999 avatar Oct 02 '24 13:10 studymonkey999

The latest 1.40.2 release solved the preset problem for me (Avatto ZWT198 / _TZE204_xnbkhhdr). https://github.com/Koenkk/zigbee2mqtt/releases/tag/1.40.2

The workday problem still exist.

B3WiN avatar Oct 02 '24 14:10 B3WiN

I did the update but still having issues with presets ans working days. Is there any action that i have to do to apply the fixe ?

kirtapix avatar Oct 02 '24 15:10 kirtapix

I did the update but still having issues with presets ans working days. Is there any action that i have to do to apply the fixe ?

Which model and zigbee manufacturer?

https://github.com/Koenkk/zigbee-herdsman-converters/pull/7966

According to this for _TZE200_viy9ihs7 the code is: return {auto: tuya.enum(1), manual: tuya.enum(0), temporary_manual: tuya.enum(2)};

For the others (_TZE204_lzriup1j and _TZE204_xnbkhhdr): return {auto: tuya.enum(0), manual: tuya.enum(1), temporary_manual: tuya.enum(2)};

That change solved me the preset problem.

B3WiN avatar Oct 02 '24 16:10 B3WiN

I have Avatto model TS0601 manufacturer _TZE200_viy9ihs7. I did the update, restarted everything but presets auto and manual are still inverted

kirtapix avatar Oct 02 '24 16:10 kirtapix

I have Avatto model TS0601 manufacturer _TZE200_viy9ihs7. I did the update, restarted everything but presets auto and manual are still inverted

Hmm... theoretically, the TZE200 should work as an inverse compared to the TZE204s in this two points, but if you still have them working in reverse with the updated code, in fact, then you don't need this exchange in the code.

If possibble, I recommend that you rewrite the code manually and try it with the TZE204 line of code and if it works, report it in this issues or even create a PR.

B3WiN avatar Oct 03 '24 13:10 B3WiN

As soon as I have time I'll do this. Thanks for your reply !

Le jeu. 3 oct. 2024, 15:49, B3WiN @.***> a Γ©crit :

I have Avatto model TS0601 manufacturer _TZE200_viy9ihs7. I did the update, restarted everything but presets auto and manual are still inverted

Hmm... theoretically, the TZE200 should work as an inverse compared to the TZE204s in this two points, but if you still have them working in reverse with the updated code, in fact, then you don't need this exchange in the code.

If possibble, I recommend that you rewrite the code manually and try it with the TZE204 line of code and if it works, report it in this issues or even create a PR.

β€” Reply to this email directly, view it on GitHub https://github.com/Koenkk/zigbee2mqtt/issues/22112#issuecomment-2391475447, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI5OEDTI7Q5OZSX4ZW7TEI3ZZVDNJAVCNFSM6AAAAABPF6HCHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRGQ3TKNBUG4 . You are receiving this because you authored the thread.Message ID: @.***>

kirtapix avatar Oct 03 '24 15:10 kirtapix

Same problem for me Mode are Inverted

Liionboy avatar Oct 20 '24 08:10 Liionboy

                tuya.valueConverterBasic.lookup((_, device) => {
                    // https://github.com/Koenkk/zigbee2mqtt/issues/21353#issuecomment-1938328429
                    if (device.manufacturerName === '_TZE200_viy9ihs7') {
                        return {auto: tuya.enum(1), manual: tuya.enum(0), temporary_manual: tuya.enum(2)};
                    } else {
                        return {auto: tuya.enum(0), manual: tuya.enum(1), temporary_manual: tuya.enum(2)};
                    }
                }),

This line need to be edited and be like this:

                    if (device.manufacturerName === '_TZE200_viy9ihs7') {
                        return {auto: tuya.enum(0), manual: tuya.enum(1), temporary_manual: tuya.enum(2)};

Liionboy avatar Nov 10 '24 09:11 Liionboy

on ZWT100-BH with the 1.41.0 release, the following problem is still present :

"system mode settings "manual" and "auto" are inverted, when you set "auto" in z2m frontend, it sets "manual" mode on the device."

Do you know if this will be solved in the next realse ?

Thanks

domo86 avatar Dec 01 '24 09:12 domo86

Hello, with 1.42.0 release the problem has not been solved.

on ZWT100-BH with the 1.41.0 release, the following problem is still present :

"system mode settings "manual" and "auto" are inverted, when you set "auto" in z2m frontend, it sets "manual" mode on the device."

Do you know if this will be solved in the next realse ?

Thanks

domome avatar Dec 04 '24 22:12 domome

For me in this update was solved, but there are another problem with week day, 6+1 is 5+2 and viceversa

Thanks

Liionboy avatar Dec 04 '24 22:12 Liionboy

Hello, with 1.42.0 release the problem has not been solved.

on ZWT100-BH with the 1.41.0 release, the following problem is still present : "system mode settings "manual" and "auto" are inverted, when you set "auto" in z2m frontend, it sets "manual" mode on the device." Do you know if this will be solved in the next realse ? Thanks

I've created a Pull Request solving this issue: https://github.com/Koenkk/zigbee-herdsman-converters/pull/8446

Danieldiazi avatar Dec 05 '24 23:12 Danieldiazi

Now it works correctly for my device '_TZE204_lzriup1, thank you.

domome avatar Dec 06 '24 09:12 domome

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 Feb 05 '25 00:02 github-actions[bot]