-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathlora_mqtt_bridge.yaml
46 lines (39 loc) · 1.27 KB
/
lora_mqtt_bridge.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
esphome:
name: now-lora-mqtt-bridge
esp32:
board: esp32dev
variant: esp32
framework:
type: arduino
logger:
# import the components
external_components:
- source:
type: git
url: https://github.com/u-fire/ESPHomeComponents/
# Setup SPI for the LoRa radio https://esphome.io/components/spi.html
spi:
clk_pin: GPIO05
mosi_pin: GPIO27
miso_pin: GPIO19
lora_mqtt_bridge:
cs_pin: GPIO18 # chip-select pin for LoRa radio, defaults to 18
reset_pin: GPIO14 # reset pin for LoRa radio, defaults to 14
dio_pin: GPIO26 # DIO0 pin for LoRa radio, defaults to 26
frequency: 915000000 # frequency to use, defaults to 915 MHz
# the options below are very dependent on your particular board and chip
# not all combinations work
# sync: 0xF3 # sets the sync word, defaults to 0x12
# coding: 5 # sets the coding rate, defaults to 5
# bandwidth: 250000 # sets the bandwidth, defaults to 125,000
# spread: 12 # sets the spread, defaults to 7
# ESP-Now bridge works concurrently
now_mqtt_bridge:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
mqtt:
id: mqtt_broker
broker: !secret mqtt_broker
username: !secret mqtt_username
password: !secret mqtt_password