『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 10666|回复: 18

[求助] Hass.io中的Homebridge下如何安装博联的插件

[复制链接]

3

主题

25

帖子

138

积分

注册会员

Rank: 2

积分
138
金钱
113
HASS币
0
发表于 2017-8-31 01:18:03 | 显示全部楼层 |阅读模式
Hass.io已完成安装,Homebridge也装上了,并图形化了界面。但却始终也没法在Homebridge中装上博联的插件。
请大神指点一下。谢谢

回复

使用道具 举报

1

主题

82

帖子

886

积分

高级会员

Rank: 4

积分
886
金钱
804
HASS币
0
发表于 2017-8-31 06:05:49 | 显示全部楼层
网速问题,好像可以改源,但是我不会。
回复

使用道具 举报

1

主题

11

帖子

70

积分

注册会员

Rank: 2

积分
70
金钱
59
HASS币
0
发表于 2017-9-1 13:57:40 | 显示全部楼层
顶上去。。。我也有这个疑问
回复

使用道具 举报

3

主题

25

帖子

138

积分

注册会员

Rank: 2

积分
138
金钱
113
HASS币
0
 楼主| 发表于 2017-9-1 17:50:11 | 显示全部楼层
在HB中的Plugins下用关键字“broadlink”搜索,能搜到一个“homebridge-broadlink-rm 2.5.16“,插件下方的”INSTALL“,进行安装,报错显示”Unexpected token u in JSON at position 0“
求大神指教
回复

使用道具 举报

3

主题

25

帖子

138

积分

注册会员

Rank: 2

积分
138
金钱
113
HASS币
0
 楼主| 发表于 2017-9-1 17:51:28 | 显示全部楼层
点击细节显示:
SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at /usr/lib/node_modules/homebridge-config-ui/routes/plugins.js:138:29
    at Layer.handle [as handle_request] (/usr/lib/node_modules/homebridge-config-ui/node_modules/express/lib/router/layer.js:95:5)
    at next (/usr/lib/node_modules/homebridge-config-ui/node_modules/express/lib/router/route.js:137:13)
    at /usr/lib/node_modules/homebridge-config-ui/routes/plugins.js:129:9
    at Layer.handle [as handle_request] (/usr/lib/node_modules/homebridge-config-ui/node_modules/express/lib/router/layer.js:95:5)
    at next (/usr/lib/node_modules/homebridge-config-ui/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/usr/lib/node_modules/homebridge-config-ui/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/usr/lib/node_modules/homebridge-config-ui/node_modules/express/lib/router/layer.js:95:5)
    at /usr/lib/node_modules/homebridge-config-ui/node_modules/express/lib/router/index.js:281:22
回复

使用道具 举报

0

主题

15

帖子

80

积分

注册会员

Rank: 2

积分
80
金钱
65
HASS币
0
发表于 2017-9-11 11:13:37 | 显示全部楼层
我也遇到个类似问题 ,是不是也是需要装homebridge-broadlink-rm??
请一下大神,我的装了hass.io后,成功装了小米网关,通过homebridge插件,在iphone上也可以控制小米的插座了。broadlink rm pro也成功在hass.io里面运行,我试着装好了一个开关风扇的switch,在hass.io主页能够发送开关风扇命令,但是iphone上的”家庭“ 不显示 broadlink的按键,请问我接下来应该怎么做才能够让”家庭“显示broadlink的按钮呢? 求教,万分感谢。
回复

使用道具 举报

4

主题

161

帖子

667

积分

高级会员

Rank: 4

积分
667
金钱
506
HASS币
0
发表于 2017-9-11 12:36:01 | 显示全部楼层
sculawxin 发表于 2017-9-11 11:13
我也遇到个类似问题 ,是不是也是需要装homebridge-broadlink-rm??
请一下大神,我的装了hass.io后,成功 ...

是不是config.json文件里面"supported_types"下没有添加switch。。我不是hass.io,但我猜应该是。。
回复

使用道具 举报

0

主题

15

帖子

80

积分

注册会员

Rank: 2

积分
80
金钱
65
HASS币
0
发表于 2017-9-13 22:28:31 | 显示全部楼层
Al_Fred 发表于 2017-9-11 12:36
是不是config.json文件里面"supported_types"下没有添加switch。。我不是hass.io,但我猜应该是。。 ...

有啊,我的config.json有的。。

{
  "bridge": {
    "name": "Home Assistant",
    "username": "B8:27:EBB:FE:1B",
    "port": 51826,
    "pin": "933-51-504"
  },
  "description": "Homebridge for Home Assistant",
  "accessories": [],
  "platforms": [
    {
      "platform": "HomeAssistant",
      "name": "HomeAssistant",
      "host": "http://172.17.0.1:8123",
      "password": "",
      "default_visibility": "visible",
      "supported_types": [
        "binary_sensor",
        "climate",
        "cover",
        "device_tracker",
        "fan",
        "group",
        "input_boolean",
        "light",
        "lock",
        "media_player",
        "scene",
        "sensor",
        "switch"
      ],
      "logging": true
    }
  ]
}

回复

使用道具 举报

0

主题

15

帖子

80

积分

注册会员

Rank: 2

积分
80
金钱
65
HASS币
0
发表于 2017-9-13 22:33:09 | 显示全部楼层
这是 configuration.yaml的内容

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: 22.5920719200
  longitude: 114.1305473500
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 50
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Asia/Shanghai

# Show links to resources in log and frontend
introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # Uncomment this to add a password (recommended!)
  # api_password: PASSWORD
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Track the sun
sun:

# Weather prediction
sensor:
  - platform: yr

# Text to speech
tts:
  - platform: google

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

xiaomi:
  gateways:
      - mac: 34CE00853D55
        key: 941B32A2762A4BA0

homeassistant:
  name: Home
  unit_system: metric
  customize:             # 注意缩进 customize 属于 homeassistant 下级,与 name 同级
   switch.plug_158d00015b5d5c:             # 设备 ID
     friendly_name: 儿童房风扇         # 昵称 即你想要的设备名
     icon: mdi:fan                        # 图标 即设备左侧显示,详情见下方引用
     hidden: false                         # 是否在 Home Assistant 中隐藏
     homebridge_name: 儿童房风扇           #在 iOS 家庭 App 中的名称
     homebridge_hidden: false             #是否在 iOS 家庭 App 中隐藏
   switch.plug_158d000160f208:             # 设备 ID
     friendly_name: 客厅风扇         # 昵称 即你想要的设备名
     icon: mdi:fan                        # 图标 即设备左侧显示,详情见下方引用
     hidden: false                         # 是否在 Home Assistant 中隐藏
     homebridge_name: 客厅风扇           #在 iOS 家庭 App 中的名称
     homebridge_hidden: false             #是否在 iOS 家庭 App 中隐藏
     
     
switch:
  - platform: broadlink
    host: 192.168.11.194
    mac: 34:EA:34:B5:3D:E7
    timeout: 15
    switches:
      # Will work on most Phillips TVs:
      tv_phillips:
        friendly_name: kitchenroom fans
        command_on: JgCqACgQJw8MKikPKA4NKg4pDSkNKwwqDCso8ygPKA4NKycPKA8NKgwqDSoNKg0pDigp9CgOKQ8MKigPKQ4MKg0qDSoMKw0qDSko9CgOKBAMKigPKA8NKQ0rDSkNKg0qDSko9CgPKA4NKikOKA8NKgwqDSoOKQwrDSoo9CcPKA8NKicPKBANKQ0qDSoMKg0qDiko8ykOJxAMKigQJw8MKwwrDSkNKg4pDSkpAA0FAAAAAAAAAAAAAAAAAAA=
        command_off: JgCSACgPKQ4MKikPJw8MKw0qDSkNKg4pDCso8ygPKA4NKycPKA8NKgwqDSoNKgwrDSon9CgOKQ8MKigPKA8MKg0rDSkMKw4pDSkp8ykOJxANKSkOKA8NKg0qDSkNKgwrDSon9ScPKA8NKigOKBAMKg0qDSoNKQ0rDCoo8ygPKA8NKicQKA4NKg4pDSoMKw0pDikoAA0FAAAAAAAA=
回复

使用道具 举报

0

主题

74

帖子

224

积分

中级会员

Rank: 3Rank: 3

积分
224
金钱
150
HASS币
0
发表于 2017-10-5 23:14:17 | 显示全部楼层
求同解!找不到设备
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-19 11:28 , Processed in 3.069893 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表