Created
March 31, 2022 22:08
-
-
Save cpyarger/16f4184e92230653ab1363b7a5ee2a7a to your computer and use it in GitHub Desktop.
New RFBridge code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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