homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 39.9289
longitude: 116.3883
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 51
# 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]http://en.wikipedia.org/wiki/List_of_tz_database_time_zones[/url]
time_zone: Asia/Shanghai
# 汉化
#customize: !include customize.yaml
packages:
!include_dir_named packages
# Show links to resources in log and frontend
#introduction:
# Enables the frontend
frontend:
# Enables configuration UI
config:
http:
# Uncomment this to add a password (recommended!)
api_password: 123
# 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/]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:
# Track the sun
sun:
# Weather prediction
sensor:
- platform: yr
- platform: template
sensors:
solar_angle:
value_template: '{{ states.sun.sun.attributes.elevation }}'
friendly_name: 'Sun angle'
unit_of_measurement: 'degrees'
sunrise:
value_template: '{{ states.sun.sun.attributes.next_rising }}'
### 系统状态 ###
- platform: systemmonitor
resources:
- type: memory_use_percent
- type: processor_use
- type: last_boot
- type: memory_free
# Text to speech
tts:
- platform: google
android_ip_webcam:
- host: 192.168.1.105:8080
group: !include groups.yaml
automation: !include automations.yaml
WARNING:custom_components.sensor.CaiyunweatherS:File or data not present at the moment: forecast.json
WARNING:custom_components.sensor.CaiyunweatherS:File or data not present at the moment: realtime.json