配置基本信息

By default, Home Assistant will try to detect your location from IP address geolocation. Home Assistant will automatically select a temperature unit and time zone based on this location. You can overwrite this by adding the following information to your configuration.yaml:

默认情况下, Home Assistant 将尝试从IP地址地理位置检测您的位置。 Home Assistant 将根据此位置自动选择温度单位和时区。 您可以通过将以下信息添加到 configuration.yaml 来覆盖默认值:

homeassistant:
  # Omitted values in this section will be auto detected using freegeoip.io
  # Location required to calculate the time the sun rises and sets
  latitude: 32.87336
  longitude: 117.22743

  # Impacts weather/sunrise data (altitude above sea level in meters) 
  elevation: 430

  # '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: America/Los_Angeles

  # Name of the location where Home Assistant is running
  name: Home

Password protecting the web interface

First, you’ll want to add a password for the Home Assistant web interface. Use your favourite text editor to open configuration.yaml and edit the http section:

首先,您需要为Home Assistant Web界面添加密码。 使用您喜欢的文本编辑器打开 configuration.yaml 并编辑 http 部分:

http:
  api_password: YOUR_PASSWORD

If you decide to expose your Home Assistant instance to the internet and forget to set a password, your installation could be accessed by everybody.

See the HTTP component documentation for more options, such as the use of HTTPS encryption.

如果您决定将Home Assistant实例暴露在互联网上,并忘记设置密码,则任何人都可以访问您的安装。

有关更多选项,请参阅 HTTP 组件文档,例如使用HTTPS加密。

转载于:https://my.oschina.net/u/3379895/blog/1068744

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值