Alexa Integration via lambda is too slow

I currently have a routine on Amazon Echo that will call my Alexa skill (lambda in EU via Cludflared tunnel), the skill will then call an HA script and finally the HA script will turn off some Hue light through the Philips bridge.

So:

Alexa Routine via Voice => HA Skill => Lambda 
=> HA via Cludflared => HA Script 
=> Hue Bridge => Hue light

Now, problem is that this takes a few seconds, is there any way to reduce this lag without using the emulated_hue integration? Am i doing anything wrong? Yes i know i could do this entirely inside the Echo, this is just a test to see integration speed. How much delay is “normal” in a cloud setup like this? Are there any alternatives?

You don’t need to use emulated hue at all. If you have your skill built, you can add this to your config file and Alexa will find and control those devices. I run everything through a Cloudflared tunnel as well.

It’s pretty instant when executing commands.

alexa:
  smart_home:
    endpoint: https://api.amazonalexa.com/v3/events
    filter:
      include_entities:
        - cover.pc_curtains
        - cover.bed_curtains
        - cover.tv_curtains
        - media_player.monitor 
        - media_player.main_tv
        - light.pc_lights
        - light.bed_lights
        - light.night_stands

Nice can you trigger scripts this way?

Yes, for instance I use a wake on lan script to start my pc. Alexa sees it as a binary device. Tell her to turn on the PC and it activates the script.

That’s perfect thanks!