sinricpro / esp8266-esp32-sdk

Library for https://sinric.pro - simple way to connect your device to Alexa, Google Home, SmartThings and cloud
https://sinric.pro
228 stars 122 forks source link

fan manual mode #184

Closed rahulprajapati22 closed 3 years ago

rahulprajapati22 commented 3 years ago

how possible control fan speed esp ????

sivar2311 commented 3 years ago

?

rahulprajapati22 commented 3 years ago

how to change fan speed to esp to server

sivar2311 commented 3 years ago

Excuse me, but I still don't understand your question. Can you please explain in detail?

rahulprajapati22 commented 3 years ago

sir fan speed to control alexa to esp show to serial monitor Fan speed changed to 1 ...2 ...3 than i try to change to fan speed change in esp manual change on code like set fan speed 2 show change on server and alexa app

sivar2311 commented 3 years ago

Ah, you want to send the speed to the server. I think I have now understood your question.

It depends on which SinricPro device you are using:

For detailed information, see the manual SinricProFan SinricProFanUS

rahulprajapati22 commented 3 years ago

sendRangeValueEvent() give me any example

sivar2311 commented 3 years ago

sendRangeValueEvent(speed);

rahulprajapati22 commented 3 years ago

sry sir it not works Can you please explain in detail with example ?

sivar2311 commented 3 years ago

What does not work? Can you show the relevant code and serial debug log please? Code example is simple sendRangeVaueEvent()

kakopappa commented 3 years ago

SinricProFanUS &myFan = SinricPro[FAN_ID]; myFan.sendRangeValueEvent(speed);

On Wed, 5 May 2021 at 7:09 PM Boris Jäger @.***> wrote:

What does not work? Can you show the relevant code and serial debug log please? Code example is simple sendRangeVaueEvent()

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sinricpro/esp8266-esp32-sdk/issues/184#issuecomment-832636597, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZAZZR6SIUOFGDGFHKJIVDTMEYQPANCNFSM44ENX6CA .

rahulprajapati22 commented 3 years ago

  myFan.sendRangeValueEvent(1);
  delay(2000);
    myFan.sendRangeValueEvent(2);
     delay(2000);
      myFan.sendRangeValueEvent(3);
    delay(2000);
```not working 
change on server  device online and offline continue
sivar2311 commented 3 years ago

Don't use delay. The events are queued and will be send in next loop() round when SinricPro.handle() is called.

rahulprajapati22 commented 3 years ago

ok thank done

stale[bot] commented 3 years ago

This issue has gone quiet. Spooky quiet. We currently close issues after 14 days of inactivity. It’s been at least 7 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder, the best way to fix this or any other problem is to provide a detailed error description including a serial log. Thanks for being a part of the SinricPro community!

stale[bot] commented 3 years ago

Hey again! It’s been 14 days since anything happened on this issue, so our friendly robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to comment on this issue or create a new one if you need anything else. As a friendly reminder, the best way to fix this or any other problem is to provide a detailed error description including a serial log. Thanks again for being a part of the SinricPro community!