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.
Or maybe there are way easier solutions i am unaware of.
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…
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
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.