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
Other
236 stars 125 forks source link

SinricProGarageDoor -> Is there any way to update the Door status from controller side? #162

Closed pcxx13 closed 3 years ago

pcxx13 commented 3 years ago

I am new to this IoT world and real beginer with C++. I am wanting to build a garage door controller with a read-switch sensor that can update the "open/closed" status in SinricPro. I have been having a lot of fun learning and have made great progress getting everything working as I would like. One thing I am stuck on, I can't seem to send event message back to Sinric to set the door status. I am using below code:-

SinricProGarageDoor& myGarageDoor = SinricPro[GARAGEDOOR_ID]; myGarageDoor.sendGarageDoorEvent(myDoorState);

But when I compile I get an error message "'class SinricProGarageDoor' has no member named 'sendGarageDoorEvent'". Clearly the class doesn't have this function.

Appreciate any guidance or suggestions you can offer

sivar2311 commented 3 years ago

Yes, there is: sendDoorStateEvent(bool state)

Please see also full user documentation on this.

pcxx13 commented 3 years ago

Awesome! It is working.

Thank you for the extremely fast reply!