forked from docteurzoidberg/my-esphome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
idslorareceiver.yaml
executable file
·56 lines (52 loc) · 1.41 KB
/
idslorareceiver.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
substitutions:
devicename: "idslorareceiver"
friendly_name: "IDS Lora receiver"
esphome:
name: $devicename
build_path: build/$devicename
platform: ESP32
board: heltec_wifi_lora_32_V2
includes:
- src/custom_ids_lora_receiver/custom_ids_lora_receiver.h
- src/custom_ids_lora_receiver/images.h
- src/custom_ids_lora_receiver/myoleddisplay.h
- src/custom_ids_lora_receiver/structures.h
- src/custom_ids_lora_receiver/myoleddisplay.cpp
libraries:
- "LoRa"
- "ESP8266_SSD1306"
wifi: !include "common/wifi.yaml"
captive_portal:
logger:
api:
ota:
sensor:
- platform: custom
lambda: |-
auto ids_lora_receiver = new IDSLoraReceiver();
App.register_component(ids_lora_receiver);
return {
ids_lora_receiver->ids_device_batt_voltage,
ids_lora_receiver->ids_device_batt_percent,
ids_lora_receiver->ids_device_batt_islow,
ids_lora_receiver->ids_device_pir_state,
ids_lora_receiver->ids_device_alarm_isactive
};
sensors:
- name: "IDS battery voltage"
accuracy_decimals: 1
icon: mdi:battery
unit_of_measurement: v
- name: "IDS battery percentage"
accuracy_decimals: 1
icon: mdi:percent
unit_of_measurement: '%'
- name: "IDS battery is low"
accuracy_decimals: 0
icon: mdi:battery
- name: "IDS PIR state"
accuracy_decimals: 0
icon: mdi:eye
- name: "IDS Alarm is active"
accuracy_decimals: 0
icon: mdi:bell