-
-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aqara空调伴侣(升级版)如何使用自定义红外码 #136
Comments
如果有小爱同学的话,可以通过HA服务执行小爱语音命令来控制红外设备。具体是在米家添加一个可以小爱控制的手动场景,然后通过 |
我没有小爱同学。红外码我都有,之前在homebridge里用过,但是这里我不知道怎么用。通过 替换 空调 默认的 关闭 按钮 红外发射码 这个是不能实现吗? 感谢您的回答。 |
你可以把支持该设备的homebridge插件地址或者名称给我,我看下其源码中的miio命令。
无法替换climate实体的关闭按钮,不过你可以参考这里使用template switch + 服务模拟出一个开关实体。 |
非常感谢。 |
service: xiaomi_miot.send_command
data:
entity_id: climate.lumi_acpartner_entity_id
method: send_ir_code
params:
- FE00ABCDEF # IR Code |
使用template switch + 服务的实例: # configuration.yaml
switch:
- platform: template
switches:
lumi_acpartner_ir:
value_template: "{{ is_state('climate.lumi_acpartner_entity_id', 'on') }}"
turn_on:
service: climate.turn_on
target:
entity_id: climate.lumi_acpartner_entity_id
turn_off:
service: xiaomi_miot.send_command
data:
entity_id: climate.lumi_acpartner_entity_id
method: send_ir_code
params:
- FE00ABCDEF # IR Code |
非常感谢。我写的是这样的,美的的风扇可以了。自定义的空调开关还没测。 fan:
- platform: template
# https://www.home-assistant.io/integrations/fan.template
fans:
woshi_fan:
friendly_name: "卧室风扇"
value_template: "{{ states('input_boolean.woshi_fan_state') }}"
percentage_template: 0
preset_mode_template: ""
speed_count: 3
preset_modes:
- 静音
turn_on:
- service: xiaomi_miot.send_command
data:
entity_id: climate.kong_diao_cha_zuo_air_conditioner # 实体ID
method: send_ir_code
params:
- FE0000000000000000000000000500322257003600A701BC036E13883201000000000000000001010101010101010100000000000000000101010101010101000000000000000001010101010104F4 # IR Code
- service: input_boolean.turn_on
target:
entity_id: input_boolean.woshi_fan_state
turn_off:
- service: xiaomi_miot.send_command
data:
entity_id: climate.kong_diao_cha_zuo_air_conditioner # 实体ID
method: send_ir_code
params:
- FE0000000000000000000000000500322257003600A701BC036E13883201000000000000000001010101010101010100000000000000000101010101010101000000000000000001010101010104F4 # IR Code
- service: input_boolean.turn_off
target:
entity_id: input_boolean.woshi_fan_state
set_percentage:
service: xiaomi_miot.send_command
data:
entity_id: climate.kong_diao_cha_zuo_air_conditioner # 实体ID
method: send_ir_code
params:
- FE00000000000000000000000006003222580033003C00A901BA0370138843020101000101010100020202020202020202020101000101010000020202020202020201010100000101010202020202056A # IR Code
set_preset_mode: #模式
service: xiaomi_miot.send_command
data:
entity_id: climate.kong_diao_cha_zuo_air_conditioner # 实体ID
method: send_ir_code
params:
- FE000000000000000000000000080036225E003500A800DF01BD0370052E13882523430100000000000000000101010101010100000000010001000101010100010001000000000100010001010101000100010542074206F4 # IR Code
switch:
- platform: template
switches:
lumi_acpartner_ir:
friendly_name: "空调开关"
value_template: "{{ is_state('climate.kong_diao_cha_zuo_air_conditioner', 'on') }}"
turn_on:
service: climate.turn_on
target:
entity_id: climate.kong_diao_cha_zuo_air_conditioner # 实体ID
turn_off:
service: xiaomi_miot.send_command
data:
entity_id: climate.kong_diao_cha_zuo_air_conditioner # 实体ID
method: send_ir_code
params:
- FE00978022222194701fff7F0507008C27DA003C00A801C4038107D40FA913883201000000000000000100010100000000000000000000000100000000010001000001000400000000000000000000000000010000000000000000000000000000000100010532010000000000000001000101000000000000000000000001000000000101010000010004000000000000000000000000000000000000000000000000000000000000000106E7 # IR Code |
A大,您说:如果没有小爱同学,可以通过修改版米家APP获取空调伴侣的发送红外的miio命令,然后通过xiaomi_miot.send_command服务执行miio命令。这个怎么抓取命令 |
Aqara空调伴侣(升级版) 可以接入和控制,设备信息为
lumi.acpartner.v3 by lumi
。我想自定义关闭空调的红外码。点击“关闭”时发送
FE00978022222194701fff7F0507008C27DA003C00A801C4038107D40FA913883201000000000000000100010100000000000000000000000100000000010001000001000400000000000000000000000000010000000000000000000000000000000100010532010000000000000001000101000000000000000000000001000000000101010000010004000000000000000000000000000000000000000000000000000000000000000106E7
想请教如何实现。
另外,Aqara空调伴侣(升级版)可以发送红外控制其他电器。比如控制风扇。请问如何设置?
初次使用HomeAssistant,有点一头雾水,请见谅。
The text was updated successfully, but these errors were encountered: