Hi all, in my case psgaz said that they don’t allow to mount any external devices on the meter from some time ago (my meter is G4). But we’ll see how it evolves
Have you seen this summary/instructions? @szopen posted it a week ago.
Of course I did. It says that psgaz allowed to install unismart on the meter, but now they said to me that they don’t allow to do it at all.
Rozwijając bardziej temat podłączenia rejestratora MacR6 poprzez OC do urządzenia zliczającego. Supla poprzez Gui Generic Builder oraz do ESPHome kod poniżej.
esphome:
name: macr6-impulsator
friendly_name: MacR6 - impulsator
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "Af92J9/MX1mWcA1CMDd8wtkpjfb3/NeGkTbwydVok/I="
ota:
- platform: esphome
password: "d1f8a5bb8073c73c63896b91ff48ffc2"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# power_save_mode: HIGH # LIGHT, NONE
fast_connect: true
reboot_timeout: 10min
# output_power: 18dB # używać jeżeli zasilanie z baterii
# manual_ip:
# static_ip: 192.168.1.140
# gateway: 192.168.1.1
# subnet: 255.255.255.0
ap:
ssid: "MacR6 - impulsator Hotspot"
password: "123456789"
captive_portal:
web_server:
port: 80
text_sensor:
- platform: wifi_info
ip_address:
name: 'IP Address'
icon: mdi:wifi
ssid:
name: 'Connected SSID'
icon: mdi:wifi-strength-2
sensor:
- platform: wifi_signal
name: "WiFi Signal dB"
id: wifi_signal_db
update_interval: 60s
entity_category: "diagnostic"
- platform: pulse_counter
id: gas_pulse_counter
pin: GPIO14
# name: "Impulsy MacR6"
unit_of_measurement: "imp"
accuracy_decimals: 0
update_interval: 60s
filters:
- multiply: 1
total:
id: gas_pulse_counter_total
name: "Impulsy MacR6 - suma"
unit_of_measurement: "imp"
accuracy_decimals: 0
state_class: total_increasing
# - platform: template
# id: gas_total
# name: "Gaz - total (m³)"
# unit_of_measurement: "m³"
# accuracy_decimals: 2
# lambda: |-
# return id(gas_pulse_counter_total).state * 0.01;
# update_interval: 60s
# device_class: gas
# state_class: total_increasing
# filters:
# - offset: 8111.37 # aktualna wartość na liczniku gazowym
# można offset z zewnętrznego sensora, utwórz pomocnika typu NUMER nazwa gas_meter_m3 zakres od 0 do 99999 i 2 miejsca po przecinku
- platform: homeassistant
id: gas_meter_m3
entity_id: input_number.gas_meter_m3
- platform: template
name: "Gaz - total (m³)"
unit_of_measurement: "m³"
accuracy_decimals: 2
lambda: |-
if (isnan(id(gas_meter_m3).state)) {
return id(gas_pulse_counter_total).state * 0.01;
} else {
return (id(gas_pulse_counter_total).state * 0.01) + id(gas_meter_m3).state;
}
update_interval: 60s
device_class: gas
state_class: total_increasing
#D5/GPIO14 --------------- RÓŻOWY/CZERWONY
# | Pull-up 4.7kΩ
#3.3V ---------
#
#GND --------------------- BIAŁY
MacR6 podłączamy do tych wyjść:
A sam odbiornik jest banalnie prosty
finalnie wychodzi coś takiego
Jakby był ktoś zainteresowany testowym odczytem swojego gazomierza zapraszam do kontaktu na PV.
Jeśli to oferta sprzedaży, to powieś po prostu ogłoszenie we właściwym dziale z odpowiednią ilością informacji.
Did you mean by the previous post that you managed to use the pulse sensor connected to a MacR6? That should be a simple reed or double reed for detecting strong magnetic fields as well. Like it is inside the UniSmart.
The MacR6 has otherwise GSM output. And maybe some standard IR, like electricity meters used to have.
If you want, you can even modify a Aqara open/close sensor to work as pulse counter. The issue with gas metering is the fact that you need ATEX certification to install it.
The problem is that the MacR6 installed on the gas meter uses the only available outputs to which the pulser can be connected.
The impulse from the gas meter itself is too weak to be read by applying it to the counter. The MacR6 itself can also be read via the Opto-GAZ optical communication interface, e.g. via OptoBTEx connecting via Bluetooth.
In theory there is a second option. These gas meters should have a mirror which could be used with a light/IR pulse counter. (The magnet should have a reflective surface.)
Some contex here:
Tak dla potomnych, ponieważ też miałem problem z odczytem UNISMART przez rtl-sdr.
Wystarczyło skompilować od nowa bibliotekę rtl-wmbus i telegramy z UNISMART się pojawiły bez zmian konfiguracji wmbusmeters.
Only theoretically, because such gas meters are no longer produced, unless someone still has an old one after legalization.
Tylko teoretycznie bo takich gazomierzy się już nie produkuje, chyba, że ktoś ma jeszcze jakiś stary po legalizacji.
Mine still has the magnet that way. G4 gas meter from PGNIG.
The problem is still ATEX certification with all of these options…