Can anyone help me trouble shoot? I seem to be able to recieve but not send codes.
The reading of codes appears to be pretty reliable, but no luck when I try to transmit them (although I can both see the action in the logs, and when I hit the RF remote, the binary sensors are triggered).
I see the red led on sonoff bridge flash when triggered via hassio switch…
I’m pretty new to this.
What can I try or do to trouble shoot?
Thank you…
Edit: I aslo just noticed that the ‘Up’ codes are the same as the ‘Down’ codes, so maybe it’s not decoding properly?
esphome:
name: sonoff_rf_bridge
platform: ESP8266
board: esp01_1m
wifi:
ssid: "xxxxxxxxxxxxx"
password: "xxxxx"
manual_ip:
static_ip: xxxxxxxxxx
gateway: xxxxxxxxxxxxx
subnet: xxxxxxxxxxxxxxxx
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
remote_receiver:
pin:
number: 4
dump: rc_switch
filter: 100us
tolerance: 50%
idle: 4ms
buffer_size: 2kb
remote_transmitter:
pin: 5
carrier_duty_percent: 100%
switch:
- platform: template
name: Gong Remote
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '011010101010110111101111'
protocol: 6
repeat:
times: 10
wait_time: 50ms
- platform: template
name: Blinds Up
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '00001011100110101011111011001000'
protocol: 1
repeat:
times: 5
##These are variants I was testing with. Occasionally these were decoded..
- platform: template
name: Blinds Up5
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '01001011100110101011111011001000'
protocol: 5
repeat:
times: 5
- platform: template
name: Blinds Up3
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '01001011100110101011111011001000'
protocol: 3
repeat:
times: 5
binary_sensor:
- platform: status
name: "RF Bridge Status"
- platform: remote_receiver
name: "Blinds Up"
rc_switch_raw:
code: '00001011100110101011111011001000'
protocol: 1
filters:
- delayed_off: 500ms
- platform: remote_receiver
name: "Blinds Up5"
rc_switch_raw:
code: '01001011100110101011111011001000'
protocol: 5
filters:
- delayed_off: 500ms
- platform: remote_receiver
name: "Blinds Up3"
rc_switch_raw:
code: '01001011100110101011111011001000'
protocol: 3
filters:
- delayed_off: 500ms
status_led:
pin:
number: GPIO13
inverted: yes
logs indicate that codes are being transmitted
INFO Reading configuration...
INFO Starting log output from XX using esphome API
INFO Connecting to XXX (XXXX
INFO Successfully connected to XXXXXXXXXXX
[14:56:50][I][app:096]: esphome version 1.13.6 compiled on Aug 17 2019, 14:42:53
[14:56:51][C][status_led:019]: Status LED:
[14:56:51][C][status_led:020]: Pin: GPIO13 (Mode: OUTPUT, INVERTED)
[14:56:51][C][wifi:372]: WiFi:
[14:56:51][C][wifi:254]: SSID: [redacted]
[14:56:51][C][wifi:255]: IP Address: XXXXXXXXX
[14:56:51][C][wifi:257]: BSSID: [redacted]
[14:56:51][C][wifi:258]: Hostname: 'sonoff_rf_bridge'
[14:56:51][C][wifi:262]: Signal strength: -56 dB ▂▄▆█
[14:56:51][C][wifi:263]: Channel: 11
[14:56:51][C][wifi:264]: Subnet: XXXXXXXXXXX
[14:56:51][C][wifi:265]: Gateway: XXXXXXXXXXXX
[14:56:51][C][wifi:266]: DNS1: 0.0.0.0
[14:56:51][C][wifi:267]: DNS2: 0.0.0.0
[14:56:51][C][template.switch:058]: Template Switch 'Gong Remote'
[14:56:51][C][template.switch:059]: Restore State: NO
[14:56:51][C][template.switch:060]: Optimistic: NO
[14:56:51][C][template.switch:058]: Template Switch 'Blinds Up'
[14:56:51][C][template.switch:059]: Restore State: NO
[14:56:51][C][template.switch:060]: Optimistic: NO
[14:56:51][C][template.switch:058]: Template Switch 'Blinds Up5'
[14:56:51][C][template.switch:059]: Restore State: NO
[14:56:51][C][template.switch:060]: Optimistic: NO
[14:56:51][C][template.switch:058]: Template Switch 'Blinds Up3'
[14:56:51][C][template.switch:059]: Restore State: NO
[14:56:51][C][template.switch:060]: Optimistic: NO
[14:56:51][C][logger:137]: Logger:
[14:56:51][C][logger:138]: Level: DEBUG
[14:56:51][C][logger:139]: Log Baud Rate: 115200
[14:56:51][C][logger:140]: Hardware UART: UART0
[14:56:51][C][status:034]: Status Binary Sensor 'RF Bridge Status'
[14:56:51][C][status:034]: Device Class: 'connectivity'
[14:56:51][C][remote_base:017]: Remote Receiver Binary Sensor 'Blinds Up'
[14:56:51][C][remote_base:017]: Remote Receiver Binary Sensor 'Blinds Up5'
[14:56:51][C][remote_base:017]: Remote Receiver Binary Sensor 'Blinds Up3'
[14:56:51][C][remote_transmitter:018]: Remote Transmitter...
[14:56:51][C][remote_transmitter:019]: Carrier Duty: 100%
[14:56:51][C][remote_transmitter:020]: Pin: GPIO5 (Mode: OUTPUT)
[14:56:51][C][remote_receiver.esp8266:059]: Remote Receiver:
[14:56:51][C][remote_receiver.esp8266:060]: Pin: GPIO4 (Mode: INPUT)
[14:56:51][C][remote_receiver.esp8266:065]: Buffer Size: 2000
[14:56:51][C][remote_receiver.esp8266:066]: Tolerance: 50%
[14:56:51][C][remote_receiver.esp8266:067]: Filter out pulses shorter than: 100 us
[14:56:51][C][remote_receiver.esp8266:068]: Signal is done after 4000 us of no changes
[14:56:51][C][ota:029]: Over-The-Air Updates:
[14:56:51][C][ota:030]: Address: XXXXXXXXXXXX
[14:56:51][C][api:103]: API Server:
[14:56:51][C][api:104]: Address: XXXXXXXXXXXXX
[14:58:06][D][switch:021]: 'Blinds Up' Turning ON.
[14:58:06][D][remote_transmitter:066]: Sending remote code...
[14:58:20][D][switch:021]: 'Blinds Up' Turning ON.
[14:58:20][D][remote_transmitter:066]: Sending remote code...
[14:58:06][D][switch:021]: 'Blinds Up' Turning ON.
[14:58:06][D][remote_transmitter:066]: Sending remote code...
[14:58:20][D][switch:021]: 'Blinds Up' Turning ON.
[14:58:20][D][remote_transmitter:066]: Sending remote code...
[15:01:36][D][binary_sensor:033]: 'Blinds Up': Sending state ON
[15:01:36][D][binary_sensor:033]: 'Blinds Up': Sending state OFF
[15:02:45][D][binary_sensor:033]: 'Blinds Up': Sending state ON
[15:02:45][D][binary_sensor:033]: 'Blinds Up': Sending state OFF
[15:02:50][D][binary_sensor:033]: 'Blinds Up': Sending state ON
[15:02:50][D][binary_sensor:033]: 'Blinds Up': Sending state OFF