Hello, I am new to HA and for a while now I have problems that energy consumption sensors are creating occasionally wrong readings - exorbitant high positive and/or negative values. I tried to restrict my energy sensors to a certain range with allowed min/max values in the configuration.yaml.
I have googled other posts with this similar problem but I could’t understand the code properly and also couldn’t apply their solutions to my problem.
That are my configuration warnings from developer settings-YAML:
Invalid config for 'filter' from integration 'sensor' at configuration.yaml, line 20: not a valid value for dictionary value 'filters->1->filter', got 'out_of_range'
Invalid config for 'filter' from integration 'sensor' at configuration.yaml, line 21: 'low' is an invalid option for 'sensor.filter', check: filters->1->low
Invalid config for 'filter' from integration 'sensor' at configuration.yaml, line 22: 'high' is an invalid option for 'sensor.filter', check: filters->1->high
Invalid config for 'filter' from integration 'sensor' at configuration.yaml, line 31: not a valid value for dictionary value 'filters->1->filter', got 'out_of_range'
Invalid config for 'filter' from integration 'sensor' at configuration.yaml, line 32: 'low' is an invalid option for 'sensor.filter', check: filters->1->low
Invalid config for 'filter' from integration 'sensor' at configuration.yaml, line 33: 'high' is an invalid option for 'sensor.filter', check: filters->1->high
Invalid config for 'filter' from integration 'sensor' at configuration.yaml, line 42: not a valid value for dictionary value 'filters->1->filter', got 'out_of_range'
Invalid config for 'filter' from integration 'sensor' at configuration.yaml, line 43: 'low' is an invalid option for 'sensor.filter', check: filters->1->low
Invalid config for 'filter' from integration 'sensor' at configuration.yaml, line 44: 'high' is an invalid option for 'sensor.filter', check: filters->1->high
Invalid config for 'filter' from integration 'sensor' at configuration.yaml, line 53: not a valid value for dictionary value 'filters->1->filter', got 'out_of_range'
Invalid config for 'filter' from integration 'sensor' at configuration.yaml, line 54: 'low' is an invalid option for 'sensor.filter', check: filters->1->low
Invalid config for 'filter' from integration 'sensor' at configuration.yaml, line 55: 'high' is an invalid option for 'sensor.filter', check: filters->1->high
Invalid config for 'filter' from integration 'sensor' at configuration.yaml, line 64: not a valid value for dictionary value 'filters->1->filter', got 'out_of_range'
Invalid config for 'filter' from integration 'sensor' at configuration.yaml, line 65: 'low' is an invalid option for 'sensor.filter', check: filters->1->low
Invalid config for 'filter' from integration 'sensor' at configuration.yaml, line 66: 'high' is an invalid option for 'sensor.filter', check: filters->1->high
Here’s my configuration.yaml:
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor:
- platform: filter
name: "Bitshake Aktueller Verbrauch"
entity_id: sensor.bitshake_smartmeterreader_mt175_power_curr
filters:
- filter: time_simple_moving_average
window_size: 10
precision: 1
- filter: out_of_range
low: 0
high: 7000
- platform: filter
name: "Bitshake Einspeisung"
entity_id: sensor.bitshake_smartmeterreader_mt175_total_out
filters:
- filter: time_simple_moving_average
window_size: 10
precision: 1
- filter: out_of_range
low: 0
high: 200
- platform: filter
name: "Bitshake Verbrauch"
entity_id: sensor.bitshake_smartmeterreader_mt175_total_in
filters:
- filter: time_simple_moving_average
window_size: 10
precision: 1
- filter: out_of_range
low: 0
high: 50000
- platform: filter
name: "BKW aktuell"
entity_id: sensor.tasmota_energy_power
filters:
- filter: time_simple_moving_average
window_size: 10
precision: 1
- filter: out_of_range
low: 0
high: 600
- platform: filter
name: "BKW heute"
entity_id: sensor.tasmota_energy_today
filters:
- filter: time_simple_moving_average
window_size: 10
precision: 1
- filter: out_of_range
low: 0
high: 10
I’d be ever so greatful if someone could help me a working configuration.yaml.
Thank you