Simulate DSMR P1 signal

Hi co-programmers and automation enthusiasts:),

I was looking on the forum and other sources.
I think what I am looking for is possible. Even more so, I think that what I imagined has already been invented and built by someone.

For testing purpose, I would like to simulate a real DSMR p1 signal.
I think a D1 mini would be able to do so via uart.

The DSMR protocol is very well documented, so I dont expect many surprizes here, maybe except the crc checking.

I would like to feed the output of this (e.g. d1 mini) to a real p1 meter, like a cheap p1 meter to usb cable.
If this is possible in ESPHome, that would be awsome. Then maybe (my ultimate desire) I can use MQTT to change the output dsmr messages.

Does anyone have a link or can help me with this idea. Or maybe debunk it if it is not possible. :slight_smile:
Or maybe there are way easier solutions i am unaware of.

Any and all thoughts about this are welcome.

Kind regards,

Looks like it is UART so shouldn’t be any real barriers I’d have thought.

The receiving side looks well supported.

For simulating transmission there are numerous ways to send uart. Sending fixed messages or something more complex/variable using lambda’s isn’t too hard.

As to whether someone has already built a simulator using the protocol - I don’t know. That’s a question for Google or forum search I think. And let’s see what others say…

1 Like

Definitely someone has made a P1 meter and it is for sale and on github. I have one. It works.

Probably there is a clue in the code there? I know it can give you the exact content of the telegram it reads from the dsmr so that translation must be in the code somewhere

Is that for sending or recieving a signal? I couldn’t immediately see from the read me etc.

This is for receiving

Thank you for confirming my thoughts and the links.

Indeed, maybe there is already a working project like this out there. I have searched, but did not find a good hit yet.
So hopefully someone here has something working, and is willing to share it.
Otherwise I will likely be this person in a year or so.

Thanks Allard,

But yeah, I am looking for somehing to send a signal, which is able to be received by any other p1 meter. :slight_smile:

Ah yes, I read that wrong initially. Are you trying to lower your energy bill? :rofl: :wink:
Anyway, good luck.

Edit: would this be what you are looking for? GitHub - tribp/DSMR-Fluvius-S1-port-simulator: Simulator of DSMR Fluvius S1 interface of smart meter - usefull when debugging S1 applications

2 Likes