feat: add Shelly EM3 Pro / Pro 3EM 3-phase power meter - #155
Merged
Conversation
New power meter package for the Shelly EM3 Pro / Pro 3EM (Gen2/Gen3 RPC API). Polls the meter over HTTP (`EM.GetStatus`) and publishes the arithmetic sum of the three phase active powers as the grid-exchange signal, matching how a 3-phase contract is billed (net metering). - adds solar_router/power_meter_shelly_em3.yaml (per-phase internal sensors, optional HTTP auth header) - adds docs (en/fr), install doc entry and mkdocs nav - adds esp32-em3-router.yaml example (triac + 1-dimmer engine)
XavierBerger
force-pushed
the
pr/em3-power-meter
branch
from
August 7, 2026 16:59
e677fd6 to
9bc32d9
Compare
This was referenced Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New power meter package for the Shelly EM3 Pro / Pro 3EM three-phase energy meter (Gen2/Gen3 RPC API).
The meter is polled over HTTP (
EM.GetStatus) and the arithmetic sum of the three phase active powers is published as the grid-exchange signal (total_act_power), matching the way a 3-phase contract is billed (net metering): an export on one phase fully offsets an import on another.What's included
solar_router/power_meter_shelly_em3.yaml— polls every 2 s while activated; per-phase active powers exposed as internal sensors (show_phase_power: "True"to unhide); optional HTTPAuthorizationheader (power_meter_auth_header)docs/en/power_meter_shelly_em3.md+docs/fr/esp32-em3-router.yaml(EM3 + triac + 1-dimmer engine)docs/en+fr/installation.mdentry + mkdocs navNotes
esp_http_clientconnection each second, which can trigger a stale-transport use-after-free inside ESP-IDF'stcp_transportover hours (see comment in the package).esphome config(harness: common + em3 + triac + engine_1dimmer),check_documentation_coverage.sh,check_build_coverage.shand a strictmkdocs build.