本帖最后由 peter5858 于 2021-9-29 19:23 编辑
请问楼主,发射可以用吗?我只需要发射功能,按照你的程序发射不起作用,日志里有动作没数据,代码如下:
#======== 接收====
remote_receiver:
pin: GPIO04
dump:
- rc_switch
tolerance: 50%
filter: 200us
idle: 4ms
buffer_size: 1kb
#========发射======
remote_transmitter:
pin: GPIO32
carrier_duty_percent: 100%
switch:
- platform: template
name: 433射频2
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '11001101000010100101101000'
protocol: 1
repeat: 3
- platform: template
name: 433射频1
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '11001101000010100101100001'
protocol: 2
repeat: 3
[19:20:06][C][web_server:152]: Web Server:
[19:20:06][C][web_server:153]: Address: rf-ep32-433.local:80
[19:20:06][C][ota:029]: Over-The-Air Updates:
[19:20:06][C][ota:030]: Address: rf-ep32-433.local:3232
[19:20:06][C][api:135]: API Server:
[19:20:06][C][api:136]: Address: rf-ep32-433.local:6053
[19:20:38][D][switch:029]: '433射频2' Toggling ON.
[19:20:40][D][switch:029]: '433射频1' Toggling ON.
[D][api:095]: Accepted 192.168.2.17
[D][api.connection:735]: ESPHome Logs 2021.9.0 (192.168.2.17): Connected successfully
[D][switch:029]: '433射频2' Toggling ON.
[D][switch:029]: '433射频2' Toggling ON.
[D][switch:029]: '433射频1' Toggling ON.
|