各位大佬,我用esp01s配合继电器控制一个灯带,使用esphome,现在增加随意贴控制的功能,但是433射频模不管是接GPIO2还是3,都接收不到信号,但是这个模块我接到D1开发板上就没问题,哪位大佬指导一下,谢谢。
esphome的yaml文件如下:
esphome:
name: dengdai
friendly_name: dengdai
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "+ykehwOQigMXijMeOAkO1C5DoTHmEyUJ5eNoXnKJ6qQ="
ota:
password: "8888"
web_server:
port: 80
wifi:
ssid: "wifi"
password: "88888888"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "dengdai"
password: "88888888"
captive_portal:
binary_sensor:
- platform: remote_receiver
name: "rf_dengdai"
rc_switch_raw:
code: '110000000010110000101000'
protocol: 1
on_press:
then:
- switch.toggle: switch_dengdai
filters:
- delayed_off: 1000ms
switch:
- platform: gpio
pin: GPIO0
name: "switch_dengdai"
id: switch_dengdai
remote_receiver:
pin:
number: GPIO3
# inverted: true
mode:
input: true
# pullup: true
dump:
- rc_switch
tolerance: 50%
filter: 200us
idle: 4ms
buffer_size: 1kb
|