|
求助各位,已經搞了好久都搞不出來,
我原先參閱:https://bbs.hassbian.com/thread-3147-1-1.html,
已將紅外線碼都掃出來了,
但在實際使用上還是毫無反應,
主要是要加入到homekit內使用,
但連在HA內點擊都沒有反應...
能否幫我看一下哪裡出了問題嗎...
remote: #萬能搖控器
- platform: xiaomi_miio
name: "ir_remote"
host: 192.168.68.132
token: 4b03fc3fe663f2d73567fbcf6c617136
slot: 14
timeout: 30
hidden: false
switch:
- platform: template
switches:
tv_power:
friendly_name: "廁所電燈"
value_template: "{{ is_state_attr('switch.blind_toggle', 'sensor_state', 'on') }}"
turn_on:
service: remote.send_command
data:
entity_id: remote.ir_remote
command: FE0000000000000000000000000700102237003A004500A600EE01C0038A138843020122222102212101202220220156C7
turn_off:
service: remote.send_command
data:
entity_id: remote.ir_remote
command: FE0000000000000000000000000700102237003A004500A600EE01C0038A138843020122222102212101202220220156C7
|
|