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

Door bell #38

Closed vosyhung closed 4 years ago

vosyhung commented 4 years ago

Door bell code. I pressed the button but Alexa didn't ding dong. Device returned an error. : Device returned an error while processing the request!

kakopappa commented 4 years ago

duh,

doorbell example is here https://github.com/sinricpro/esp8266-esp32-sdk/blob/master/examples/doorbell/doorbell.ino

make sure to connect a push button to BUTTON_PIN (PIN 0). (doesn't need a resister)

sivar2311 commented 4 years ago

Device returned an error. : Device returned an error while processing the request!

It seems you tried to turn on / off the device but you missed to implement the onPowerState callback or the callback returned false. That's the only reason why this error message will show up.

If your echo didn't ring: Check if it is enabled in the alexa app!