求教:不胜感谢
hassbian 安装运行homebridge错误
pi@hassbian:~/.homebridge $ homebridge [2018-12-4 15:33:14] Loaded config.json with 0 accessories and 1 platforms. [2018-12-4 15:33:14] --- [2018-12-4 15:33:15] Loaded plugin: homebridge-homeassistant [2018-12-4 15:33:15] Registering platform 'homebridge-homeassistant.HomeAssistant' [2018-12-4 15:33:15] --- [2018-12-4 15:33:15] Loading 1 platforms... [2018-12-4 15:33:15] [HomeAssistant] Initializing HomeAssistant platform... [2018-12-4 15:33:15] [HomeAssistant] Fetching HomeAssistant devices. [2018-12-4 15:33:15] [HomeAssistant] Failed getting devices: Error: You are not authenticated. Retrying...
config.json
{ "bridge": { "name": "HomeKit", "username": "B8:27:EB 1:46:1F", #我的树莓派mac地址 "port": 51826, "pin": "123-45-678" },
"platforms": [ { "platform": "HomeAssistant", "name": "HomeAssistant", "host": "http://192.168.2.37:8123", #我的树莓派IP地址 "password": "raspberry", "supported_types": ["binary_sensor","cover","fan","garage_door","input_boolean","light","lock","media_player","rollershutter","scene","sensor","switch","climate","script","automation"], "default_visibility": "visible" } }
homeassistant 可以网页登陆,创建的用户名是HomeAssistant 密码是 raspberry
|