-
Notifications
You must be signed in to change notification settings - Fork 583
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
Scene mode #131
Comments
Anyone know how effects work? I have no idea. Maybe we need DPS dumps when different effects are activated? |
Question is how we translate this into something we can send to the bulb . |
Here is what dps 25 is set on my RGBW Led strip: "25": 07464602000003e803e800000000464602007803e803e80000000046460200f003e803e800000000464602003d03e803e80000000046460200ae03e803e800000000464602011303e803e800000000 Night or night will not work i must admit. "21" is set to scene and Available scenes in this one: Night, Reading, Work, Soft, Colored, 3 others (do not know how to translate in English ;-)) |
Right, so the scenes are probably encoding of various changes to colors, brightness and temperatures. So we could probably build our own scenes if we figure out the format. I noticed |
I dug a little bit into the scenes and here are my findings about simple scenes, white only Night:
000e0d0000000000000000c80000
Work:
020e0d0000000000000003e803e8
Read:
010e0d0000000000000003e801f4
Loisir:
030e0d0000000000000001f401f4
Loisir brightness 100%
030d0d0000000000000003e801f4
Loisir brightness 100% colortemp 100%
030d0d0000000000000003e803e8
03 0d 0d00000000000000 03e8 03e8
two first, index of the scene
two next, 0e if default, 0d if modified
last 4 color_temp
the 4 before brightness
edit:
Loisir brightness 50% color Red Sat 100%
030d0d00016803e801f400000000
Loisir brightness 100% color Red Sat 100%
030d0d00016803e803e800000000
Loisir brightness 100% color Red Sat 50%
030d0d00016801f403e800000000
030d0d00 0168 01f4 03e8 00000000
HSV (360, 500, 1000) Continue digging. |
Hi @ultratoto14 @postlund I try to carry out some tests too, re-enabling debugging. My scenes are as follows: Thanks! |
What you can do is just a grep on the log as the logs contains the bulb id => tail -f home-assistant.log | grep yourid |
I wanted to avoid generating too heavy a log. OK, I'll use debugging only when needed for the various tests. |
Hi @ultratoto14 This is why I was asking which .zip to install to perform the tests: |
I bought an rgb led strip yesterday, I can also turn on music modes and stuff like that, will this also be contrable with this PR? |
There is no PR yet, the music mode is using the mic of the phone, so it will not be available with HA for the moment |
Hmm, quite sure that's it's not using the mic of my phone :-) I think the wifi controller of the led strip has a mic... When I clap my hands , I see the rgb strip flashing, ist cool for kids :+) |
I also have one, i'll try ;-) |
For my led strip, it is linked to the phone, if you can confirm that yours is using only the led strip |
yes, my phone was 1 floor down, closed all doors i have this RGB strip :https://nl.aliexpress.com/item/4000103478758.html?spm=a2g0s.9042311.0.0.4b0f4c4dXqJrSP |
@SmartM-ui , @pergolafabio you may try this PR: #146 |
will do, but i removed localtuya for now in the HA log, i see every 5 mins disconnect warning, but it doesnt reconnect with tuya cloud , its stays working |
@ultratoto14 |
PR is merged, you can check on your side and close the issue if it is satisfying. |
Perfect, it seems to work! |
The scene string is documented here: This will allow implementing the sliders that the tuya app has for these effects/scenes: speed, brightness, and saturation. |
@rospogrigio @postlund @ultratoto14
Hi,
I remember that by setting the value to 63 of the bulb supported features (in local tuya I see the value 19) the "effect" menu was displayed, as happens in the original Smart Life app.
In the other custom component (Tuya Custom) even though the scene menu was displayed, it was still empty.
Could you bring the scenes from the Smart Life app back to Local tuya?
It is not an indispensable function, but it would be an added value.
homeassistant:
customize:
light.xxxx: #entity name
supported_features: 63
The text was updated successfully, but these errors were encountered: