hello Everyone,
I’m having a problem with my setup using alexa manual integration, the first time I try to use the integration (voice commando from echo device) it’s takes 10 to more seconds to work, after that the other attempts works just fine in 1 to 2 seconds, if I stopping using it for something about 5 minutes everything starts again.
just to let know my scenary:
HA - Raspberry Pi 3(working as a charm if I use emulated hue to my devices)
Cloudflare tunnel to bypass local restrictions of port 80 and to register my dns.
using US region on amazon (pitangui.amazon.com)
fiber connection of 700mbps down and 450mbps up
Country Brazil
my configuration:
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
- 192.168.88.0/24
alexa:
smart_home:
locale: pt-BR
endpoint: https://api.amazonalexa.com/v3/events
filter:
include_entities:
- switch.interruptores_luz_closet
- switch.int_ent_suite_corredor_suite
- switch.int_escritorio_luz_escritorio
- switch.interruptor_lavanderia
- switch.luz_quarto_bella
- switch.int_ent_suite_luz_suite
- switch.tasmota_luz_corredor
- switch.tasmota_luz_cozinha
- switch.tasmota_luz_entrada
- switch.tasmota_luz_jantar
- switch.tasmota_luz_sala
- switch.spot_sala
- switch.varanda
- switch.spot_varanda
entity_config:
switch.interruptores_luz_closet:
name: "Closet"
description: "Luz Closet"
switch.int_ent_suite_corredor_suite:
name: "Corredor Suite"
description: "Corredor Suite"
switch.int_escritorio_luz_escritorio:
name: "Escritorio"
description: "Luz escritorio"
switch.interruptor_lavanderia:
name: "Lavanderia"
description: "Luz Lavanderia"
switch.luz_quarto_bella:
name: "Quarto Bella"
description: "Luz Quarto Bella"
switch.int_ent_suite_luz_suite:
name: "Suíte"
description: "Luz Suite"
switch.tasmota_luz_corredor:
name: "Corredor Central"
description: "Luz Corredor"
display_categories: SWITCH
switch.tasmota_luz_cozinha:
name: "Cozinha"
description: "Luz cozinha"
switch.tasmota_luz_entrada:
name: "Entrada"
description: "Luz Entrada"
switch.tasmota_luz_jantar:
name: "Jantar"
description: "Luz Jantar"
switch.tasmota_luz_sala:
name: "Sala"
description: "Luz Sala"
switch.spot_sala:
name: "Spot Sala"
description: "Luz Spot Sala"
switch.varanda:
name: "Varanda"
description: "Luz Varanda"
switch.spot_varanda:
name: "Spot Varanda"
description: "Luz Spot Varanda"
I made some troubleshooting to try to realize what is going on.
1 - Verified my tunnel latency, it’s on 10 ms
2 - verified the latency to pitangui endpoint 10 ms
3 - verified at lambda logs and the latency at lambda test is 70ms (lot of less then 10 seconds)
4 - thought that because I’m not using the lambda function a lot it’s decommission the session and needs a cold start, so I created a ping function on my eventhub to send http requests every 5 minutes to keep lambda wake and avoid my lambda to freeze, also changed my phyton code to respond with 200 code to not triggering error on cloudwatch logs.
And now Im stucked , can someone help here or have any other ideas to troubleshooting?
Thanks