June 10, 2020

HomeKit, Z-Wave, Telldus Live, and...


Updated 2023-10-10 !

You can use one  Raspberry Pi to
  • Make Your home automation devices appear in the Apple Home App
  • Being the Z-Wave controller
  • HomeKit enable Your Z-Wave devices
  • HomeKit enable Your devices registered at Telldus Live
  • HomeKit enable IKEA Trådfri devices 
  • Homekit enable temperature with sensor  DS18B20
  • HomeKit enable Broadband speed
If You have other products there are more than 4200 plugins available

A new simple install  !! is found here so skip the below info if you aren't interested of the old way!


First we install the basic software, Homebridge, (HB), with instructions to follow, and then go on with the links below

If You want to start from scratch, with a new SD-card, here is a RPi(RPi) OS install with Mac/Pc.

If You are using an old RPi installation, update the RPi OS, after You logged on to the RPi, with;


sudo apt update && sudo apt full-upgrade -y && sudo apt clean

Then install Node, a JavaScript engine, and NPM, a package manager.

And then HB

$ sudo npm install -g --unsafe-perm homebridge

To check that HB is correct installed, without the Plugin, run the commando

$ homebridge

At the end of the log You will se 

[2018-8-16 11:31:02] No plugins found. See the README... on installing plugins.
[2018-8-16 11:31:02] config.json (/home/pi/.homebridge/config.json) not found.
Setup Payload:
X-HM://0023ISYWYGKAF
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 031-45-154 │     
    └────────────┘     
                       
[2018-8-16 11:31:05] Homebridge is running on port 51826.

At this moment You can start Your Home iOS app and check that Hombridge is discovered. Use the "+" sign in the upper corner and then add. Scan the HomeKit code on Your RPi. Don't add and terminate the process on RPi with Ctrl+C.

Links to installation of some plugins

And then an example of the config.json which cover several plugins

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154"
    },
    "description": "Z-Wave, Telldus Live, Trådfri, DS18B20, & Broadband plugin",
    "accessories": [
        {
            "accessory": "DS18B20",
            "name": "Temperature Sensor",
            "device": "28-0417a05b41ff"
        },
        {
            "accessory": "Broadband",
            "name": "Broadband",
            "maxTime": 5,
            "interval": 30
        }
    ],
    "platforms": [
        {
            "platform": "ZWayServer",
            "url": "http://localhost:8083/",
            "login": "admin",
            "password": "admin"
        },
        {
            "platform": "Telldus",
            "name": "Telldus Liv!e",
            "public_key": "FEXXXXXXXXUNU",
            "private_key": "ZUXXXXXXXXX6EF",
            "token": "88XXXXXXXXXXXb7d",
            "token_secret": "a57XXXXXXXXXXXXXed5f"
        },
        {
            "platform": "Ikea Trådfri Gateway",
            "name": "Ikea Trådfri Gateway",
            "host": "192.168.n.n",
            "securityCode": "DqXXXXXXXXXXXXH2",
            "expose": ["outlets"]
        }
    ]

}

Besides Z-Wave and Telldus Live Devices I also use some Elgato Eve products unboxed in this post and IKEA Trådfri.

If Samba is installed, RPi acting as a Windows file server, it looks like this from a Mac



Instructions updating the installation is found here

HB autostart at power on and failure, installed with a script !! , is found here.

2 comments:

  1. Så bra! Har läst på så många ställen, men detta är det första som faktiskt får mig att förstå. Ska ge mig på detta ikväll :)

    ReplyDelete

Feel free to leave a comment ! ... but due to a lot of spam comments I have to moderate them. Will reply ASAP !