generated from esphome/esphome-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
/
sonoff-rfbridge.yaml
46 lines (44 loc) · 981 Bytes
/
sonoff-rfbridge.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
substitutions:
name: sonoff-rfbridge
friendly_name: Sonoff RF Bridge
esphome:
name: $name
comment: Sonoff RF Bridge
name_add_mac_suffix: true
# This will allow for (future) project identification,
# configuration and updates.
project:
name: cpyarger.sonoff-rfbridge
version: "1.0"
esp8266:
board: esp01_1m
dashboard_import:
package_import_url: github:https://cpyarger/esphome-templates/sonoff-rfbridge.yaml@main
wifi:
# Set up a wifi access point
ap:
password: "12345678"
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 method for receiving codes in home assistant
- 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