-
Notifications
You must be signed in to change notification settings - Fork 2
/
radoneye.yaml
66 lines (55 loc) · 1.51 KB
/
radoneye.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
esphome:
name: radoneye_rd200
platform: ESP32
board: nodemcu-32s
includes:
- radoneye.h
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pass
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Radoneye Fallback Hotspot"
password: !secret hotspot_pass
logger:
# Enable Home Assistant API
api:
password: !secret esphome_password
ota:
password: !secret esphome_password
web_server:
port: 80
sensor:
- platform: custom
lambda: |-
auto my_radon = new RadonEye();
App.register_component(my_radon);
return {my_radon->radon_now, my_radon->radon_day, my_radon->radon_month};
sensors:
- name: "Radon now"
unit_of_measurement: pCi/L
accuracy_decimals: 2
filters:
- lambda: |-
float MIN_VALUE = 0.00;
float MAX_VALUE = 400.0;
if (MIN_VALUE <= x && x <= MAX_VALUE) return x;
else return {};
- name: "Radon day"
unit_of_measurement: pCi/L
accuracy_decimals: 2
filters:
- lambda: |-
float MIN_VALUE = 0.00;
float MAX_VALUE = 400.0;
if (MIN_VALUE <= x && x <= MAX_VALUE) return x;
else return {};
- name: "Radon month"
unit_of_measurement: pCi/L
accuracy_decimals: 2
filters:
- lambda: |-
float MIN_VALUE = 0.00;
float MAX_VALUE = 400.0;
if (MIN_VALUE <= x && x <= MAX_VALUE) return x;
else return {};