Changed pulse counter configuration to updated expample sketch by iotdevices, removed api-password.
This commit is contained in:
parent
b0a8c08983
commit
5235e48023
@ -22,7 +22,6 @@ logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
password: !secret api
|
||||
encryption:
|
||||
key: !secret apikey
|
||||
|
||||
@ -59,6 +58,10 @@ sensor:
|
||||
count_mode:
|
||||
rising_edge: DISABLE
|
||||
falling_edge: INCREMENT
|
||||
# Hardware counter alows only 13us debounce, so we set it OFF:
|
||||
use_pcnt: False
|
||||
# When hw counter is OFF then we may set our filter time to SBM20 190 us Deadtime value or any other (also in microseconds):
|
||||
internal_filter: 190us
|
||||
update_interval: 60s
|
||||
accuracy_decimals: 3
|
||||
id: dose_meter
|
||||
@ -66,7 +69,7 @@ sensor:
|
||||
- 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 µSv/Hour
|
||||
- multiply: 0.0057 # SBM20 tube conversion factor of pulses into µSv/Hour
|
||||
- platform: integration
|
||||
name: "Gesamte Strahlungsdosis"
|
||||
unit_of_measurement: "µSv"
|
||||
@ -75,7 +78,9 @@ sensor:
|
||||
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, µSv.
|
||||
# obtained dose. Converting from mkSv/hour into mkSv/minute: [mkSv/h / 60] OR [mkSv/h * 0.0166666667].
|
||||
# if my_dose_meter in CPM, then [0.0054 / 60 minutes] = 0.00009; so CPM * 0.00009 = dose every next minute, mkSv.
|
||||
- multiply: 0.0166666667
|
||||
text_sensor:
|
||||
- platform: homeassistant
|
||||
entity_id: sun.sun
|
||||
|
Loading…
Reference in New Issue
Block a user