Alle berichten van Bram Hendriks

Homekit issues with smart locks (Danalock)

Back in October with the release of iOS 12 and tvOS 12.1, the updates broke HomeKit functionality for a variety of smart locks, including the Schlage Sense. Users lost the ability to lock or unlock the smart deadbolt remotely from their iOS devices, only to see a ‘No Response’ error message.

The reason why the lock gives no response is due to the release of OS 12. When Danalock Homekit was constructed and approved by Apple, connection was working fine. Now it turns out that the new firmware from Apple (OS12) is not 100 % backward compatible, so Home App is not able to communicate/update status from Danalock the way it used to.

As a result, Apple just released new OS called 12.1.1. which solves the issue.

Danalock was not the only smart lock that was affected by this Apple issue: https://www.iphoneincanada.ca/news/tvos-12-1-1-fixes-schlage-sense-lock-no-response/

Geofencing with IFTTT on Fibaro

Needed:

  • IFTTT account with IFTTT App installed on iphone (Not yet tested with Android).
  • Fibaro controller available through port-forwarding
  1. Create Global Variable for User with 2 possible values (aanwezig(=present) and afwezig(=away) or choose your own.
  2. Create virtual Device with 2 buttons

    Choose 2 buttons, choose toevoegen (add)

    Change icons (if you want, available on Gateway Pictures).
    Change buttons from String to LUA Code
    Add Lua Code:fibaro:setGlobal(“Bram”,”Aanwezig”);
    This will only set the Global variable “Bram to either “Afwezig” or “Aanwezig” (or “Present” and “Away” if you prefer).
    If you want to call a scene directly from this you can add:
    fibaro:startScene (<nr of scene you want to start>);
  3. Save Virtual Device
  4. Create a user on fibaro with access to only the just created virtual device.
  5. Create New Applet in IFTTT:
  6. Search for Location:
  7. Select Location:

    Adjust the location to your liking, do not make the range too small, so IFTTT has time to react.
    Click “Create trigger”.
  8. Now we provide the action:
    Click “that”:
  9. Search for webhooks:

    Click “Webhooks”.
  10. Click “Webrequest”:
  11. Fill in all the fields as follows:

    URL = http://<user>:<Password>@<IPADRESS>:<PORT>/api/callAction?deviceID=<DeviceID>&name=pressButton&arg1=<Buttonnr>
    Where:
    <user> is the user created in step 4
    <Password> the password of the above user
    <IPADRESS> the external ipadress of the Fibaro controller
    <PORT> the port the Fibaro can be reached on (through portforwarding)
    <DeviceID> the DeviceID of the virtual device created in steps 2 & 3
    <Buttonnr> the Nr of the button to be activated (First button =1, etc)Set Method to “Get”

    Set content Type to “text/plain”.

    Select “Create Action”.

  12. Select Finish.
    If you do not want to be notified each time the applet runs, turn off notifications
  13. Your done!
    Each time you enter the specified area, IFTTT when it detects this, will send a request to the Fibaro controller, pressing the specified button on the virtual device.
    You can of course expand this with exiting an area, etc..
    Have Fun!