
Case for a G4 RF1 gas meter with TCRT5000 sensor and WeMos D1 Mini.
thingiverse
Reading a G4 RF1 gas meter with TCRT5000 sensor and WeMos D1 Mini. Fits perfectly for a G4 RF1 gas meter Please refer: https://be-jo.net/2022/02/home-assistant-gaszaehler-mit-esphome-auslesen-flashen-unter-wsl/ https://www.amazon.de/gp/product/B0754HWZSQ/ref=ppx_yo_dt_b_asin_title_o04_s00?ie=UTF8&psc=1 https://www.amazon.de/gp/product/B08BBXDPK7/ref=ppx_yo_dt_b_asin_title_o04_s01?ie=UTF8&psc=1 My code for ESPHome (Home Assistant) works fine: ------------------------------------------------------------------------------ captive_portal: globals: - id: total_pulses type: int restore_value: true initial_value: '0' # startet mit 0 - id: imp_ratio type: float restore_value: false initial_value: '0.01' # vom Gaszaehler - id: Zustandszahl type: float restore_value: false initial_value: '0.9476' # aus der Gasrechnung - id: Brennwert type: float restore_value: false initial_value: '11.331' # aus der Gasrechnung - id: initial_energy_consumption type: float restore_value: false initial_value: id(Brennwert) * id(Zustandszahl) / 1000.0 binary_sensor: - platform: gpio id: internal_pulse_counter pin: number: D2 mode: INPUT_PULLUP name: "Live-Impuls" filters: - delayed_on: 100ms on_press: then: - lambda: id(total_pulses) += 1; sensor: - platform: template name: 'Gasverbrauch kWh' device_class: energy state_class: total_increasing update_interval : 10s icon: 'mdi:fire' id: gasverbrauch accuracy_decimals: 2 unit_of_measurement: "kWh" lambda: return id(initial_energy_consumption) + (id(total_pulses) * id(imp_ratio) * id(Brennwert) * id(Zustandszahl)); - platform: template name: "Gasverbrauch m³" device_class: gas update_interval : 10s unit_of_measurement: "m³" state_class: total_increasing icon: "mdi:fire" accuracy_decimals: 2 lambda: return (id(total_pulses) * id(imp_ratio)); - platform: template name: 'Anzahl Impulse total' update_interval : 10s icon: "mdi:counter" accuracy_decimals: 0 unit_of_measurement: "pulses" lambda: return id(total_pulses); - platform: wifi_signal name: "Gaszähler WiFi Signal" update_interval: 60s
With this file you will be able to print Case for a G4 RF1 gas meter with TCRT5000 sensor and WeMos D1 Mini. with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Case for a G4 RF1 gas meter with TCRT5000 sensor and WeMos D1 Mini..