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