-
Notifications
You must be signed in to change notification settings - Fork 1
/
lora_receiver.yaml
73 lines (62 loc) · 1.53 KB
/
lora_receiver.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
esphome:
name: lora_receiver
platform: ESP32
board: heltec_wifi_lora_32_V2
includes:
- lora_gateway.h
libraries:
- "LoRa"
- "SPI"
- "CryptoLW"
- "Crypto"
- "ArduinoJson-esphomelib"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pass
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Lora Receiver Fallback Hotspot"
password: !secret hotspot_pass
#mqtt:
# broker: !secret mqtt_broker
# username: !secret mqtt_user
# password: !secret mqtt_pass
captive_portal:
web_server:
port: 80
# Enable logging
logger:
# Enable Home Assistant API
#api:
# password: !secret esphome_password
ota:
password: !secret esphome_password
# Enable SPI for LoRa
#spi:
# clk_pin: GPIO18
# mosi_pin: GPIO23
# miso_pin: GPIO19
sensor:
- platform: custom
lambda: |-
auto lora_sensor = new MyLoRaSensors();
App.register_component(lora_sensor);
return {lora_sensor->mbox_sensor_post,
lora_sensor->mbox_sensor_msg,
lora_sensor->mbox_sensor_rssi,
lora_sensor->mbox_sensor_vbat};
sensors:
- name: "Mailbox"
accuracy_decimals: 0
icon: mdi:email-box
- name: "Mailboxsender: Message #"
accuracy_decimals: 0
icon: mdi:message-processing-outline
- name: "Mailboxsender: Signal"
unit_of_measurement: dBm
accuracy_decimals: 0
icon: mdi:signal
- name: "Mailboxsender: Battery"
unit_of_measurement: V
accuracy_decimals: 3
icon: mdi:battery