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

Partial support of light sub device #346

Open
1 of 3 tasks
lockuser opened this issue Sep 6, 2024 · 7 comments
Open
1 of 3 tasks

Partial support of light sub device #346

lockuser opened this issue Sep 6, 2024 · 7 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@lockuser
Copy link

lockuser commented Sep 6, 2024

LocalTuya Version

2024.9.0

Home Assistant Version

2024.9.0

Environment

  • Does the device work using the Home Assistant Tuya Cloud component?
  • Is this device connected to another local integration, including Home Assistant and any other tools?
  • The devices are within the same HA subnet, and they get discovered automatically when I add them

What happened?

Hi! First of all, thank you so much for this wonderful integration, it really is the best of all.

I tried adding a sub-device, a light bulb that is classified as a "dj". The lamp has been installed successfully, however, only the on/off trigger and brightness control work. In the native application, the color temperature and RGB are also regulated.

Is it possible to add support for other properties?

Steps to reproduce.

  1. Install integration
  2. Add BLE Light via BLE Gateway

Relevant log output

No response

Diagnostics information.

localtuya-e8d90e6643ea8025f8a4a752eecce6c2-8003 pwmRGBCW 2-e0bbe69225adb36694e6196c45f4e726.json

@lockuser lockuser added the bug Something isn't working label Sep 6, 2024
@xZetsubou
Copy link
Owner

I guess the color is raw data... Can you monitor the device using the events and then change the color using Tuya APP

Go to Home Assistant -> Developer Tools -> Events then starts to listen to this event localtuya_device_dp_triggered

then go to tuya app and change the color if it reports in homeassistant post the events here.

@Lurker00
Copy link

Lurker00 commented Sep 8, 2024

@xZetsubou It looks like this bulb of a kind I made PR #309 for!

@lockuser This kind of bulbs have write only DPs. They can be controlled, but there is no a way to know their states. My PR, apart from other changes, adds a selector for Effects (white, color, scene, music), but without tuning mode parameters.

@lockuser
Copy link
Author

lockuser commented Sep 9, 2024

localtuya_device_dp_triggered

When I change the color of the lamp or change the color temperature, nothing happens. However, if I change the scene, some events occur.

event_type: localtuya_device_dp_triggered data: device_id: bf96eewnaagmcbnq dp: "73" value: AgAAAGRkAQ== origin: LOCAL time_fired: "2024-09-09T02:56:04.226768+00:00" context: id: 01J7ABBDM2AKSG2TX75JQDTAXV parent_id: null user_id: null

event_type: localtuya_device_dp_triggered data: device_id: bf96eewnaagmcbnq dp: "73" value: BAACAFRkQAE= origin: LOCAL time_fired: "2024-09-09T02:56:18.563984+00:00" context: id: 01J7ABBVM3RFNN2G6E6ZCKRKY6 parent_id: null user_id: null

@lockuser
Copy link
Author

lockuser commented Sep 9, 2024

This kind of bulbs have write only DPs. They can be controlled, but there is no a way to know their states.

Yes, I see it in the Tuya app. However, the ability to set a color or color temperature, even without feedback, is already a huge progress!

@xZetsubou
Copy link
Owner

The color data are being sent as encoded raw data

Copy link

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Sep 28, 2024
@lockuser
Copy link
Author

Not solved yet

@github-actions github-actions bot removed the stale label Sep 29, 2024
@xZetsubou xZetsubou added the enhancement New feature or request label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants