ESP8266 + Webserver + Sinric Pro (for Alexa voice commands)

Hello, I hope everyone is doing fine during this carantine time.
I’ve created my first home automation project using esp8266 and 8-channel relay module.
The esp is connecting to a webserver and getting the relay status from a json array.
However when trying to add sinric pro function the esp doesn’t connect to sinric server but only to my server. Any ideas for this? I’ve managed to run sinric pro example for light and turn it on with voice commands. I am attaching code below

#include "SinricPro.h"
#include "SinricProSwitch.h"

#define WIFI_SSID         "wifiname"    
#define WIFI_PASS         "wifipass"
#define APP_KEY           "appkey"      // Should look like "de0bxxxx-1x3x-4x3x-ax2x-5dabxxxxxxxx"
#define APP_SECRET        "appsecret"   // Should look like "5f36xxxx-x3x7-4x3x-xexe-e86724a9xxxx-4c4axxxx-3x3x-x5xe-x9x3-333d65xxxxxx"

#define SWITCH_ID        "switchid"    // Should look like "5dc1564130xxxxxxxxxxxxxx" #define LED_PIN   05  
#define BAUD_RATE         9600      
#include <ArduinoJson.h>
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#define BUTTON_PIN 00   // GPIO for BUTTON (inverted: LOW = pressed, HIGH = released)
#define LED_PIN   05   // GPIO for LED (inverted)
bool myPowerState = false;
unsigned long lastBtnPress = 0;

const char* ssid = "wifiname";
const char* password = "wifipass";

const int relay1 = 05; // GPIO05 
const int relay2 = 04; // GPIO04 
const int relay3 = 00; // GPIO00
const int relay4 = 02; // GPIO02 
const int relay5 = 14; // GPIO14 
const int relay6 = 12; // GPIO12 
const int relay7 = 13; // GPIO13
const int relay8 = 15; // GPIO15 

bool onPowerState(const String &deviceId, bool &state) {
  Serial.printf("Device %s turned %s (via SinricPro) \r\n", deviceId.c_str(), state?"on":"off");
  myPowerState = state;
  digitalWrite(LED_PIN, myPowerState?LOW:HIGH);
  return true; // request handled properly
}
void handleButtonPress() {
  unsigned long actualMillis = millis(); // get actual millis() and keep it in variable actualMillis
  if (digitalRead(BUTTON_PIN) == LOW && actualMillis - lastBtnPress > 1000)  { // is button pressed (inverted logic! button pressed = LOW) and debounced?
    if (myPowerState) {     // flip myPowerState: if it was true, set it to false, vice versa
      myPowerState = false;
    } else {
      myPowerState = true;
    }
    digitalWrite(LED_PIN, myPowerState?LOW:HIGH); // if myPowerState indicates device turned on: turn on led (builtin led uses inverted logic: LOW = LED ON / HIGH = LED OFF)

    // get Switch device back
    SinricProSwitch& mySwitch = SinricPro[SWITCH_ID];
    // send powerstate event
    mySwitch.sendPowerStateEvent(myPowerState); // send the new powerState to SinricPro server
    Serial.printf("Device %s turned %s (manually via flashbutton)\r\n", mySwitch.getDeviceId(), myPowerState?"on":"off");

    lastBtnPress = actualMillis;  // update last button press variable
  } 
}
void setupWiFi() {
  Serial.printf("\r\n[Wifi]: Connecting");
  WiFi.begin(WIFI_SSID, WIFI_PASS);

  while (WiFi.status() != WL_CONNECTED) {
    Serial.printf(".");
    delay(250);
  }
  Serial.printf("connected!\r\n[WiFi]: IP-Address is %s\r\n", WiFi.localIP().toString().c_str());
}
void setupSinricPro() {
  // add device to SinricPro
  SinricProSwitch& mySwitch = SinricPro[SWITCH_ID];

  // set callback function to device
  mySwitch.onPowerState(onPowerState);

  // setup SinricPro
  SinricPro.onConnected([](){ Serial.printf("Connected to SinricPro\r\n"); }); 
  SinricPro.onDisconnected([](){ Serial.printf("Disconnected from SinricPro\r\n"); });
  SinricPro.begin(APP_KEY, APP_SECRET);
}
void setup() {
  pinMode(relay1, OUTPUT);
  pinMode(relay2, OUTPUT);
  pinMode(relay3, OUTPUT);
  pinMode(relay4, OUTPUT);
  pinMode(relay5, OUTPUT);
  pinMode(relay6, OUTPUT);
  pinMode(relay7, OUTPUT);
  pinMode(relay8, OUTPUT);

  pinMode(BUTTON_PIN, INPUT_PULLUP); // GPIO 0 as input, pulled high
  pinMode(05, OUTPUT); // define LED GPIO as output
  digitalWrite(LED_PIN, HIGH); // turn off LED on bootup

  Serial.begin(BAUD_RATE); Serial.printf("\r\n\r\n");
  
   setupWiFi();
   setupSinricPro();
  
}
//  Serial.begin(115200);
//  delay(4000);
 // WiFi.begin(ssid, password);

//  while (WiFi.status() != WL_CONNECTED) {
  //  delay(1000);
  //  Serial.println("Connecting to WiFi..");
// }

 // Serial.println("Connected to the WiFi network");


  
void loop() {
       
   
    SinricPro.handle(); 
    handleButtonPress();
  if ((WiFi.status() == WL_CONNECTED)) { //Check the current connection status

    HTTPClient http;

    http.begin("http://35.237.179.138//home/get_relay_group_status/"); //Specify the URL
    int httpCode = http.GET();                                        //Make the request
    
  
      
    if (httpCode > 0) { //Check for the returning code
      
      String payload = http.getString();

      const size_t capacity = JSON_ARRAY_SIZE(8) + 8 * JSON_OBJECT_SIZE(4) + 620;
      DynamicJsonDocument doc(capacity);

      char charBuf[capacity];

      payload.toCharArray(charBuf, capacity);

      deserializeJson(doc, charBuf);

      JsonObject root_0 = doc[0];
      bool root_0_r_status = root_0["r_status"];

      JsonObject root_1 = doc[1];
      bool root_1_r_status = root_1["r_status"];

      JsonObject root_2 = doc[2];
      bool root_2_r_status = root_2["r_status"];

      JsonObject root_3 = doc[3];
      bool root_3_r_status = root_3["r_status"];

      JsonObject root_4 = doc[4];
      bool root_4_r_status = root_4["r_status"];

      JsonObject root_5 = doc[5];
      bool root_5_r_status = root_5["r_status"];

      JsonObject root_6 = doc[6];
      bool root_6_r_status = root_6["r_status"];

      JsonObject root_7 = doc[7];
      bool root_7_r_status = root_7["r_status"];



      if (root_0_r_status) {
        Serial.println("Relay 1 is on ");
        digitalWrite(relay1, LOW);
      } else {
        Serial.println("Relay 1 is off ");
        digitalWrite(relay1, HIGH);
      }

      if (root_1_r_status) {
        Serial.println("Relay 2 is on ");
        digitalWrite(relay2, LOW);
      } else {
        Serial.println("Relay 2 is off ");
        digitalWrite(relay2, HIGH);
      }


      if (root_2_r_status) {
        Serial.println("Relay 3 is on ");
        digitalWrite(relay3, LOW);
      } else {
        Serial.println("Relay 3 is off ");
        digitalWrite(relay3, HIGH);
      }

      if (root_3_r_status) {
        Serial.println("Relay 4 is on ");
        digitalWrite(relay4, LOW);
      } else {
        Serial.println("Relay 4 is off ");
        digitalWrite(relay4, HIGH);
      }

      if (root_4_r_status) {
        Serial.println("Relay 5 is on ");
        digitalWrite(relay5, LOW);
      } else {
        Serial.println("Relay 5 is off ");
        digitalWrite(relay5, HIGH);
      }

      if (root_5_r_status) {
        Serial.println("Relay 6 is on ");
        digitalWrite(relay6, LOW);
      } else {
        Serial.println("Relay 6 is off ");
        digitalWrite(relay6, HIGH);
      }

      if (root_6_r_status) {
        Serial.println("Relay 7 is on ");
        digitalWrite(relay7, LOW);
      } else {
        Serial.println("Relay 7 is off ");
        digitalWrite(relay7, HIGH);
      }


      if (root_7_r_status) {
        Serial.println("Relay 8 is on ");
        digitalWrite(relay8, LOW);
      } else {
        Serial.println("Relay 8 is off ");
        digitalWrite(relay8, HIGH);
      }


    }

    else {
      Serial.println("Error on HTTP request");
    }
 
  
    http.end(); //Free the resources
 
  }

  delay(10000);

}

No ideas to solve this? :frowning: