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

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

 火... [复制链接]

5

主题

81

回帖

352

积分

中级会员

积分
352
金钱
266
HASS币
0
发表于 2018-10-30 12:54:29 来自手机 | 显示全部楼层
waitshare 发表于 2018-10-28 20:26
按照楼主的帖子,完美实现汉化,赞

我什么我添加如下代码不能登录
sensor.m1_hcho
  friendly_name: 甲醛
  homebridge_hidden: true
sensor.m1_humidity
  friendly_name: 湿度
  homebridge_hidden: true
sensor.m1_pm25
  friendly_name: PM2.5
  homebridge_hidden: true
sensor.m1_temperature
  friendly_name: 温度
  homebridge_hidden: true
回复

使用道具 举报

4

主题

211

回帖

493

积分

中级会员

积分
493
金钱
278
HASS币
0
发表于 2018-10-30 14:43:25 | 显示全部楼层
liqun5417 发表于 2018-10-30 12:54
我什么我添加如下代码不能登录
sensor.m1_hcho
  friendly_name: 甲醛

你添加在哪个地方?
回复

使用道具 举报

5

主题

81

回帖

352

积分

中级会员

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

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

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

使用道具 举报

4

主题

211

回帖

493

积分

中级会员

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

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

使用道具 举报

5

主题

81

回帖

352

积分

中级会员

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

大神帮我看看

微信截图_20181030162536.png
回复

使用道具 举报

4

主题

211

回帖

493

积分

中级会员

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

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

使用道具 举报

5

主题

81

回帖

352

积分

中级会员

积分
352
金钱
266
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

主题

211

回帖

493

积分

中级会员

积分
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

主题

81

回帖

352

积分

中级会员

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

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

回复

使用道具 举报

4

主题

211

回帖

493

积分

中级会员

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

那你把M1注释掉看看
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2025-5-2 08:26 , Processed in 0.173682 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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