letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.25k stars 2.2k forks source link

Extend P1 Reader to support Swedish Version of HAN port #3875

Open TD-er opened 2 years ago

TD-er commented 2 years ago

See request on forum

Apparently the protocol differs.

TD-er commented 1 year ago

Code example: https://github.com/romix123/P1-wifi-gateway/blob/8827422c9ac9aab94b45c4e6f58495c4b0d04a00/src/decoder.ino#L192

N.B. this code example is very verbose and can use quite a lot of optimizations regarding telegram decoding. For example there is no need to compare with strings over and over again, when we simply can decode the telegram header into various ints

tonhuisman commented 1 year ago

~An alternative could be this template-based DSMR P1 parser: https://github.com/lvzon/dsmr-p1-parser, though that doesn't support the Swedish version of the protocol, it wouldn't be hard to add~. Linked to the wrong library. This is the template-based lib I was trying to link to: https://github.com/matthijskooijman/arduino-dsmr, and it recently started support for the Swedish extensions to the protocol (or so it seems) 😅