首页 » HomeAssistant » Homeassistant与Homebridge桥接方法

Homeassistant与Homebridge桥接方法

 

一.导读
上篇文章《基于树莓派的HomeBridge安装》介绍了HomeBridge的安装方法,本篇文章主要介绍Homeassistant与Homebridge怎样打通,如果您还不清楚在树莓派下怎么安装Homeassistant,请参照《基于树莓派的HomeAssistant安装》一文进行安装
二.测试环境
1.树莓派
系统及版本:
Raspbian Buster with desktop
Version:February 2020
Release date:2020-02-13
Kernel version:4.19
Raspberry Pi version:3B
三.操作步骤
1.直接登陆HomeBridge的web端搜索homeassistant进行安装,如图1

图1

2.登陆HomeAssistant进行配置HomeBridge, 配置-》集成-》配置,如图2

图2

3.输入HomeBridge匹配码(匹配码获取参照图5)然后提交,如图3-图4

图3

图4

图5

4.创建访问令牌

图6

令牌例:
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1ODBiOTM2MDUxY2RiNWQwODIzNiIsImlhdCI6MTU4ODg2NDY0NywiZXhwIjoxOTA0MjI0NjQ3fQ.PpeLXFFpr9pdD2xpJxeR2RMBHCzkxRRpElo9pdaE3rg
5.登陆HomeBridge进行配置Homeassistant, 如图7

图7

        {
            "platform": "HomeAssistant",
            "name": "HomeAssistant",
            "host": "http://192.168.137.252:8123",
            "password": "密码+空格+HomeAssistant长期访问令牌",
            "supported_types": [
                "binary_sensor",
                "climate",
                "cover",
                "fan",
                "garage_door",
                "device_tracker",
                "input_boolean",
                "light",
                "lock",
                "media_player",
                "rollershutter",
                "sensor",
                "scene",
                "switch"
            ],
            "default_visibility": "visible",
            "verify_ssl": false
        }

6.配置好后重新启动HomeBridge

图8

原文链接:Homeassistant与Homebridge桥接方法,转载请注明来源!

0