homekit:
- name: STB
port: 51818
mode: accessory
filter:
include_entities:
- media_player.ji_ding_he
- name: Dianshi
port: 51819
mode: accessory
filter:
include_entities:
- media_player.ke_ting_dian_shi
- name: Camera
port: 51820
entity_config:
camera.doorcam:
linked_doorbell_sensor: binary_sensor.switch_158d0005bdb04a
mode: accessory
filter:
include_domains:
- camera
- name: Home
port: 51821
filter:
include_domains:
- cover
- lock
include_entities:
- device_tracker.baba
- binary_sensor.door_window_sensor_158d000237c524
exclude_entities:
- cover.curtain_158d0002aca826
- name: LivingRoom
port: 51822
entity_config:
switch.dian_shi_cha_pai_s1:
type: outlet
switch.dian_shi_cha_pai_s2:
type: outlet
switch.dian_shi_cha_pai_s3:
type: outlet
switch.dian_shi_cha_pai_s4:
type: outlet
switch.ke_ting_cha_pai_s1:
type: outlet
switch.ke_ting_cha_pai_s2:
type: outlet
switch.ke_ting_cha_pai_s3:
type: outlet
switch.ke_ting_cha_pai_s4:
type: outlet
switch.wall_plug_158d000243b9b1:
type: outlet
filter:
include_domains:
- fan
- scene
- input_number
include_entities:
- sensor.rmpro_temperature
- switch.wall_plug_158d000243b9b1
- cover.curtain_158d0002aca826
- binary_sensor.livingroom_occupancy
- binary_sensor.door_window_sensor_158d000237c6a0
- light.livingroomlight
- light.livingroomlight2
- light.6c0defade3ae3e349az2li
- climate.ke_ting_kong_diao
- switch.ke_ting_xi_ding_deng
- switch.ke_ting_tong_deng
你可以这样,按房间或者设备分。
其实homeassistant 也自带了HomeKit组建,在集成里,可以按照设备类型进行前台操作,不用写代码。分为按域类型和按单个实体,也很方便 |