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

SinricPro & UniversalTelegramBot #179

Closed WirelessMind closed 3 years ago

WirelessMind commented 3 years ago

Is it normal that SinricPro is not compatible with UniversalTelegramBot?

If I comment SinricPro.handle (); everything works, but if I re-enable it, Telegram no longer reads the messages.

sivar2311 commented 3 years ago

I don't know about UniversalTelegramBot. You need to enable debug to see what happens. Does UniversalTelegramBot makes use of SSL ?

WirelessMind commented 3 years ago

Does UniversalTelegramBot makes use of SSL ?

yes

sivar2311 commented 3 years ago

Unfortunately the ESP can only handle one single SSL connection at a time. SinricPro requires a permanent connection -> no other SSL connections are possible.

This is a limitation caused by the ESP itself .

WirelessMind commented 3 years ago

Uff :( So I have to choose whether to use Telegram or Sinric. But from telegram I give various commands and also receive various information, from sinric (I need it for alexa) I only get the temperature (not even the humidity) and I cannot control the rest of functions. What a pity! As in other cases, I was hoping we could create another connection for sinric.

Thank you

sivar2311 commented 3 years ago

Unfortunately, Alexa does not know a humidity sensor. But you can do this yourself with a custom device.

The limitation regarding the SSL connections lies with the ESP. As long as it only allows one SSL connection at a time, you have to decide which service you want to use.

WirelessMind commented 3 years ago

yes, I understand unfortunately. After all it's just an ESP8266, not a computer :(