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

Humidity percentage is completely wrong on HA but on device and tuya app it's reading correctly #183

Open
albiea opened this issue Dec 24, 2024 · 15 comments

Comments

@albiea
Copy link

albiea commented Dec 24, 2024

On the device it's reading as 45% humidity however on HA it's reading as 0%. This has the XT + cloud integration.

I have 4 of these wifi temp and humidity devices and they all are reading 0% for humidity

xtend_tuya-01JFQW4BCX96YNANRVGCEQDH6Z-albie office-817fa15294915ee2db9465ae5a3fde28.json

I've also changed it over to DP and it's still appearing as 0%
image
image

@dahadd
Copy link

dahadd commented Jan 9, 2025

Same issue here, no update the humidity and temperature value with xtend tuya. version 3.0.7. tuya with xtend tuya

@azerty9971
Copy link
Owner

Hello,
Can you retry with v3.0.8-beta.2?

Sorry about this, when I looked at the code it was just random garbage, I must have been really tired when making it :/

Thanks in advance,
Azerty

@albiea
Copy link
Author

albiea commented Jan 26, 2025

just downloaded the beta 2 update now. restarted and it failed to setup

Image

tried looking for the logs but wasn't sure where to find them

@azerty9971
Copy link
Owner

you can find the logs in "Settings" -> "System" -> "Logs" (in the menu at the bottom left :))

@albiea
Copy link
Author

albiea commented Jan 26, 2025

beta 3 was installed. it did initialize however all the temp sensors are coming up as unavailable

Image

Image

Image

from the log

[2025-01-27 08:12:10,093] [tuya-openmq] _on_log: Received PUBLISH (d0, q0, r0, m0), 'cloud/token/in/new8b08479c08f9111467c607e715cc719f', ... (348 bytes)
[2025-01-27 08:12:10,093] [tuya-openmq] payload-> b'{"protocol":4,"data":"fgUcajJ1KKSHNqSWMlJwxmJNeOr2KMk/WamlubkTlC22NzbbXRA5LqlNfQBQ5vKj2eN6G6o+8KoMI29X/BgvAsugP5+HkfNuLfDTmL84jZa0eolUbLsZVGYXPvUfRCl5Wlvb1SnsL8Bf1chuNzruwCv8Zmi8UrpoHxD9b1HmYT+Xp1AcLrWYatIF7av+aev2K/CXb7CGR2E4DtaEudmZ1Hc7xGbwudHWxUhL8A3HIiJUyG0GGk1daG8UWnPg0XOO","t":1737925929,"pv":"2.0","sign":"a4862a3a53f2b95e61c5b49c449385ec"}'
2025-01-27 08:12:10.093 DEBUG (Thread-9 (_thread_main)) [tuya_iot] _on_log: Received PUBLISH (d0, q0, r0, m0), 'cloud/token/in/new8b08479c08f9111467c607e715cc719f', ... (348 bytes)
[2025-01-27 08:12:10,093] [tuya-openmq] on_message: {'protocol': 4, 'data': {'devId': 'bf21251039871b7f1864s0', 'dataId': '69d4acf2-5243-4bc0-a2e8-0fe099c2db9a', 'productKey': 'm3og8g6fe1vyj9ae', 'status': [{'2': 51, 'code': 'humidity_value', 't': 1737925929, 'value': 51}]}, 't': 1737925929, 'pv': '2.0', 'sign': 'a4862a3a53f2b95e61c5b49c449385ec'}
[2025-01-27 08:12:10,094] [tuya-device] mq receive-> {'protocol': 4, 'data': {'devId': 'bf21251039871b7f1864s0', 'dataId': '69d4acf2-5243-4bc0-a2e8-0fe099c2db9a', 'productKey': 'm3og8g6fe1vyj9ae', 'status': [{'2': 51, 'code': 'humidity_value', 't': 1737925929, 'value': 51}]}, 't': 1737925929, 'pv': '2.0', 'sign': 'a4862a3a53f2b95e61c5b49c449385ec'}
[2025-01-27 08:12:10,094] [tuya-device] mq _on_device_report-> []
2025-01-27 08:12:10.093 DEBUG (Thread-9 (_thread_main)) [tuya_iot] payload-> b'{"protocol":4,"data":"fgUcajJ1KKSHNqSWMlJwxmJNeOr2KMk/WamlubkTlC22NzbbXRA5LqlNfQBQ5vKj2eN6G6o+8KoMI29X/BgvAsugP5+HkfNuLfDTmL84jZa0eolUbLsZVGYXPvUfRCl5Wlvb1SnsL8Bf1chuNzruwCv8Zmi8UrpoHxD9b1HmYT+Xp1AcLrWYatIF7av+aev2K/CXb7CGR2E4DtaEudmZ1Hc7xGbwudHWxUhL8A3HIiJUyG0GGk1daG8UWnPg0XOO","t":1737925929,"pv":"2.0","sign":"a4862a3a53f2b95e61c5b49c449385ec"}'
[2025-01-27 08:12:10,094] [customer-mq] _on_log: Received PUBLISH (d0, q0, r0, m0), 'cloud/device/bf21251039871b7f1864s0/in/24d2afb98121974b6505c40a3a980362/pen', ... (205 bytes)
2025-01-27 08:12:10.093 DEBUG (Thread-9 (_thread_main)) [tuya_iot] on_message: {'protocol': 4, 'data': {'devId': 'bf21251039871b7f1864s0', 'dataId': '69d4acf2-5243-4bc0-a2e8-0fe099c2db9a', 'productKey': 'm3og8g6fe1vyj9ae', 'status': [{'2': 51, 'code': 'humidity_value', 't': 1737925929, 'value': 51}]}, 't': 1737925929, 'pv': '2.0', 'sign': 'a4862a3a53f2b95e61c5b49c449385ec'}
[2025-01-27 08:12:10,095] [customer-mq] payload-> b'{"protocol":4,"data":{"devId":"bf21251039871b7f1864s0","dataId":"02ec613a-7504-4aff-a5fe-74503cdd01a3","productKey":"m3og8g6fe1vyj9ae","status":[{"dpId":2,"t":1737925929647,"value":51}]},"t":1737925929967}'
2025-01-27 08:12:10.094 DEBUG (Thread-9 (_thread_main)) [tuya_iot] mq receive-> {'protocol': 4, 'data': {'devId': 'bf21251039871b7f1864s0', 'dataId': '69d4acf2-5243-4bc0-a2e8-0fe099c2db9a', 'productKey': 'm3og8g6fe1vyj9ae', 'status': [{'2': 51, 'code': 'humidity_value', 't': 1737925929, 'value': 51}]}, 't': 1737925929, 'pv': '2.0', 'sign': 'a4862a3a53f2b95e61c5b49c449385ec'}
[2025-01-27 08:12:10,095] [customer-mq] on_message: {'protocol': 4, 'data': {'devId': 'bf21251039871b7f1864s0', 'dataId': '02ec613a-7504-4aff-a5fe-74503cdd01a3', 'productKey': 'm3og8g6fe1vyj9ae', 'status': [{'dpId': 2, 't': 1737925929647, 'value': 51}]}, 't': 1737925929967}

@azerty9971
Copy link
Owner

Can you check if this applies to you by any chance?
https://github.com/azerty9971/xtend_tuya/blob/main/docs/renew_cloud_credentials.md

Thanks in advance,
Azerty

@albiea
Copy link
Author

albiea commented Jan 26, 2025

no i renewed it last week

Image

@albiea
Copy link
Author

albiea commented Jan 26, 2025

@albiea
Copy link
Author

albiea commented Jan 26, 2025

i've just redownloaded 3.0.7 to see if it something that is on the 3.0.8

3.0.7 is reporting everything again (except for humidity) where as 3.0.8 shows as unavailable

Image

@azerty9971
Copy link
Owner

Can you join me on https://meet.google.com/jfb-cbfg-hoy please?

Thanks,
Azerty

@azerty9971
Copy link
Owner

Sorry, wrong issue closed, I'm finalizing the tests before doing a beta release, this should be fixed soon :)

@albiea
Copy link
Author

albiea commented Jan 27, 2025

can confirm that the fix is now working. As discussed this morning, not sure why it's coming up with duplicate entities

Image

@azerty9971
Copy link
Owner

That will be fixed in the next beta :).
That's what I'm currently working on ;)

@azerty9971
Copy link
Owner

The fix for this is released (3.0.8-beta.5).

Can you confirm that everything is working as expected now?

Thanks in advance,
Azerty

@albiea
Copy link
Author

albiea commented Jan 28, 2025

the duplicate entities are now coming up as unavailable. These entities look to be the old entities which i can probably delete

Image

old
Image

new

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants