espressif / esp-rainmaker

ESP RainMaker Agent for firmware development
Apache License 2.0
433 stars 146 forks source link

Fan dimmer not working in alexa App (MEGH-3678) #142

Open sonetonix-iot opened 1 year ago

sonetonix-iot commented 1 year ago

All parameters are listed in alexa App. i can control lights/switches from the alexa App,but i can't able to control dimmer/fan speed using alexa app.

jamsyogendra commented 1 year ago

hello i am working on same project can you halp me

jamsyogendra commented 1 year ago

https://github.com/espressif/esp-rainmaker/issues/139#issue-1311268564

sonetonix-iot commented 1 year ago

hello i am working on same project can you halp me

how you integrate the IR Remote control with this esp rain maker App

jamsyogendra commented 1 year ago

using IR lib

jamsyogendra commented 1 year ago

include

sonetonix-iot commented 1 year ago

did you control IR function from ESP RAINMAKER App ?

jamsyogendra commented 1 year ago

yes i did it also with manually feadback with manual switch and ir switch

sonetonix-iot commented 1 year ago

it means if you press any button in App, the user's custom IR command will illuminate right?

jamsyogendra commented 1 year ago

yes

sonetonix-iot commented 1 year ago

Okay thank you

jamsyogendra commented 1 year ago

whats about fan dimmer which technics are you using from control fan speed or control brigtness of AC.

Zerocross of relays base?

sonetonix-iot commented 1 year ago

both techs used ...circuit side no problem

jamsyogendra commented 1 year ago

can you share some details about zero cross dimming method or also coding part of it bcz i getting problem from coding side i dont know how to map my dimming value on slider(esp maker app)

this part

BLYNK_WRITE(V0) { // Set to your virtual pin
outVal = param.asInt(); // Get State of Virtual Button dim_val = map(outVal, 0, 1023, 0, 100); // mapped the value for dimmer dimmer.setPower(dim_val); // Set dimmer power Blynk.virtualWrite(V1, dim_val); //sending to Blynk }

sonetonix-iot commented 1 year ago

what type of bulb led or incandecent

jamsyogendra commented 1 year ago

ac bulb or we can say ac dimmer

https://www.tinytronics.nl/shop/en/robotdyn-thyristor-ac-dimmer-3.3-5v

jamsyogendra commented 1 year ago

Anything solution

sonetonix-iot commented 1 year ago

there will be an example program, as you mentioned link. it will work

fenilGhoghari commented 1 year ago

@jamsyogendra are you able to dimming your ac fan if yes can you please share your time sync function with zero-cross detection?