需要在HomeBridge配置界面配置。
其中host填写HomeAssistant的IP地址,端口默认都是8213。密码为我们之前在安装HomeAssistant的时候配置设置的api_password
{
"bridge": {
....
},
"platforms": [
{
"name": "Config",
"port": 8581,
"platform": "config"
},
{
"platform": "HomeAssistant",
"name": "HomeAssistant",
"host": "http://127.0.0.1:8123",
"password": "123456",
"support_types": [
"automation",
"binary_sensor",
"climate",
"cover",
"device_tracker",
"fan",
"group",
"input_boolean",
"light",
"lock",
"media_player",
"remote",
"scene",
"script",
"sensor",
"switch",
"vacuum"
],
"default_visibility": "visible",
"verify_ssl": false,
"logging": true
}
]
}