Skip to content

Instantly share code, notes, and snippets.

@cpyarger
Created March 31, 2022 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cpyarger/16f4184e92230653ab1363b7a5ee2a7a to your computer and use it in GitHub Desktop.
Save cpyarger/16f4184e92230653ab1363b7a5ee2a7a to your computer and use it in GitHub Desktop.
New RFBridge code
esphome:
name: rfbridge
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Rfbridge Fallback Hotspot"
password: !secret wifi_password
globals:
- id: rf_code
type: char[10]
captive_portal:
web_server:
port: 80
ota:
api:
uart:
tx_pin: 1
rx_pin: 3
baud_rate: 19200
logger:
baud_rate: 0
rf_bridge:
on_code_received:
then:
# Simple
- homeassistant.tag_scanned: !lambda |-
return esphome::to_string(data.code) ;
sensor:
- platform: wifi_signal
name: RF Bridge WIFI Signal
update_interval: 120s
- platform: uptime
name: Bridge Uptime
update_interval: 120s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment