Comments (12)
@cococheaf Ist kein Problem, die Warnung kannst du ignorieren.
from esphome-dlms-meter.
Yes, just use GPIO16. This is RXD from it's second Hardware Serial.
from esphome-dlms-meter.
Hi Domi, liebe Grüße aus Höchst!
Ein super Projekt, das hat mir schonmal sehr weitergeholfen - danke dafür!
Eine Frage habe ich aber dennoch: bei der Validation des Codes im ESPHome wirft er mir folgendes aus:
INFO Reading configuration /config/esphome/smartmeter.yaml...
WARNING GPIO4 is a Strapping PIN and should be avoided.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Configuration is valid!
Ist das ein Problem oder kann ich den GPIO4 dennoch problemlos verwenden?
Danke und LG - André
from esphome-dlms-meter.
@cococheaf Ist kein Problem, die Warnung kannst du ignorieren.
Ich danke dir!
LG
from esphome-dlms-meter.
Hallo,
Liebe Grüße aus Dornbirn. Super Projekt! ich bin begeistert.
Versuche gerade das Ding auch zum laufen zu bringen.
Compilen hat funtkioniert! nun bekomme ich aber trotzdem keine Daten aus dem Zähler.
ESP32 ist über IP Adresse erreichbar - MQTT Verbindung wird hergestellt.
Ich verwende diesen ESP32 AZDelivery ESP32 Dev Kit C V4 NodeMCU WLAN WiFi
Welche Pins müssen bzw. können hier für RX/TX verwendet werden?
https://m.media-amazon.com/images/I/714PSaVZQtL._SL1500_.jpg
Ich habs jetzt mal mit GPIO 16/17 probiert.
Dann muss ich doch auch den Eintrag in der yaml dementsprechend ändern.
uart:
tx_pin: GPIO17
rx_pin: GPIO16
baud_rate: 2400
rx_buffer_size: 1024 # Needed to receive the large packets send by the smart meter
id: mbus
Kann es sein, dass der Code der VKW nicht mehr aktuell ist?
Habe den Code bereits im Jänner angefordert und bekommen.
LG andy
from esphome-dlms-meter.
@andreasfurxer Der ESP32 hat mehrere UART-Schnittstellen. UART2 ist TX GPIO16 und RX GPIO17, du könntest also probieren RX und TX bei dir zu tauschen.
Kann es sein, dass der Code der VKW nicht mehr aktuell ist?
Habe den Code bereits im Jänner angefordert und bekommen.
Du meinst den Schlüssel zum Entschlüsseln? Würde mich wundern wenn der sich ändert.
from esphome-dlms-meter.
TX und RX hab ich mal getauscht. Läuft aber trotzdem nicht.
"Received packet with invalid size" wird mir beim Start jedes mal angezeigt.
from esphome-dlms-meter.
Hey guys,
just found this project wanted to give it a try, but I'm not yet fully familiar with the ESP32 family or ESPhome.
So I thought I could just ask you instead of spending a lot of time figuring this out by myself...
I found an old "AZDelivery D1 Mini NodeMcu ESP8266" from a previous project in my workshop and was wondering if it would also work with this board...
https://m.media-amazon.com/images/I/71b9yM7dFlL._AC_SX679_.jpg
If so, which pins should I choose for the serial?
From what I have found GPIO4 would be TXD1 but it seems the RXT1 is not available on this board and the pins 7 & 8 (RXD2 and TXD2) seem to be used for the flash interface.
Could I configure some other pins and use some kind of UART emulation or maybe somehow use TXD0 and RXD0?
Thanks in advance for your help
Edit:
Seems I found the answer myself. On ESP8266 it should always be software serial... so I will try to connect everything together and get it running. Wish me luck :-)
from esphome-dlms-meter.
@lechndo
I also want to use the same board like you. At the moment I am using GPIO 1 and 3, but its not working.
Not sure if the logger of esphome is the reason (deactivated with baudrate 0), or the wiring.
So which GPIOs are you using?
from esphome-dlms-meter.
@lechndo I also want to use the same board like you. At the moment I am using GPIO 1 and 3, but its not working. Not sure if the logger of esphome is the reason (deactivated with baudrate 0), or the wiring. So which GPIOs are you using?
Hi @daowa89,
sorry for the delayed answer, but a lot was going lately and I just forgot to answer... 🤦♂️
I finally have a setup that works.
I connected D1 to the adapter boards TX and D2 to the adapters RX pin.
In the config I entered the usual things according to my setup (WiFi, smart meter key, MQTT IP, etc.).
The most important thing was to set the correct board
esp8266:
board: d1_mini
and to configure the serial according to the chosen pins.
uart:
tx_pin: D1
rx_pin: D2
baud_rate: 2400
rx_buffer_size: 2048 # Needed to receive the large packets send by the smart meter
id: mbus
The correct pin naming is important because the pin names Dx, labeled on the board are not the actual ESP GPIOx and the short names also only work with the correct board.
I'm not sure if the GPIO numbers are correct, but from the pinout picture in my last post it seems that D1 is actually GPIO20 and D2 is GPIO19, etc.
I hope this will be helpful for someone 😉
from esphome-dlms-meter.
@lechndo I also want to use the same board like you. At the moment I am using GPIO 1 and 3, but its not working. Not sure if the logger of esphome is the reason (deactivated with baudrate 0), or the wiring. So which GPIOs are you using?
Hi @daowa89, sorry for the delayed answer, but a lot was going lately and I just forgot to answer... 🤦♂️
I finally have a setup that works. I connected D1 to the adapter boards TX and D2 to the adapters RX pin.
In the config I entered the usual things according to my setup (WiFi, smart meter key, MQTT IP, etc.). The most important thing was to set the correct board
esp8266: board: d1_miniand to configure the serial according to the chosen pins.
uart: tx_pin: D1 rx_pin: D2 baud_rate: 2400 rx_buffer_size: 2048 # Needed to receive the large packets send by the smart meter id: mbusThe correct pin naming is important because the pin names Dx, labeled on the board are not the actual ESP GPIOx and the short names also only work with the correct board. I'm not sure if the GPIO numbers are correct, but from the pinout picture in my last post it seems that D1 is actually GPIO20 and D2 is GPIO19, etc.
I hope this will be helpful for someone 😉
Hello daowa89,
thank you for your description. - So you use the software-serial for receiving data from the M-Bus slave.
Unfortunately you made a mistake in your description:
you wrote:
D1 goes to the adapter board TX (so D1 is RX on the ESP).
D2 goes to adapter board RX (so D2 is TX on ESP)
so you have mixed up the pins in the config.
correct is:
uart:
tx_pin: D2
rx_pin: D1
baud_rate: 2400
rx_buffer_size: 2048 # Needed to receive the large packets send by the smart meter
id: mbus
after that everything works fine! - Thanks
from esphome-dlms-meter.
@lechndo @chrispakr Thanks for the feedback! I will test it on the weekend.
Edit: working fine, thank you for the support.
from esphome-dlms-meter.
Related Issues (20)
- Payload length is too big for received data HOT 4
- Esphome 12.2022 & HA - MBUS: Start bytes do not match & Frame too big for received data HOT 5
- comments need to be removed from HOT 1
- Support for Kaifa MA110M ? HOT 3
- Error: setRxBufferSize(): RX Buffer can't be resized when Serial is already running.
- hello could you please explain how too install it on esph home on homeassitant HOT 3
- mbedtls/gcm.h: No such file or directory HOT 3
- Kufsteiner Stadtwerke funktioniert auch
- Tinetz Honeywell "/config/esphome/meter01.yaml:164:27: error: invalid conversion from 'const char*' to 'uint8_t*' {aka 'unsigned char*'} [-fpermissive]" HOT 1
- 2 Zähler auslesen
- Decryption key format HOT 2
- Why is a M-BUS slave board needed? (and not a master board) HOT 4
- Very Jumpy Energy Values
- Tinetz Honeywell funktioniert -> Achtung Anzahl der Stellen HOT 1
- Power ESP via M-Bus HOT 5
- Start bytes do not match nach Monaten ohne Probleme HOT 8
- Possible to Read Water-Meters? HOT 3
- meter01 is working
- Help with M-Bus Slave HOT 3
- Working with VKW Honeywell DM515
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome-dlms-meter.