Dot and HomeKit



  • G'day Guys,

    I got my delivery of dots yesterday and have been active building a Homebridge platform in order to expose the dot's attributes to HomeKit (Service.OccupancySensor and Service.StatelessProgrammableSwitch).

    I have a functional prototype but it currently requires an individually code script for each Dot. While this is fine for me as a developer, it will no doubt add to the overhead to support this.

    So here's a list of functions that would remove the need for individual scripts....

    • A method to retrieve the name of the current Dot eg: getName()

    • A method to retrieve a unique identifier for the current Dot whether this is a serial number or bluetooth address eg: getSerialNumber()

    Other methods that would make things even more awesome...

    • A method to retrieve the current firmware version eg: getFirmwareVersion()

    • A method to retrieve the current battery level eg: getBatteryLevel()

    Below are a few screenshots from the Home app.

    Thanks,

    David

    alt text
    alt text



  • really interest for that! didi you release an homebridge plugin? how could it work? i imagine that an usb bluetooth dongle its needed on homebrdige server (raspberry).. but if it's too far? how could right manage?
    sorry for all that question, but i have all homekit device that are reachable via wifi or zigbee (hue).. nothing with bluetooth (low range)



  • @sommo how it works is as follows...

    1. the homebridge plugin listens on a port for incoming requests
    2. the dot has custom code that POSTs requests to the open port on the homebridge server when it receives events (onEnterRange, onExitRange and onButtonPress).
    3. the iota app runs on your iphone, etc so when you walk in range of the dot, the dot fires off a message to over the network to homebridge

    so homebridge and the dot aren't in direct communication over BLE.

    Hope that makes some sense.

    I haven't released the plugin yet, I want to wait until I hear back from the iota team.

    Cheers,

    David



  • very clear, thank you! i'm really interest in your plugin, using dot with homekit could evolve their use so i can trigger anything that are on my homekit network! i've asked to the iota team something about http request, they said that the post's (curl) request must be redirected via https protocol.. don't know if you are aware about that or you are already doing that



  • @sommo I think their answer was a bit vague.

    when you download the code and run it locally on your dot by clicking the Run button, using http calls works just fine.

    if you are trying to simulate a dot using Enter, Exit or Button from the dropdown menu, http calls will not work because the editor is loaded over https, and the browser will prevent mix content from being loaded.


  • administrators

    This is really cool! Please let me know how we can help.



  • @kunal_iota it would be an enormous help, if you were able to implement the methods I requested in my OP :)


  • administrators

    I'll talk to the team and see what we can do. @grant_iota



  • @kunal_iota said in Dot and HomeKit:

    I'll talk to the team and see what we can do. @grant_iota

    No news?


  • administrators

    @sommo I talked to the team and it appears like we don't have the throughput right now to add new features.



  • Really sad, it could be a store breaker festures (homekit integration) hope the team change their priority



  • @devbobo hi, could you share how to script the dot to let it add to homekit network (it seems iota team don't have time/interest to implement what u've ask)





  • Thank you! i will try asap! some question

    1. where i can find the UUID that i have to change into dot.js? or could it be a random one?
    2. i saw that it's configured "on button press", what happen on homekit network, when i press the dot? could i create an event on button press (ex. on eve App?)


  • @sommo said in Dot and HomeKit:

    Thank you! i will try asap! some question

    1. where i can find the UUID that i have to change into dot.js? or could it be a random one?

    yes, random...just use something like https://www.guidgenerator.com/

    1. i saw that it's configured "on button press", what happen on homekit network, when i press the dot? could i create an event on button press (ex. on eve App?)

    yes, you can use the button event, you can even use the official Home app where you can assign a given action to a button press or use Eve (or another 3rd party HomeKit app) to use the button press to trigger an action.



  • @devbobo really amazing, hope to tryit asap


Log in to reply
 

Looks like your connection to Dot Community was lost, please wait while we try to reconnect.