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

 找回密码
 立即注册
查看: 7126|回复: 5

[求助] 博联 sp mini 插座无法接入hass.io

[复制链接]

4

主题

36

帖子

184

积分

注册会员

Rank: 2

积分
184
金钱
148
HASS币
0
发表于 2017-12-7 21:06:33 | 显示全部楼层 |阅读模式
今天我装好了hass.io (ubuntu.16.04,vm虚拟机环境),也装好了homebridge,手机能显示网桥,但是在将我的博联sp mini   插座 ,接入ha和homebridge时,怎么也连不上?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: 30.5801
  longitude: 114.2734
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 0
  # 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
  # Customization file
  customize: !include customize.yaml

# Show links to resources in log and frontend
introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # Secrets are defined in the file secrets.yaml
  # api_password: !secret http_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:

# Enables a map showing the location of tracked devices
map:

# 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


switch 1:
     - platform: broadlink
         host: 192.168.0.106
         mac: 'B4:43:0D:C4:F0:3D'
         timeout: 15
         type: sp2
         friendly_name: 'SP-MINI'


config.json配置文件如下:
{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "123-45-678"
    },

    "platforms": [
  {
    "platform": "HomeAssistant",
    "name": "HomeAssistant",
    "host": "http://192.168.0.129:8123",
    "password": "",
    "supported_types": ["fan", "garage_door", "input_boolean", "light", "lock", "media_player", "rollershutter", "scene", "switch"]
  }
    ]
}


我想接入ha和homebride,怎么弄都不行,请教各位大佬,在此拜谢!

回复

使用道具 举报

2

主题

90

帖子

632

积分

高级会员

Rank: 4

积分
632
金钱
542
HASS币
0
发表于 2017-12-7 21:20:43 | 显示全部楼层
type: sp2 改成 type:  spmini2试试
回复

使用道具 举报

4

主题

36

帖子

184

积分

注册会员

Rank: 2

积分
184
金钱
148
HASS币
0
 楼主| 发表于 2017-12-7 22:25:53 来自手机 | 显示全部楼层
k_xg9 发表于 2017-12-7 21:20
type: sp2 改成 type:  spmini2试试

好的,明早上班试试!
回复

使用道具 举报

6

主题

386

帖子

2045

积分

金牌会员

Rank: 6Rank: 6

积分
2045
金钱
1657
HASS币
0
发表于 2017-12-8 01:25:00 | 显示全部楼层
2楼正解 spmini2 和miniplus我都连成功过。但是mini2要稳定一些,个人感觉
回复

使用道具 举报

9

主题

161

帖子

680

积分

高级会员

Rank: 4

积分
680
金钱
519
HASS币
0
发表于 2017-12-17 09:32:13 | 显示全部楼层
楼主请问你参照哪个教程的 谢谢
回复

使用道具 举报

4

主题

36

帖子

184

积分

注册会员

Rank: 2

积分
184
金钱
148
HASS币
0
 楼主| 发表于 2017-12-28 14:53:41 | 显示全部楼层
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-23 14:48 , Processed in 0.145323 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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