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

 找回密码
 立即注册
楼主: milomoon

[快速入门] 【基础教程】HomeAssistant的设备ID及汉化!

  [复制链接]

5

主题

86

帖子

350

积分

中级会员

Rank: 3Rank: 3

积分
350
金钱
264
HASS币
0
发表于 2018-10-30 15:49:15 | 显示全部楼层
waitshare 发表于 2018-10-30 14:43
你添加在哪个地方?

看图,就这样子编辑后就登陆不了,

微信截图_20181030154610.png
微信截图_20181030154844.png
回复

使用道具 举报

4

主题

215

帖子

493

积分

中级会员

Rank: 3Rank: 3

积分
493
金钱
278
HASS币
0
发表于 2018-10-30 16:22:23 | 显示全部楼层
liqun5417 发表于 2018-10-30 15:49
看图,就这样子编辑后就登陆不了,

目录下有个log文件,你看看你们报错提示什么
回复

使用道具 举报

5

主题

86

帖子

350

积分

中级会员

Rank: 3Rank: 3

积分
350
金钱
264
HASS币
0
发表于 2018-10-30 16:26:41 | 显示全部楼层
waitshare 发表于 2018-10-30 16:22
目录下有个log文件,你看看你们报错提示什么

大神帮我看看

微信截图_20181030162536.png
回复

使用道具 举报

4

主题

215

帖子

493

积分

中级会员

Rank: 3Rank: 3

积分
493
金钱
278
HASS币
0
发表于 2018-10-30 16:29:51 | 显示全部楼层

把斐讯设备的注释掉看看,然后再启动
回复

使用道具 举报

5

主题

86

帖子

350

积分

中级会员

Rank: 3Rank: 3

积分
350
金钱
264
HASS币
0
发表于 2018-10-30 16:38:13 | 显示全部楼层
waitshare 发表于 2018-10-30 16:29
把斐讯设备的注释掉看看,然后再启动

这句不懂了,里面没有斐讯的字眼啊
homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: 0
  longitude: 0
  # 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: [url]http://en.wikipedia.org/wiki/List_of_tz_database_time_zones[/url]
  time_zone: UTC
  # Customization file
  customize: !include customize.yaml

# Show links to resources in log and frontend
# introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
http:
   api_password: !secret http_password

# 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:
# [url]https://home-assistant.io/blog/2016/10/25/explaining-the-updater/[/url]
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

# Cloud
cloud:

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
homeassistant:
        packages: !include_dir_named packages
回复

使用道具 举报

4

主题

215

帖子

493

积分

中级会员

Rank: 3Rank: 3

积分
493
金钱
278
HASS币
0
发表于 2018-10-30 16:50:26 | 显示全部楼层
liqun5417 发表于 2018-10-30 16:38
这句不懂了,里面没有斐讯的字眼啊
[code]homeassistant:
  # Name of the loca ...

是斐讯的插座报错,/homeassistant/custom_components/sensor下有没有放入py格式的脚本(斐讯插座的)
回复

使用道具 举报

5

主题

86

帖子

350

积分

中级会员

Rank: 3Rank: 3

积分
350
金钱
264
HASS币
0
发表于 2018-10-30 16:53:34 | 显示全部楼层
waitshare 发表于 2018-10-30 16:50
是斐讯的插座报错,/homeassistant/custom_components/sensor下有没有放入py格式的脚本(斐讯插座的) ...

有,插座可以正常控制,插座的放在switch文件夹,M1的放在sensor文件夹

回复

使用道具 举报

4

主题

215

帖子

493

积分

中级会员

Rank: 3Rank: 3

积分
493
金钱
278
HASS币
0
发表于 2018-10-30 16:59:42 | 显示全部楼层
liqun5417 发表于 2018-10-30 16:53
有,插座可以正常控制,插座的放在switch文件夹,M1的放在sensor文件夹

那你把M1注释掉看看
回复

使用道具 举报

4

主题

215

帖子

493

积分

中级会员

Rank: 3Rank: 3

积分
493
金钱
278
HASS币
0
发表于 2018-10-30 17:01:40 | 显示全部楼层
waitshare 发表于 2018-10-30 16:59
那你把M1注释掉看看

你把log文件贴上来,截图我不好复制给你
回复

使用道具 举报

5

主题

86

帖子

350

积分

中级会员

Rank: 3Rank: 3

积分
350
金钱
264
HASS币
0
发表于 2018-10-30 17:03:06 | 显示全部楼层
waitshare 发表于 2018-10-30 16:59
那你把M1注释掉看看

怎么操作,把M1的配置删掉吗
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-29 07:22 , Processed in 0.067617 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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