xZetsubou / hass-localtuya

🔹 A Home Assistant integration to handle Tuya devices locally "fork from localtuya"
https://xzetsubou.github.io/hass-localtuya/
GNU General Public License v3.0
370 stars 41 forks source link

[Bug]: Star Projector Correction #351

Open ARafaelSF opened 3 days ago

ARafaelSF commented 3 days ago

LocalTuya Version

2024.9.0

Home Assistant Version

2024.9.1

Environment

What happened?

I have a star projector that wasn't automatically recognized, so I set it up manually. Almost everything worked, but there's a small issue.

When I adjust the light's color or brightness via Tuya Local, the changes are applied correctly. However, right after that, it sends a command to switch the work mode to "music," which leads to an incorrect configuration.

Steps to reproduce.

Here’s how I managed to set it up:

image

Now, notice the difference in the log when I use the Tuya app:

image

And when I do it through Tuya Local

image

The issue occurs because it sends the "Work mode Music" command. How can I prevent this from being sent?

Relevant log output

No response

Diagnostics information.

No response

xZetsubou commented 3 days ago

in order to have better look in device DPS values post the device diagnostics the issue is probably in "work mode dp id: 42"

ARafaelSF commented 3 days ago

localtuya-01J6JDMWMQNEKFDFF3Y6QFK1J2-Nebulosa-50e5a3efac2ea2ce6428e05c45abf8fd.json

xZetsubou commented 3 days ago

Try reconfiguring the entity and change "Work Mode" from DP 42 to DP 51

ARafaelSF commented 2 days ago

It didn't work.

Now it's like this:

localtuya-01J6JDMWMQNEKFDFF3Y6QFK1J2-Nebulosa-50e5a3efac2ea2ce6428e05c45abf8fd (1).json

When I change a color via Local Tuya, I can see in the Tuya app that the color has changed correctly. But physically, the projector does not change the color.

Imagem do WhatsApp de 2024-09-17 à(s) 07 39 29_ff245503

Check how the logs look.

Changing via Local Tuya

image

Changing via Tuya App

image

And in Home Assistant, it doesn't detect that the color has changed. Every color I change always appears as gray

image