Skip to content

Conversation

@PolarGoose
Copy link

@PolarGoose PolarGoose commented Oct 22, 2025

These are the changes in arduino-dsmr that I have made for [DSMR] Remove dependency on Arduino framework. Various bug fixes. #11036.

Open issues:

  • Do we want esphome-libs/arduino-dsmr to only contain code used by esphome DSMR component? Or be generic?
  • What to do with the namespace arduino-dmsr-2? The changes that I have made are not compatible with the classic Arduino boards. Thus, I think it might cause confusion if we continue using the original arduino-dsmr name.

Todo:

  • We need to change the Readme to address that this project is part of the esphome-libs and what is the goals, for example it is only for esphome or generic.
  • Change the PlatformIO version number. Probably something like 1.0.0. Do we even need PlatformIO package?

… std::string

* Remove GCC-specific extensions to make the code portable and compatible with the MSVC compiler.
* Add unit tests
* Move the license information from source files to a separate LICENSE file
* Bug fix: use unsigned char in the tolower method
* Remove reader.h: this file is dependent on Arduino and is not needed for the parser.
* Remove examples
* Remove the crc16.h file because only one function is needed from it. Place the needed function inside the parser.h
* Make ParseResult movable
* Fix comment formatting: use "//" for all comments
* Add usage example.
* Improve Readme.
0-0:96.13.0(303132333435
30313233343)
* Workaround for matthijskooijman#50
Allow missing units if the value is 0:
0-1:24.2.1(632525252525S)(00000.000)
Add missing "kvar" units.
Fix use varh int units for kvarh float values.
Increase the version inside library.json.
* Rename dsmr namespace to arduino_dsmr_2
* EncryptedPacketAccumulator: add header consistency check
Add AveragedFixedField.
It fixes the issue esphome/issues#4750
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant