I finally got my Flic switches and Flic hub and was excited to have a physical switch to control my lights. Setup was easy and it all works fine, but the latency isn't great and is quite unreliable in how long it takes. Just guessing, but it seems to take between 2 and 5 seconds.
I'm guessed this is because it has to go out to the the Lifx servers via their APIs and the round trip adds to the latency. So as an experiment I set up my own local web server and used a python library (https://github.com/mclarkk/lifxlan) to access the LAN APIs for Lifx. Then I set the actions on the buttons to hit my local http server instead.
This has reduced latency significantly and it is now down to 1 second or less (usually less!). The switches feel so much better with this level of latency.
Could Flic or Flic Hub integrate with the Lifx LAN APIs instead? This would mean they natively could have this level of latency as well.