Last active
June 14, 2023 11:19
-
-
Save okurz/63970376a03493001f6f3919cae94e6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# # 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