Here’s my esphome yaml:
esphome:
name: sonoff-rf-bridge
friendly_name: Sonoff RF Bridge
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "insert key"
ota:
password: "insert password"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Sonoff-Rf-Bridge-2"
password: "insert password"
captive_portal:
sensor:
- platform: wifi_signal
name: Sonoff RF Bridge Wifi Signal
update_interval: 10s
- platform: uptime
name: Sonoff RF Bridge Uptime
remote_receiver:
pin:
number: 4
dump: raw
tolerance: 50%
filter: 200us
idle: 6ms
buffer_size: 3kb
remote_transmitter:
pin:
number: 5
carrier_duty_percent: 100%
status_led:
pin:
number: GPIO13
inverted: yes
cover:
- platform: template
name: "Awning Cover"
id: awning_cover
open_action:
- switch.turn_on: awning_relay_out
close_action:
- switch.turn_on: awning_relay_in
stop_action:
- switch.turn_on: awning_relay_stop
optimistic: false
switch:
- platform: template
name: Awning Out Switch
id: awning_relay_out
turn_on_action:
remote_transmitter.transmit_raw:
code: [4775, -1527, 691, -383, 329, -736, 691, -385, 688, -381, 330, -738, 689, -386, 327, -738, 691, -389, 328, -736, 332, -746, 332, -739, 691, -382, 329, -739, 332, -739, 331, -737, 692, -386, 331, -736, 334, -736, 334, -738, 329, -741, 331, -738, 694, -381, 328, -737, 332, -745, 698, -382, 689, -382, 326, -740, 334, -736, 332, -737, 333, -738, 331, -742, 692, -385, 328, -741, 331, -738, 332, -740, 689, -383, 329, -742, 328, -737, 333, -737, 693, -407, 4756, -1529, 693, -381, 329, -740, 689, -384, 690, -381, 330, -735, 693, -382, 332, -736, 692, -384, 330, -738, 332, -744, 334, -738, 689, -384, 330, -736, 332, -737, 333, -742, 690, -390, 325, -738, 333, -736, 333, -738, 333, -736, 333, -740, 690, -381, 330, -737, 331, -744, 700, -381, 692, -380, 329, -736, 335, -735, 335, -738, 331, -739, 332, -736, 691, -388, 329, -740, 332, -737, 333, -737, 694, -379, 330, -736, 335, -736, 334, -736, 691]
repeat:
times: 2
wait_time: 15ms
- platform: template
name: Awning Stop Switch
id: awning_relay_stop
turn_on_action:
remote_transmitter.transmit_raw:
code: [690, -384, 328, -738, 694, -380, 688, -383, 328, -738, 694, -380, 328, -741, 691, -384, 337, -729, 334, -738, 332, -738, 691, -381, 331, -739, 329, -739, 333, -738, 691, -387, 330, -739, 331, -738, 332, -739, 330, -740, 333, -736, 689, -384, 330, -739, 330, -748, 689, -381, 690, -384, 328, -740, 331, -735, 335, -734, 333, -738, 332, -737, 692, -388, 329, -740, 595, -478, 329, -740, 689, -384, 329, -738, 698, -375, 328, -739, 691, -402, 4754, -1531, 691, -386, 326, -739, 691, -381, 691, -381, 328, -737, 693, -384, 327, -740, 691, -385, 330, -738, 331, -739, 333, -739, 691, -381, 330, -736, 332, -741, 329, -740, 690, -386, 333, -736, 334, -736, 331, -738, 334, -736, 334, -737, 690, -381, 333, -736, 332, -744, 690, -384, 689, -381, 330, -739, 333, -735, 333, -739, 334, -735, 333, -738, 693, -384, 332, -737, 690, -384, 329, -739, 690, -383, 330, -741, 687, -383, 328, -739, 690, -401, 4755, -1533, 690, -384, 330, -736, 691, -384, 688, -384, 326, -739, 691, -382, 328, -739, 691, -388, 330, -738, 330, -738, 334, -737, 692, -381, 329, -739, 331, -737, 335, -735, 688, -391, 330, -740, 332, -734, 333, -738, 332, -738, 334, -736, 694, -381, 328, -738, 333, -743, 690, -385, 690, -380, 332, -741, 328, -737, 331, -736, 336, -734, 333, -739, 691, -389, 330, -736, 691, -384, 329, -736, 693, -385, 327, -740, 690, -381, 331, -737, 692]
repeat:
times: 2
wait_time: 15ms
- platform: template
name: Awning In Switch
id: awning_relay_in
turn_on_action:
remote_transmitter.transmit_raw:
code: [4755, -1531, 691, -383, 327, -741, 698, -381, 688, -386, 341, -729, 686, -381, 329, -738, 691, -387, 328, -741, 330, -740, 331, -741, 688, -382, 328, -742, 328, -742, 328, -740, 690, -387, 333, -736, 331, -747, 327, -741, 330, -740, 330, -741, 691, -384, 324, -741, 330, -750, 687, -383, 689, -387, 323, -741, 331, -736, 332, -738, 332, -740, 331, -738, 690, -388, 328, -740, 337, -742, 688, -384, 688, -381, 328, -740, 332, -739, 688, -385, 687, -403, 4755, -1533, 695, -378, 328, -738, 696, -383, 689, -383, 329, -741, 687, -385, 329, -741, 687, -387, 329, -739, 329, -745, 325, -742, 689, -382, 328, -739, 333, -738, 331, -740, 689, -389, 326, -741, 330, -746, 332, -739, 331, -739, 328, -743, 689, -382, 328, -739, 332, -746, 689, -381, 692, -380, 329, -740, 330, -741, 328, -744, 329, -738, 331, -739, 689, -390, 326, -741, 338, -741, 689, -386, 686, -381, 328, -739, 332, -738, 691, -382, 688]
repeat:
times: 2
wait_time: 15ms
button:
- platform: template
name: Collapse
icon: "mdi:arrow-expand-left"
on_press:
- remote_transmitter.transmit_raw:
code: [4755, -1531, 691, -383, 327, -741, 698, -381, 688, -386, 341, -729, 686, -381, 329, -738, 691, -387, 328, -741, 330, -740, 331, -741, 688, -382, 328, -742, 328, -742, 328, -740, 690, -387, 333, -736, 331, -747, 327, -741, 330, -740, 330, -741, 691, -384, 324, -741, 330, -750, 687, -383, 689, -387, 323, -741, 331, -736, 332, -738, 332, -740, 331, -738, 690, -388, 328, -740, 337, -742, 688, -384, 688, -381, 328, -740, 332, -739, 688, -385, 687, -403, 4755, -1533, 695, -378, 328, -738, 696, -383, 689, -383, 329, -741, 687, -385, 329, -741, 687, -387, 329, -739, 329, -745, 325, -742, 689, -382, 328, -739, 333, -738, 331, -740, 689, -389, 326, -741, 330, -746, 332, -739, 331, -739, 328, -743, 689, -382, 328, -739, 332, -746, 689, -381, 692, -380, 329, -740, 330, -741, 328, -744, 329, -738, 331, -739, 689, -390, 326, -741, 338, -741, 689, -386, 686, -381, 328, -739, 332, -738, 691, -382, 688]
repeat:
times: 2
wait_time: 15ms
- platform: template
name: Stop
icon: "mdi:stop"
on_press:
- remote_transmitter.transmit_raw:
code: [690, -384, 328, -738, 694, -380, 688, -383, 328, -738, 694, -380, 328, -741, 691, -384, 337, -729, 334, -738, 332, -738, 691, -381, 331, -739, 329, -739, 333, -738, 691, -387, 330, -739, 331, -738, 332, -739, 330, -740, 333, -736, 689, -384, 330, -739, 330, -748, 689, -381, 690, -384, 328, -740, 331, -735, 335, -734, 333, -738, 332, -737, 692, -388, 329, -740, 595, -478, 329, -740, 689, -384, 329, -738, 698, -375, 328, -739, 691, -402, 4754, -1531, 691, -386, 326, -739, 691, -381, 691, -381, 328, -737, 693, -384, 327, -740, 691, -385, 330, -738, 331, -739, 333, -739, 691, -381, 330, -736, 332, -741, 329, -740, 690, -386, 333, -736, 334, -736, 331, -738, 334, -736, 334, -737, 690, -381, 333, -736, 332, -744, 690, -384, 689, -381, 330, -739, 333, -735, 333, -739, 334, -735, 333, -738, 693, -384, 332, -737, 690, -384, 329, -739, 690, -383, 330, -741, 687, -383, 328, -739, 690, -401, 4755, -1533, 690, -384, 330, -736, 691, -384, 688, -384, 326, -739, 691, -382, 328, -739, 691, -388, 330, -738, 330, -738, 334, -737, 692, -381, 329, -739, 331, -737, 335, -735, 688, -391, 330, -740, 332, -734, 333, -738, 332, -738, 334, -736, 694, -381, 328, -738, 333, -743, 690, -385, 690, -380, 332, -741, 328, -737, 331, -736, 336, -734, 333, -739, 691, -389, 330, -736, 691, -384, 329, -736, 693, -385, 327, -740, 690, -381, 331, -737, 692]
repeat:
times: 2
wait_time: 15ms
- platform: template
name: Extend
icon: "mdi:arrow-expand-right"
on_press:
- remote_transmitter.transmit_raw:
code: [4775, -1527, 691, -383, 329, -736, 691, -385, 688, -381, 330, -738, 689, -386, 327, -738, 691, -389, 328, -736, 332, -746, 332, -739, 691, -382, 329, -739, 332, -739, 331, -737, 692, -386, 331, -736, 334, -736, 334, -738, 329, -741, 331, -738, 694, -381, 328, -737, 332, -745, 698, -382, 689, -382, 326, -740, 334, -736, 332, -737, 333, -738, 331, -742, 692, -385, 328, -741, 331, -738, 332, -740, 689, -383, 329, -742, 328, -737, 333, -737, 693, -407, 4756, -1529, 693, -381, 329, -740, 689, -384, 690, -381, 330, -735, 693, -382, 332, -736, 692, -384, 330, -738, 332, -744, 334, -738, 689, -384, 330, -736, 332, -737, 333, -742, 690, -390, 325, -738, 333, -736, 333, -738, 333, -736, 333, -740, 690, -381, 330, -737, 331, -744, 700, -381, 692, -380, 329, -736, 335, -735, 335, -738, 331, -739, 332, -736, 691, -388, 329, -740, 332, -737, 333, -737, 694, -379, 330, -736, 335, -736, 334, -736, 691]
repeat:
times: 2
wait_time: 15ms
I haven’t updated Esphome to the latest version so some formatting may be off.
Hope this helps!