kakopappa / arduino-esp8266-alexa-wemo-switch

Amazon Alexa + WeMos switch made with Arduino D1 Mini
https://sinric.pro
MIT License
281 stars 249 forks source link

Toggle relay request #9

Open xbmcnut opened 7 years ago

xbmcnut commented 7 years ago

Hi, Is it possible to tweak the code to allow the wemos relay shield to toggle? Want to use it for a garage door controller.

kakopappa commented 7 years ago

Hi,

sorry about the late response.

Right now it is not possible to get the status of the WeMos Relay (https://www.wemos.cc/product/relay-shield.html). I think only option is to define a variable and hold the open/close status then again if you open it manually then state become invalid.

xbmcnut commented 7 years ago

Thanks, appreciate the feedback. But if the status is unknown, you're right, the value is not good.

kakopappa commented 7 years ago

I think you can use a reed switch to check the status of the door http://www.ebay.com/bhp/magnetic-reed-switch