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

 找回密码
 立即注册
查看: 11491|回复: 19

[经验分享] 组件翻译区:【configuration.yaml】

  [复制链接]

175

主题

2956

帖子

7555

积分

超级版主

我就是六神

Rank: 8Rank: 8

积分
7555
金钱
4574
HASS币
398

活跃会员教程狂人灌水之王

QQ
发表于 2017-10-18 22:23:37 | 显示全部楼层 |阅读模式
分享下我的配置文件,还在扩容中~~~

homeassistant:
  # Name of the location where Home Assistant is running
  # 智能家居系统的名字,显示在主界面顶部。
  name: 我的智能豪宅
  # Location required to calculate the time the sun rises and sets
  # 下面填入纬度和经度,计算太阳升起和设定时间所需位置,越精确越好。
  latitude: 36.85201
  longitude: 116.225287
  # Impacts weather/sunrise data (altitude above sea level in meters)
  # 海拔高度用于修正天气参数和日出日落时间参数 (默认单位是:米)。
  elevation: 31
  # metric for Metric, imperial for Imperial
  # 度量衡单位制式(metric)是公制,(imperial)是英制。
  unit_system: metric
  # Pick yours from here: [url]http://en.wikipedia.org/wiki/List_of_tz_database_time_zones[/url]
  # 时区,从这里选择你的:[url]http://en.wikipedia.org/wiki/List_of_tz_database_time_zones[/url],默认北京时间。
  time_zone: Asia/Shanghai
  customize: !include customize.yaml

# 测试任何您更改的配置文件,在命令行中用hass --script check_config。这个脚本可以让你测试的变化而不需要重新启动家庭助理。
# Show links to resources in log and frontend
# 在网页界面的首页显示简介  (那一大段英文)不想看到的话,请在前面加上#号。
#introduction:

# Enables the frontend
# 是否使用默认的“首页”
frontend:

# Enables configuration UI
# 自定义配置UI
config:

http:
  # Uncomment this to add a password (recommended!)
  # 给系统网页的登录加上一个密码,先去掉下面这行的#号,然后把PASSWORD改成你想要的密码。
  # api_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:
# [url]https://home-assistant.io/blog/2016/10/25/explaining-the-updater/[/url]
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # 升级提示,当 HomeAssitant 有新版本发布的时候,“日出日落”图标会变成(Updater)字样
  # 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显示所有事件
logbook:

# receive from broadlink开启博联日志
logger:
  default: critical
  logs:
    homeassistant.components.switch.broadlink: info

# Track the sun
# 太阳“跟踪器”    也就是“日出日落时间”
#sun:

panel_iframe:
#添加HA侧边面板
  designicons:
    title: 'Design Icons'
    icon: mdi:vector-square
    url: 'https://cdn.materialdesignicons.com/2.0.46/'





# Text to speech
# 文字转换语音
tts:
  - platform: google

# 播放器
media_player:
#  - platform:
#    host:


device_tracker:
  - platform: xiaomi
    host: 192.168.31.1
    username: admin
    password: '**************'#这个不用我说了吧,换成自己的
    track_new_devices : 1
    #If new discovered devices are tracked by default
    #跟踪新设备的添加,默认true
    interval_seconds : 12
    #Seconds between each scan for new devices
    #扫描每个设备的间隔
    consider_home : 180
    #Seconds to wait till marking someone as not home after not being seen.
    #This parameter is most useful for households with Apple iOS devices that go into sleep mode while still at home to conserve battery life.
    #iPhones will occasionally drop off the network and then re-appear.
    #It helps prevent false alarms in presence detection when using IP scanners such as Nmap.
    #Accepts various time representations, (E.g. the following all represents 3 minutes:180,0:03,0:03:00)
    #在设定秒数之后追踪不到某个设备,设置为不在家
    #这个参数对于那些在家时进入睡眠模式的苹果iOS设备非常有用,以节省电池寿命。
    #iPhone偶尔会脱离网络,然后重新出现。在使用IP扫描器如Nmap进行检测时有助于防止误报。
    #接受各种时间表示(例如,以下代表3分钟:180,0:03,0:03:00)


# 下面这个区域,用于自定义设备属性

switch: !include switchs.yaml
group: !include groups.yaml
automation: !include automations.yaml
sensor: !include sensors.yaml


回复

使用道具 举报

59

主题

731

帖子

4221

积分

论坛元老

Rank: 8Rank: 8

积分
4221
金钱
3485
HASS币
20
发表于 2017-10-19 13:00:15 | 显示全部楼层
支持分享
回复

使用道具 举报

39

主题

750

帖子

4709

积分

论坛元老

Freddy.

Rank: 8Rank: 8

积分
4709
金钱
3934
HASS币
0

最佳新人卓越贡献

发表于 2017-10-19 14:20:27 | 显示全部楼层
支持支持
回复

使用道具 举报

34

主题

335

帖子

1844

积分

金牌会员

Rank: 6Rank: 6

积分
1844
金钱
1509
HASS币
0
发表于 2018-3-24 22:35:20 | 显示全部楼层
支持分享
回复

使用道具 举报

6

主题

556

帖子

3476

积分

论坛元老

Rank: 8Rank: 8

积分
3476
金钱
2920
HASS币
0
发表于 2018-3-25 09:58:54 | 显示全部楼层

支持分享
回复

使用道具 举报

5

主题

115

帖子

584

积分

高级会员

Rank: 4

积分
584
金钱
469
HASS币
0
发表于 2018-3-25 10:11:58 | 显示全部楼层
谢谢分享   
回复

使用道具 举报

0

主题

5

帖子

54

积分

注册会员

Rank: 2

积分
54
金钱
49
HASS币
0
发表于 2018-6-1 01:07:43 | 显示全部楼层
感谢分享
回复

使用道具 举报

0

主题

69

帖子

250

积分

中级会员

Rank: 3Rank: 3

积分
250
金钱
181
HASS币
0
发表于 2018-8-12 22:28:06 来自手机 | 显示全部楼层
谢谢分享 学习学习
回复

使用道具 举报

0

主题

11

帖子

38

积分

新手上路

Rank: 1

积分
38
金钱
27
HASS币
0
发表于 2018-8-14 00:56:26 | 显示全部楼层
推翻譯 謝謝 來學習
回复

使用道具 举报

0

主题

24

帖子

90

积分

注册会员

Rank: 2

积分
90
金钱
66
HASS币
0
发表于 2018-11-17 15:07:12 | 显示全部楼层
感谢分享~
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-1 04:36 , Processed in 0.361403 second(s), 33 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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