46
595
4423
元老级技术达人
esphome: name: esp_infra_red platform: ESP8266 board: esp8285 wifi: ssid: "家里wifi名" password: "家里wifi密码" #手动配置ip地址,后面方便ota升级 manual_ip: static_ip: 192.168.2.33 #地址更具实际修改 gateway: 192.168.2.1 subnet: 255.255.255.0 # Enable logging logger: # Enable Home Assistant API api: password: "集成到ha的密码" ota: password: "ota升级的密码" #开启web服务 web_server: port: 80 remote_receiver: pin: GPIO14 dump: all
binary_sensor: - platform: remote_receiver name: "ir_button_1" raw: code: [-9223, 4482, -663, 469, -628, 506, -623, 507, -619, 514, -659, 474, -659, 470, -661, 472, -657, 473, -652, 1588, -658, 1601, -655, 1607, -635, 1602, -661, 1603, -660, 1602, -661, 1602, -663, 1602, -635, 1602, -659, 474, -595, 1667, -596, 560, -572, 559, -626, 506, -623, 1616, -595, 558, -573, 560, -659, 1579, -659, 497, -623, 1613, -661, 1602, -664, 1603, -658, 471, -659, 1603, -656]
- id: '1599654107635' alias: 自动化测试 description: '米家自定义按钮控制HA中的灯' trigger: - entity_id: binary_sensor.ir_button_1 from: 'off' platform: state to: 'on' condition: [] action: - data: {} entity_id: switch.esp_relay_chufang service: switch.turn_on mode: single
使用道具 举报
0
79
1596
金牌会员
wwjw 发表于 2020-9-11 12:58 很详细的教程,又多了一个选择。我是借鉴了https://bbs.hassbian.com/thread-9628-1-1.html这位大咖的方法 ...
5
118
750
高级会员
251114061 发表于 2020-10-17 15:59 请问楼主,不用万能遥控器行不行,我有红外控制版的小爱音箱
251114061 发表于 2020-10-16 21:49 楼主,我按照你的方法,esp8285通电后,日志显示一直收到信号像下图那样,而且按键收到的信息两次不一样, ...
10
314
1674
yzxwxl 发表于 2020-11-2 21:42 只是开,如果要关怎么写
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2025-5-5 09:14 , Processed in 0.780682 second(s), 26 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.