Flic HomeKit pairing code
Hi I am trying to connect the flic hub to Home assistant via Homekit. It seems that it's requesting a homekit pairing code which I can't seem to find anywhere on the packaging or the device. Is there any way for me to proceed?
It sounds like a good idea to add an option to disable certificates. We already have that in the Internet Request action in the Flic app. I'll add it to our todo list.
The hub sdk is just a "static site" so you should be able to download the relevant files and host it from your own computer.
@Emil , sorry took long to respond, I forgot to turn on notifications.
So after playing with this a lot I can summarize my problem in two bullet points:
- I couldn't properly target homeassistant via webhooks as I enabled ssl which means that using the local ip address fails (unless you have a ssl_verify turned off) Your sdk does not offer this, which caused me to do a lot of leg work to configure my router so that it re-routes local calls to my domain name to the device directly (as otherwise it goes to my dns provider then back to my router, which makes flic not usable without direct access to the web, which happened when I tried setting it up causing a lot of confusion for me).
- I can't access the sdk locally using the actual ip of the device, I have to go to the https://hubsdk.flic.io/ which is an online sdk! Which doesn't work during hard times (no internet)
I think some updates from your team which would be nice to address these issues could be:
- Have a way to access the sdk without an "online sdk" I should be able to just access the files directly (assuming they really live in the hub and not in the cloud
- Maybe have a way to have the hub provide the pairing code (since this would honestly resolve so many issues, homekit is great even without the apple homepod)
@ariel We are working on improving the hub sdk and have some bug fixes we are about to roll out. If you have a concrete example of sample code that doesn't work as it should, feel free to post it so that we can have a look.
The HTTP Request action does not go through any cloud. You can for example use local IP addresses in the URL.
I'm not sure if we can do anything regarding Homekit unfortunately since we have some quite strict rules from Apple that we need to follow.
Is there any plans to make the codes available in the future?
@ariel we use Homekit in-field provisioning which means there is no QR code but instead credentials are transferred from the Flic hub through the Flic app to the Apple Home app.
For now there is no way to retrieve the setup code and thus you can't use any other Homekit controller except for Apple's own.
I suggest you to use alternative methods such as HTTP Request with a web hook in Home Assistant. I haven't tested this but feels like something like that should work. You could also use our hub sdk to implement something low level.