Added geigercounter and display it on epaperframe.
This commit is contained in:
69
esphome/geigercounter.yaml
Normal file
69
esphome/geigercounter.yaml
Normal file
@@ -0,0 +1,69 @@
|
||||
esphome:
|
||||
name: geigercounter
|
||||
platform: ESP32
|
||||
board: nodemcu-32s
|
||||
|
||||
wifi:
|
||||
ssid: "Voltage-legacy"
|
||||
password: !secret voltage_legacy_psk
|
||||
use_address: geigercounter.home
|
||||
power_save_mode: high
|
||||
fast_connect: on
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Geigercounter Fallback Hotspot"
|
||||
password: !secret fallback_psk
|
||||
|
||||
captive_portal:
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
password: !secret api
|
||||
encryption:
|
||||
key: !secret apikey
|
||||
|
||||
ota:
|
||||
password: !secret ota
|
||||
|
||||
spi:
|
||||
clk_pin: 16
|
||||
mosi_pin: 19
|
||||
|
||||
display:
|
||||
- platform: max7219
|
||||
cs_pin: 5
|
||||
num_chips: 1
|
||||
lambda: |-
|
||||
it.print("01234567");
|
||||
|
||||
# Here we calc and include to the firmware a power and doze values of ionizing radiation as sensor outputs
|
||||
sensor:
|
||||
- platform: pulse_counter
|
||||
pin: 23
|
||||
unit_of_measurement: "µSv/h"
|
||||
name: "Radioaktive Strahlungsleistung"
|
||||
icon: "mdi:radioactive"
|
||||
count_mode:
|
||||
rising_edge: DISABLE
|
||||
falling_edge: INCREMENT
|
||||
update_interval: 60s
|
||||
accuracy_decimals: 3
|
||||
id: dose_meter
|
||||
filters:
|
||||
- sliding_window_moving_average: # 5-minutes moving average (MA5) here
|
||||
window_size: 5
|
||||
send_every: 1
|
||||
- multiply: 0.0054 # SBM20 tube conversion factor of pulses into mkSv/Hour
|
||||
- platform: integration
|
||||
name: "Gesamte Strahlungsdosis"
|
||||
unit_of_measurement: "µSv"
|
||||
sensor: dose_meter # link entity id to the pulse_counter values above
|
||||
icon: "mdi:radioactive"
|
||||
accuracy_decimals: 5
|
||||
time_unit: min # integrate values every next minute
|
||||
filters:
|
||||
- multiply: 0.00009 # obtained doze (from mkSv/hour into mkSv/minute) conversion factor: 0.0054 / 60 minutes = 0.00009; so pulses * 0.00009 = doze every next minute, mkSv.
|
Reference in New Issue
Block a user