Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Flic HomeKit pairing code

    Flic Hub
    3
    7
    1501
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ariel
      ariel last edited by

      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?

      Emil 1 Reply Last reply Reply Quote 0
      • just_perry
        just_perry @Emil last edited by

        Maybe, just maybe there is a way if you use Homebridge, there is a plugin for HomeBridge, install this and then run it as a child bridge, it will show up in Homeassistant, the code for Flic in Home assistant can then be found in the Flic Homebridge plugin, click on the Child bridge icon in the plugin to retrieve the code.

        1 Reply Last reply Reply Quote 0
        • Emil
          Emil FlicTeam @ariel last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • ariel
            ariel @Emil last edited by

            @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:

            1. 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).
            2. 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:

            1. Add a "ssl_verify=false" option (this is possible using any standard javascript library, should be possible here as well)
            2. 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
            3. 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)
            Emil 1 Reply Last reply Reply Quote 0
            • Emil
              Emil FlicTeam @ariel last edited by

              @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.

              ariel 1 Reply Last reply Reply Quote 1
              • ariel
                ariel @Emil last edited by

                @Emil errggg that would have been good to know before I spent $200 on this product... The SDK integration is flimsy (I've tested this out a few times and it just randomly stops working at times, plus writing code in some partially implemented javascript engine is very hacky) and it looks like the HTTP Request via the app goes through cloud which defeats the whole purpose for local control and the hub.

                Is there any plans to make the codes available in the future?

                Emil 1 Reply Last reply Reply Quote 0
                • Emil
                  Emil FlicTeam @ariel last edited by

                  @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.

                  ariel just_perry 2 Replies Last reply Reply Quote 0
                  • First post
                    Last post