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

Motion sensor with esp8266 #187

Closed RaresESP closed 3 years ago

RaresESP commented 3 years ago

hi! I want to make a motion sensor that works with Alexa but I didn't found a tutorial on youtube. can someone help me with the code and circuit diagram?

I manage to get something but it says in sinric pro that the power is off and it detects motion but doesn't trigger the Alexa command.

sivar2311 commented 3 years ago

You can use the motionsensor example. Connect your sensor to your ESP and change the MOTIONSENSOR_PIN to the pin you use.

RaresESP commented 3 years ago

I did that and it works in the serial monitor. but it doesn't detect anything in sinric pro or in the Alexa app.

RaresESP commented 3 years ago

IT WORKS! thank you. It looks like my original code wasn't good and when I change it to the example it worked.