Advertisement
xangin

HA homekiy bridge sample yaml

Jul 5th, 2023 (edited)
1,184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.47 KB | None | 0 0
  1. # 1. 將此檔案存成homekit.yaml並放在跟configuration.yaml同一個資料夾
  2. # 2. 在configuration.yaml加入一行:
  3. #    homekit: !include homekit.yaml
  4. # 3. 全部房間寫完去開發工具>YAML>檢查內容>沒問題>重啟HA後,HA左下角通知會出現QR code即可掃描加入家庭
  5. # 4. 有修改或刪減房間內的實體,去開發工具>YAML>下方重新載入HOMEKIT即可生效
  6. # 5. 每次新增房間得重啟HA才會出現QR code
  7. #----------------------------------------------------------------------  
  8. - name: Guest Room HK #房間名稱
  9.   port: 31062 #port隨意且不重複
  10.   filter:
  11.     include_entities: #把要放在該房間的實體ID放進來
  12.       - light.guest_room  
  13.       - sensor.guest_room_air_sensor_temperature
  14.       - sensor.guest_room_air_sensor_humidity
  15.       - sensor.guest_room_air_sensor_co2
  16.       - binary_sensor.door_guestroom_contact
  17.       - switch.guestroomnightlight
  18.       - switch.plug_guestroomcharger
  19.       - climate.guest_room
  20.       - cover.guest_curtain
  21. #----------------------------------------------------------------------  
  22. - name: Kitchen HK
  23.   port: 31065
  24.   filter:
  25.     include_entities:
  26.      - switch.kitchen_right_kitchen  
  27.       - sensor.kitchen_sensor_temperature
  28.       - sensor.kitchen_sensor_humidity
  29.       - binary_sensor.kitchen_water_leak
  30.       - binary_sensor.kitchen_sensor_motion
  31. #----------------------------------------------------------------------
  32. # 以此類推複製並新增房間及實體
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement