{"id":21838587,"url":"https://github.com/lilanga/smartmeternano","last_synced_at":"2026-04-09T12:46:11.202Z","repository":{"id":209646597,"uuid":"724592679","full_name":"Lilanga/smartmeternano","owner":"Lilanga","description":"IoT smart meter using ESP32 chipset","archived":false,"fork":false,"pushed_at":"2023-11-28T12:36:02.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T10:41:29.652Z","etag":null,"topics":["aws-iot-core","esp32","freertos","home-assistant","mqtt","platformio","smart-metering"],"latest_commit_sha":null,"homepage":"","language":"C","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/Lilanga.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-11-28T11:56:20.000Z","updated_at":"2023-11-28T12:38:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"baf901da-f61b-4bad-bb76-018c50d4968f","html_url":"https://github.com/Lilanga/smartmeternano","commit_stats":null,"previous_names":["lilanga/smartmeternano"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lilanga%2Fsmartmeternano","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lilanga%2Fsmartmeternano/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lilanga%2Fsmartmeternano/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lilanga%2Fsmartmeternano/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lilanga","download_url":"https://codeload.github.com/Lilanga/smartmeternano/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244819802,"owners_count":20515646,"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":["aws-iot-core","esp32","freertos","home-assistant","mqtt","platformio","smart-metering"],"created_at":"2024-11-27T21:12:26.246Z","updated_at":"2025-12-30T22:44:28.930Z","avatar_url":"https://github.com/Lilanga.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart meter nano\n\nSmart meter nano is a tiny smart meter solution to measure electricy power consumption in a building.\n\nDevice is designed to be installed in a DIN rail box and is powered by a 5V USB power supply or a 5V power supply from the DIN rail box. We are using Emonlib to measure the power consumption and a ESP32 micro controller to send the data to a MQTT broker. Here we are using AWS IoT Core as MQTT broker. The device is also capable of sending data to Home Assistant MQTT broker. Firmware is written utilizing FreeRTOS.\n\n## Hardware\n\nHere we are using Lilygo TTGO T-Display ESP32 micro controller. It has a 1.14 inch LCD display and a 5V USB power supply. It is also possible to power the device with a 5V power supply from the DIN rail box. We are utilizing the onboard LED to display measurements and connection status to MQTT brokers.\n\n## Configuration\n\nConfiguration is done by editing the `config.h` file. You need to set the following parameters:\n\n* `WIFI_NETWORK`: SSID of the WiFi network\n* `WIFI_PASSWORD`: Password of the WiFi network\n* `AWS_IOT_ENDPOINT`: AWS IoT Core endpoint address\n* `AWS_IOT_TOPIC`: AWS IoT Core topic to publish the data\n\n### Home Assistant\n\nIf you are using Home Assistant you can use the configuration definde in config.dist.h to enable Home Assistant mqtt support. You can turn off AWS IoT core data forwarding by setting `AWS_IOT_ENABLED` to `false`. You can also turn off Home Assistant mqtt support by setting `HOME_ASSISTANT_ENABLED` to `false`.\n\n## Iot Core certificates\n\nTo communicate with AWS IoT Core you need to create a thing and download the certificates.\nIn the `certificates` folder you need to place the following certificate files:\n\n* `amazonrootca1.pem`\n* `certificate.pem.crt`\n* `private.pem.key`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flilanga%2Fsmartmeternano","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flilanga%2Fsmartmeternano","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flilanga%2Fsmartmeternano/lists"}