Skip to content

Instantly share code, notes, and snippets.

@okurz
Last active June 14, 2023 11:19
Show Gist options
  • Save okurz/63970376a03493001f6f3919cae94e6b to your computer and use it in GitHub Desktop.
Save okurz/63970376a03493001f6f3919cae94e6b to your computer and use it in GitHub Desktop.
# # SPDX-License-Identifier: WTFPL
sensor:
- platform: pulse_meter
pin:
number: 2
inverted: True
unit_of_measurement: 'm³/h'
id: power_meter
device_class: "gas"
state_class: "measurement"
name: 'Gasdurchfluss'
internal_filter: 300ms
timeout: 80s
accuracy_decimals: 3
filters:
- multiply: 0.6
- lambda: |-
if (x <= 2.5) return x;
else return {};
total:
name: "verbrauchtes Gas"
id: total_gas
unit_of_measurement: "m³"
state_class: total_increasing
device_class: "gas"
accuracy_decimals: 3
filters:
- multiply: 0.01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment