Integrate BroadLink RM3 Mini with Home Assistant
step 1.
action: remote.learn_command
data:
command_type: ir
device: Gree KFR-72GW air conditioner
command: Power off
timeout: 60
target:
entity_id: remote.zhi_neng_yao_kong_rm_mini3
step 2
RM mini 3 by Broadlink:add script-Gree KFR-72GW air conditioner power on via remote.send_command
scripts.yaml
sequence:
- action: remote.send_command
metadata: {}
data:
num_repeats: 1
delay_secs: 0.4
hold_secs: 0
command: Power on
device: Gree KFR-72GW air conditioner
target:
entity_id: remote.zhi_neng_yao_kong_rm_mini3
alias: script-Gree KFR-72GW air conditioner power on
description: ""
test
action: script.script_gree_kfr_72gw_air_conditioner_power_on
data: {}
step 3.
configuration.yaml
RM mini 3 by Broadlink:add virtual switch via switch template in configuration
# http://localhost:4999/boards/topic/51359/custom-homekit-device-air#76012
# https://zhuanlan.zhihu.com/p/1920988695982486609
# https://blog.matterxiaomi.com/blog/integrate-broadlink-remote-with-home-assistant-part2/
- platform: template
switches:
air_conditioner:
friendly_name: "空调"
unique_id: uniqueid_virtual_switch_gree_kfr_72gw_air_conditioner
# value_template: "false"
turn_on:
service: script.script_gree_kfr_72gw_air_conditioner_power_on
data: {}
turn_off:
service: script.script_gree_kfr_72gw_air_conditioner_power_on
data:
restart ha
step 4
RM mini 3 by Broadlink:add home bridge for virtual switch in configuration.yaml
# HomeKit Bridge 配置
# https://zhuanlan.zhihu.com/p/1920988695982486609
# https://www.home-assistant.io/integrations/homekit
# https://github.com/home-assistant/core/issues/133013#issuecomment-2538470075
homekit:
- name: Home bridge (person)
filter:
include_domains:
- person
- name: Home bridge (light)
port: 21070
filter:
include_domains:
- light
- name: Home bridge 客厅空调
port: 21071
filter:
include_entities:
- switch.air_conditioner_2
Comments
Be the first to post a comment