IMG_20220712_212657.jpg

IMG_20220712_212624.jpg

找了好久。花了很多的功夫。目前就是这样子的效果。可以用的设备并不多。主要还是舍不得花钱。其实如果结合一些其他的备件的话,可以玩出很多花样来。
下面试贴代码

homeassistant:

  # HA的名字

  name: 季亮家

  # 经纬度,用于判断太阳升起落下的时间

  latitude: 31.88927

  longitude: 120.26263

  # 海拔
  elevation: 0
  # 公制,英制单位
  unit_system: metric
  # 时区,请在: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones中查找
  time_zone: Asia/Shanghai
  # 个性化设置文件位置,例如改变实体名称,改变在HA中是否可见的状态等等

# 开启前端
frontend:

# 开启配置管理的UI
config:




# 自动嗅探新的设备
discovery:

# 保存设备状态的历史
history:

#保存HA的日志
logbook:

# 查看跟踪设备的地图位置
map:

# 太阳所在的位置
sun:

# 数据库
recorder:
tts:
  - platform: edge_tts
    service_name: edge_say 
# service: tts.edge_say
    language: zh-CN-XiaomoNeural
    volume: 100.0
    language: zh-CN
    cache: true
    options:
      voice: zh-CN-XiaomoNeural
      style: cheerful
      styledegree: 2
      role: Girl
      pitch: +0Hz
      rate: +0%
      volume: +10%
media_source:
sensor:
  - platform: time_date
    display_options:
      - 'time'
      - 'date'
      - 'date_time'
      - 'date_time_utc'
      - 'date_time_iso'
      - 'time_date'
      - 'time_utc'
      - 'beat'
  - platform: systemmonitor
    resources:
      - type: disk_use_percent
      - type: disk_use
      - type: disk_free
      - type: memory_use_percent
      - type: memory_use
      - type: memory_free
      - type: swap_use_percent
      - type: swap_use
      - type: swap_free
      - type: load_1m
      - type: load_5m
      - type: load_15m
      - type: network_in
        arg: eth0
      - type: network_out
        arg: eth0
      - type: throughput_network_in
        arg: eth0
      - type: throughput_network_out
        arg: eth0
      - type: packets_in
        arg: eth0
      - type: packets_out
        arg: eth0
      - type: ipv4_address
        arg: eth0
      - type: ipv6_address
        arg: eth0
      - type: processor_use
      - type: processor_temperature
      - type: last_boot


shell_command:
  rebootcomputer: reboot
  clearcach: rm /root/.homeassistant/tts/*

# 分组、自动化和脚本文件所在的位置
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml  
最后编辑:2022年07月12日 ©著作权归作者所有

发表评论

仅有一条评论

  1. ble_monitor:

    rounding: True

    decimals: 1
    period: 10
    hci_interface: 1
    batt_entities: True
    discovery: True
    restore_state: True
    devices:

    - mac: 'A4:C1:38:F9:79:B2' name: '室内温度' encryption_key: 'e27aaa076f4223e8b2fa019311d8e0de' temperature_unit: C - mac: 'C8:0F:10:A1:4E:CC' name: '体重' - mac: 'FB:A7:ED:75:67:3B' name: '手环'