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
234 stars 124 forks source link

How can I notify back that a garage door is closed or open? #330

Closed VALERYRAMIREZ closed 10 months ago

VALERYRAMIREZ commented 1 year ago

Hi all, how are you?. I want to create a garage door controller where I need to report the actual state of the garage door when the door is closed or open, I mean, in the time the circuit detects the door just closed or open.

The problem that I see is that you provide only one function that detects ther order from the server and I don't see a function to notify to sinric server that the garage door just closed or open.

Where can I find a function to notify that to sinric servers in order to have the notification on the app?

Thanks in advance for the help.

kakopappa commented 1 year ago

Hi again,

You can use the sendDoorStateEvent function to notify the server about the new state.

Please send the event only once when the state change. Don’t send it in a loop

https://sinricpro.github.io/esp8266-esp32-sdk-documentation/class_s_i_n_r_i_c_p_r_o__2__9__17_1_1_sinric_pro_garage_door.html#a375cda2b0bc05e1a66e3bc29d059d9a7

kakopappa commented 1 year ago

If you can’t control the garage door (open or close) Contact Sensor device type is more suitable for something like this.

Once you create a contact sensor, you can use the Zerocode feature to generate the code as well

VALERYRAMIREZ commented 1 year ago

I haven’t done the controller yet but I’m researching first what functions do I have to make it.

In addition, once the sinric server receives the state then it can call the Alexa function to announce the state of the door?.

About the prices, it is posible pay the subscription even for only one device?. I’m planning to sell that kind of controller once developed but I need to ensure to the client that the device Will be available for at least a year.

Enviado desde Correohttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows


De: Aruna Tennakoon @.> Enviado: Monday, August 7, 2023 10:45:42 AM Para: sinricpro/esp8266-esp32-sdk @.> Cc: VALERYRAMIREZ @.>; Author @.> Asunto: Re: [sinricpro/esp8266-esp32-sdk] How can I notify back that a garage door is closed or open? (Issue #330)

If you can’t control the garage door (open or close) Contact Sensor device type is more suitable for something like this.

Once you create a contact sensor, you can use the Zerocode feature to generate the code as well

— Reply to this email directly, view it on GitHubhttps://github.com/sinricpro/esp8266-esp32-sdk/issues/330#issuecomment-1668007147, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB74NAGBPDZGFUES3KBSEI3XUD5RNANCNFSM6AAAAAA3HCKRTI. You are receiving this because you authored the thread.Message ID: @.***>

stale[bot] commented 1 year 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!

sivar2311 commented 10 months ago

It's been more than 14 days since anything happened on this issue, so I'm going to close it. If you have any further questions about this issue, please feel free to reopen it.