RavenSystem / esp-homekit-devices

Advanced firmware to add native Apple HomeKit and custom configurations, compatible with any SoC based on ESP32, ESP32-S, ESP32-C and ESP8266 series. (Shelly, Sonoff, Electrodragon, Tuya...)
Other
2.76k stars 361 forks source link

Magic Home RGB - Transition very flickery #591

Closed Bene2103 closed 5 years ago

Bene2103 commented 5 years ago

Some time ago I've tried RavenCore with the MagicHome controller but I wasn't satisfied. Now I've tried HAA everything works pretty well but the transition from OFF <-> ON or when the Color or Brightness is changed is pretty flickery. If you set a color or brightness and stay there than its normal and not flickery.

In the video you can see: RED -> GREEN -> Brightness change -> Brightness change -> RED -> OFF https://youtu.be/s9Su8YVcwQM

My JSON is the one you provided in the wiki only with changed pins for the colors.

Is there anything I could do about that?

Thank you

RavenSystem commented 5 years ago

What HAA version are you using?

El 9 nov 2019, a las 12:16, Bene2103 notifications@github.com escribió:

 Some time ago I've tried RavenCore with the MagicHome controller but I wasn't satisfied. Now I've tried HAA everything works pretty well but the transition from OFF <-> ON or when the Color or Brightness is changed is pretty flickery.

In the video you can see: RED -> GREEN -> Brightness change -> Brightness change -> RED -> OFF https://youtu.be/s9Su8YVcwQM

My JSON is the one you provided in the wiki only with changed pins for the colors.

Is there anything I could do about that?

Thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Bene2103 commented 5 years ago

im using 0.6.2

RavenSystem commented 5 years ago

Many thanks. I must fix it.

RavenSystem commented 5 years ago

Try v0.6.3.

Bene2103 commented 5 years ago

You’re lightning fast!

Transitions are super smooth but there’s one more thing. Wenn turning on the brightness overshoots and gets a little bit down later.

It’s like this: Turning on brightness Fades to 100% Brightness 100% for 0.5sek Brightness goes to 95%

I’ll take a video of this behavior when I’m back home.

Thank you!

RavenSystem commented 5 years ago

Can you try v0.6.4?

Bene2103 commented 5 years ago

I tried 0.6.4 transitions are faster now but the brightness still overshoots

https://youtu.be/QbmuD2NQBA4

Thank you!

Bene2103 commented 5 years ago

Found another bug maybe the are related together. Setting blue at full brightness -> LED's are switched off an flashing. Red and green working fine.

https://youtu.be/CU5CphsJKV8

RavenSystem commented 5 years ago

Try 0.6.5.

Bene2103 commented 5 years ago

You nailed it!

Everything is working fine now.

Thank you very much

RavenSystem commented 5 years ago

Yeah!!!!!! Many, many thanks for your tests and videos!

mafyata commented 5 years ago

Can you post your json to test on mine magic home rgb led controller?

Bene2103 commented 5 years ago

It’s from the HAA template page in the wiki

{"c":{"b":[{"g":0,"t":5}]},"a":[{"t":30,"r":15,"g":13,"v":12,"b":[{"g":0}]}]}

You need to edit the gpio to your actual pinout

mafyata commented 5 years ago

I think mine is like your. Thanks

mafyata commented 5 years ago

Hmmm, I must change rgb colors in json , but can’t enter setup mode. I toggle 10 times on/off the led strip , but can’t see wifi HAA-.....

mafyata commented 5 years ago

Can I setup dummy switch for entering setup mode with single press of this dummy switch?

Bene2103 commented 5 years ago

I don’t know exactly.

But I do it this way: press the HomeKit button more than 10 times keep pressing until the device gets unresponsive. Usually I press the button about 20 times. When the device is unresponsive you can connect to its access point HAA-XXXX

@RavenSystem Is the logic 10 times pressing the button or is it 10 times toggle ON or OFF aka 20 time pressing the button?

mafyata commented 5 years ago

I tried 10 times, not 20.

mafyata commented 5 years ago

Now i tried 20 times , 25 times and nothing happens. This is mine json: {"c":{"b":[{"g":0,"t":0}]},"a":[{"t":30,"s":5,"r":5,"g":12,"v":13}]}

mafyata commented 5 years ago

I have many devices with ravencore , not haa because they are hardly accessible fisically. If I can’t enter setup mode without fisically access the devices I will not update to haa.