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
| /** | |
| * Shelly Pro 3EM - Net Metering (Saldierung) & Home Assistant Auto-Discovery | |
| * | |
| * This script calculates the total active power across all 3 phases (A+B+C). | |
| * It simulates a "net metering" utility meter: | |
| * - If Total Power > 0: Increases "Import" counter | |
| * - If Total Power < 0: Increases "Export" counter | |
| * | |
| * FEATURES: | |
| * - Precise integration (runs every 0.5s) |