{"id":20067881,"url":"https://github.com/jensstockhausen/smlparserlight","last_synced_at":"2026-02-25T12:31:54.576Z","repository":{"id":66761111,"uuid":"586487289","full_name":"jensstockhausen/SmlParserLight","owner":"jensstockhausen","description":"MicroPython compatible parser for the SML (Smart Message Language) protocol","archived":false,"fork":false,"pushed_at":"2023-01-08T14:59:20.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T11:18:37.722Z","etag":null,"topics":["emeter","micropython","sml"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jensstockhausen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-08T10:22:36.000Z","updated_at":"2024-01-21T13:54:44.000Z","dependencies_parsed_at":"2023-02-24T23:45:20.832Z","dependency_job_id":null,"html_url":"https://github.com/jensstockhausen/SmlParserLight","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"8c884e05d09ef394a8e3b0269fbb06e575ae7289"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jensstockhausen/SmlParserLight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jensstockhausen%2FSmlParserLight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jensstockhausen%2FSmlParserLight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jensstockhausen%2FSmlParserLight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jensstockhausen%2FSmlParserLight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jensstockhausen","download_url":"https://codeload.github.com/jensstockhausen/SmlParserLight/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jensstockhausen%2FSmlParserLight/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265365982,"owners_count":23753430,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emeter","micropython","sml"],"created_at":"2024-11-13T14:04:09.546Z","updated_at":"2026-02-25T12:31:54.525Z","avatar_url":"https://github.com/jensstockhausen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SmlParserLight\n[MicroPython](https://micropython.org/) compatible parser for the SML (Smart Message Language) protocol\n\n# The Challenge\n\nStarting point was to integrate the reading of a smart meter into the home automation iot network.\n\nThe infrastructure mosquitto MQTT server and node-red for visualization is already setup.\nNot wanting to spend a full Raspberry Pi to \"just\" read the SML messages and send them via MQTT\nlead to implementing the required on a MicroPython compatible hardware (e.g. ESP32, Raspberry Pi Pico W, ...)\n\nThere are quite a few projects out there providing support for SML, but unfortunately they cannot be run on the \nreduced functionality of MicroPython.\n\n# The Inspiration\n\n* Good entry point is the [Volkszähler](https://volkszaehler.org/) project (German)\n\n* Full spec [Technische Richtlinie BSI TR-03109-1](https://www.bsi.bund.de/SharedDocs/Downloads/DE/BSI/Publikationen/TechnischeRichtlinien/TR03109/TR-03109-1_Anlage_Feinspezifikation_Drahtgebundene_LMN-Schnittstelle_Teilb.pdf?__blob=publicationFile)\n (German)\n\n* List of [OBIS codes](https://www.promotic.eu/en/pmdoc/Subsystems/Comm/PmDrivers/IEC62056_OBIS.htm)\n\n* Deconstruction of the protocol with the setup of the [SML IR interface](https://www.stefan-weigert.de/php_loader/sml.php) (Gernam)\nThis helped a lot to understand the protocol.\n\nThis python script is in fact a light version of [smllib](https://github.com/spacemanspiff2007/SmlLib).\nRemoving a lot of functionality (and convenience) to be able to run it on micropython.\n\nUse the smllib to analyse the raw messages from your eMeter to extract the available OBIS codes.\n\n# The Script\n\nThe scrip fulfills two tasks.\n\n1) Accumulate bytes read from UART to extract full frames from the stream. \n   The validity the is checked based on the CRC signature.\n2) Once a frame is returned by get_frame() the entries can be extracted by using the\n   sml_get_entry() function.\n\nThe entry contains all 7 components, (None if they are not set)\n\n# The Usage\n\nThe example_usage.py shows how to use the parser.\nFor the full setup the data shall be fed from the UART attached to the SML IR interface.\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjensstockhausen%2Fsmlparserlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjensstockhausen%2Fsmlparserlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjensstockhausen%2Fsmlparserlight/lists"}