My gas meter was allowed to use this device.
I tested it, but not with the gas meter, but with a magnet. It worked. The code below:
esp32:
board: nodemcu-32s
framework:
type: arduino
sensor:
- platform: pulse_counter
pin:
number: GPIO1
mode: INPUT_PULLUP
unit_of_measurement: 'pulse/min'
device_class: "gas"
state_class: "measurement"
icon: mdi:meter-gas
update_interval: 10s
accuracy_decimals: 2
name: 'gas (fordulat)'
use_pcnt: false
internal_filter: 0.3s
id: gas_fordulat
total:
accuracy_decimals: 2
unit_of_measurement: 'm³'
device_class: "gas"
icon: mdi:meter-gas-outline
state_class: total_increasing
name: 'gas teljes'
filters:
- multiply: 0.01 # (0.01 m3/ turn)
- platform: uptime
name: Uptime GAS Sensor
- platform: wifi_signal
name: "WiFi Signal GAS Sensor"
update_interval: 60s
I put it in place and incorrect measurements are also received.
I tried to set the internal_filter with not much result.
Does anyone have an idea?