Controlling everything with Siri

In Apple, HomeAssistant, HomeBridge, Siri by rhodzyLeave a Comment

How I control my home with Siri

For some time I’ve used Alexa to connect to HomeAssistant so she can control all of my devices, even without an Alexa skill. But I wanted to go one step further and use Siri, since I carry him around on my wrist, in my pocket and soon to be in a speaker. I already used Homebridge running on my NAS to control my NEST heating from Siri (Also not supported as standard) and then I came across this Homebridge plugin for Home Assistant.

It does exactly what it says on the tin, it allows Homebridge to see and control HomeAssistant.

To install the Homebridge plugin simply run the command on your server.

npm install -g homebridge-homeassistant

Then it’s all about editing your config.json file to get the plugin loaded!

"platforms": [
  {
    "platform": "HomeAssistant",
    "name": "HomeAssistant",
    "host": "http://127.0.0.1:8123",
    "password": "yourapipassword",
    "supported_types": ["automation", "binary_sensor", "climate", "cover", "device_tracker", "fan", "group", "input_boolean", "light", "lock", "media_player", "remote", "scene", "script", "sensor", "switch", "vacuum"],
    "default_visibility": "hidden",
    "logging": true,
    "verify_ssl": true
  }
]

Simples,  but don’t do what I did and leave all the supported types in! If you have a lot of devices within HomeAssistant and automations, you will end up with lots and lots of items within the Home App!

My configuration along with the NEST plugin:

{ 
  "bridge": { 
    "name": "Homebridge", 
    "username": "CC:22:3D:E3:CE:30", 
    "port": 51826, 
    "pin": "031-45-154" 
  }, 
 
  "description": "This is an example configuration file. You can use this as a template for creating your own configuration file containing devices you actually own.", 
 
  "accessories": [], 
 
  "platforms": [{ 
      "platform": "Nest", 
      "token": "MYNESTSECRETTOKEN", 
      "clientId": "MYNESTCLIENTID", 
      "clientSecret": "MYNESTCLIENTSECRET", 
      "code": "NESTCODE" 
    }, 
    { 
      "platform": "HomeAssistant", 
      "name": "HomeAssistant", 
      "host": "MYURLTOHOMEASSISTANT", 
      "password": "MYPASSWORD", 
      "supported_types": ["automation", "climate", "fan", "light", "remote", "sensor", "switch"], 
      "default_visibility": "visible", 
      "logging": false, 
      "verify_ssl": true 
    } 
  ] 
}

Because I’m not a pro with json files, the above took me quite a long time to get the working format!