home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.11k stars 29.79k forks source link

Tuya integration - power value is 10x to high #63978

Open Moridium opened 2 years ago

Moridium commented 2 years ago

The problem

Hi! I’m having a 10x multiplier error with my Tuya integrated smart plug. I noticed another issue about this #63949, but the differens is that for me the error is for the power sensor part not the voltage. Instead of 117,0 W as shown in the Tuya app HA presents this as 1170,0W image

This error also makes my function for calculating kWh useless. (Using Integration - Riemann sum integral) since kWh doesn’t seam to integrated from the Tuya app where its presented.

What version of Home Assistant Core has the issue?

Home Assistant 2021.12.9

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

OldShaterhan commented 1 year ago

https://github.com/tuya/tuya-home-assistant/issues/938 - reported here as well.

Szaki-dev commented 11 months ago

Hi, I had the same problem but I modified the tuya integration and imported it as a custom component in HACS. The mod just removes the scaling on the output. I created a repo for it: https://github.com/Szaki-dev/tuya_fix

panosru commented 10 months ago

Thank you @Szaki-dev, I installed your fork and it works great!

dcarosone commented 8 months ago

I have the same problem. Just starting with HA. This is the first device I added.

xvisionbelgium commented 6 months ago

Got the same problem. It could be solved by the maintainer of this integration by providing a scaling field on every sensor like the localtuya has... avoiding the ping-pong game between the manufacturer-Tuya-HA...

dcarosone commented 5 months ago

I solved the problem (and several others) by simply switching to localtuya.

rogales commented 3 months ago

Hi, I had the same problem but I modified the tuya integration and imported it as a custom component in HACS. The mod just removes the scaling on the output. I created a repo for it: https://github.com/Szaki-dev/tuya_fix

Can I talk with You about this fix? I've installed Your repo, but it still shows 10x greater measures.

Szaki-dev commented 3 months ago

Hi, I had the same problem but I modified the tuya integration and imported it as a custom component in HACS. The mod just removes the scaling on the output. I created a repo for it: https://github.com/Szaki-dev/tuya_fix

Can I talk with You about this fix? I've installed Your repo, but it still shows 10x greater measures.

Hi, Make sure you run the latest version of HA. Try removing then reinstalling the devices. If the error still persists DM me on discord (szakidev).

issue-triage-workflows[bot] commented 3 weeks ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

catch-33 commented 3 weeks ago

Issue still persists for me. My Tuya-based smart plug still reports e.g. 1500 Watts instead of 150

Saxtus commented 3 weeks ago

Same here. The problem persists with the latest version.

olekdata commented 2 weeks ago

Set Scaling Factor to 0.1 image

image

Use LocalTuya integration

OldShaterhan commented 2 weeks ago

@olekdata , problem is that it requires localtuya - HomeAssistant built-in integration has no option to do so.