Open gx9001 opened 4 years ago
+1
Only on/off. Cant change colors, dim, strobe etc..
Got added as a switch.sonoff_xxxxxxxx Sonoff Led should be added like a light.sonoff_xxxxx to make it change colors and more.
try this branch https://github.com/peterbuga/HASS-sonoff-ewelink/tree/sonoff-bulb maybe something matches in their implementation and might work
if it's still not working @gx9001 @AcidSleeper please follow this thread https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34 and try to provide same type of dumps, without them there's not much i can do
I tried the Sonoff-buld but still register as a switch.sonoff_xxxxx
Debugged the app, all settings: You are gonna see Mode 1-12 in debug. Description from the app down below.
Mode 1: Colorful Mode 2: Colorful gradient Mode 3: Colorful Breath Mode 4: DIY Gradient Mode 5: DIY Pulse Mode 6: DIY Breath Mode 7: DIY Strobe Mode 8: RGB Gradient Mode 9: RGB Pulse Mode 10: RGB Breath Mode 11: RBG Strobe Mode 12: Sync to music
EDITED!!!!!
Hope this was helpful for you as for me! =)
@AcidSleeper almost enough, please post the output of sonoff-debug.py
too and if possible try to post 2-3 outputs with proper names of what is the exact state (brightness:100, warm, blue etc). all and all I need at least one dump!
Okay! Placed the sonoff-debug.py in config directory. correct? Using Hassio
getting error: core-ssh:/config# python3 sonoff-debug.py 'redacted' 'redacted'
Traceback (most recent call last):
File "sonoff-debug.py", line 2, in
Nevermind, got it working.
@AcidSleeper thanks now i have pretty much all I need 👍
a couple of questions though: do you have any idea what light_type
and sensitive
entries might point to?
i see in the product's description page that it can respond to sound, do you think sensitive
might be related to this?
IMO light_type
could be a reference to warm white vs cold white but if I remember right 5050 LEDs don't have a dedicated white led.
could i bother you to post some screenshots of ewelink app for the settings of this device? should light some light of what those values mean
ps: i have to say, the implementation won't happen in the next few days. this is based on the sonoff-bulb
branch which is not merged in master
yet and it's quite a mess 🤦♂
Dont know regarding light_type and sensative.
UPDATED MODES:
Mode 1: Colorful Mode 2: Colorful gradient Mode 3: Colorful Breath Mode 4: DIY Gradient Mode 5: DIY Pulse Mode 6: DIY Breath Mode 7: DIY Strobe Mode 8: RGB Gradient Mode 9: RGB Pulse Mode 10: RGB Breath Mode 11: RBG Strobe Mode 12: Sync to music
Hello. I too have Sonoff L1 LED strip. Only option I get is on of. How to dim and change RGB values? Is it possible yet?
Anything I can do to debug?
@thehijacker i have all the informations i need (at least so i think) but the component needs a rewrite to make this work
@thehijacker i have all the informations i need (at least so i think) but the component needs a rewrite to make this work
Anything I can do to help? I know a bit of Python. Might be able to help.
@thehijacker
if you're really eager to make it work just for you, you could try to replace references to channel2/3/4
with colorB/G/R
inside light.py
file and you might be able to get some color controls. if all goes well optionally you could also update the supported modes as explained here https://github.com/peterbuga/HASS-sonoff-ewelink/issues/143#issuecomment-536552020
ps: do not do PR request if you make it work cuz it highly collides with the functionality of sonoff B1 😅 i would appreciate if you can drop a link to a branch of yours tho'
Started working on this. Can't pass my L1 beeing detected as switch instead of light. Can you point me in correct path where in code this is decided? I am using the dev code.
@thehijacker same file right in the beginning you need to find something distinctive in those IFs to treat this device as a light (and the reverse in switch.py
to block it to be generated as a switch)
this is sort of the blocker-reason i paused/stopped updating the component for the time being, it's a real sh*tshow the way they keep identifying the devices.
(please don't get me wrong but if you can't figure it out i won't spam this thread explaining what to do, it's just some logic to be done, most of the code is there already. alternatively just wait & i'll probably update it at some point in the future ¯\_(ツ)_/¯
)
Hello, I also have Sonoff L1 LED strip. I tried master and dev and unfortunately I still can only turn on/off. Is there any update?
Hey @peterbuga , I am also looking forward to your magic :P Also have some of these LED strips and would love them to work with HA. Thanks in advance.
Hello,
I added my new LED Strip, and it works on/off, but I can't change colors or anything else, so I wonder if you can tell me how to do it or if you can add these options in a new version.
https://www.itead.cc/smart-home/sonoff-l1-smart-led-light-strip.html
Thank you for your great job!
hi, how did you manage to integrate sonoff l1 strip led? thank you
Hi, has anyone made any progress on this? Would love to control the RGB functions without having to flash them.
You can use Broadlink Pro to control this LED from HA.
Here are codes and remote picture
:
1 brightness + JgCAAAABJ5IUERQSExITEhMSFBEUERQSEzYUNRQ2EzYUEhM2EzYUNhQR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UQFjQVEBURFBEVEBUQFRAVNBURFTQVNBY0FQAFPAABKUcVAAxMAAEoRxUADQU=
Hello,
I added my new LED Strip, and it works on/off, but I can't change colors or anything else, so I wonder if you can tell me how to do it or if you can add these options in a new version.
https://www.itead.cc/smart-home/sonoff-l1-smart-led-light-strip.html
Thank you for your great job!