Changed pulse counter configuration to updated expample sketch by iotdevices, removed api-password.

This commit is contained in:
Marcus Scholz 2023-02-02 17:46:36 +01:00
parent b0a8c08983
commit 5235e48023
1 changed files with 8 additions and 3 deletions

View File

@ -22,7 +22,6 @@ logger:
# Enable Home Assistant API # Enable Home Assistant API
api: api:
password: !secret api
encryption: encryption:
key: !secret apikey key: !secret apikey
@ -59,6 +58,10 @@ sensor:
count_mode: count_mode:
rising_edge: DISABLE rising_edge: DISABLE
falling_edge: INCREMENT 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 update_interval: 60s
accuracy_decimals: 3 accuracy_decimals: 3
id: dose_meter id: dose_meter
@ -66,7 +69,7 @@ sensor:
- sliding_window_moving_average: # 5-minutes moving average (MA5) here - sliding_window_moving_average: # 5-minutes moving average (MA5) here
window_size: 5 window_size: 5
send_every: 1 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 - platform: integration
name: "Gesamte Strahlungsdosis" name: "Gesamte Strahlungsdosis"
unit_of_measurement: "µSv" unit_of_measurement: "µSv"
@ -75,7 +78,9 @@ sensor:
accuracy_decimals: 5 accuracy_decimals: 5
time_unit: min # integrate values every next minute time_unit: min # integrate values every next minute
filters: 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: text_sensor:
- platform: homeassistant - platform: homeassistant
entity_id: sun.sun entity_id: sun.sun