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

tuya ZWT198/ZWT100-BH - AVATTO thermostat #22112

Closed
kirtapix opened this issue Apr 6, 2024 · 17 comments
Closed

tuya ZWT198/ZWT100-BH - AVATTO thermostat #22112

kirtapix opened this issue Apr 6, 2024 · 17 comments
Labels
problem Something isn't working stale Stale issues

Comments

@kirtapix
Copy link

kirtapix commented Apr 6, 2024

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 kirtapix added the problem Something isn't working label Apr 6, 2024
@johnfromul
Copy link

  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?

@B3WiN
Copy link

B3WiN commented Oct 1, 2024

Same issues here.

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

@studymonkey999
Copy link

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.

@B3WiN
Copy link

B3WiN commented Oct 2, 2024

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.

@kirtapix
Copy link
Author

kirtapix commented Oct 2, 2024

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 ?

@B3WiN
Copy link

B3WiN commented Oct 2, 2024

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?

Koenkk/zigbee-herdsman-converters#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.

@kirtapix
Copy link
Author

kirtapix commented Oct 2, 2024

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

@B3WiN
Copy link

B3WiN commented Oct 3, 2024

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.

@kirtapix
Copy link
Author

kirtapix commented Oct 3, 2024 via email

@Liionboy
Copy link

Same problem for me Mode are Inverted

@Liionboy
Copy link

                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)};

@domo86
Copy link

domo86 commented Dec 1, 2024

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
Copy link

domome commented Dec 4, 2024

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

@Liionboy
Copy link

Liionboy commented Dec 4, 2024

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

Thanks

@Danieldiazi
Copy link

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: Koenkk/zigbee-herdsman-converters#8446

@domome
Copy link

domome commented Dec 6, 2024

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

Copy link
Contributor

github-actions bot commented Feb 5, 2025

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 github-actions bot added the stale Stale issues label Feb 5, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 12, 2025
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

8 participants