Skip to content

New Share your ideas with the AWTRIX community. Keep your creations together in your account.

Sign in

Which AWTRIX do you have? Choose it once and the Hub shows what runs on it.

ScriptAWTRIX NG

Shelly Pro 3EM Power (Gen2)

On an AWTRIX display
Shelly Pro 3EM Power (Gen2) shown on an AWTRIX display
Shelly Pro 3EM Power (Gen2) · by electricman78

On your display

Live active power from Shelly Pro 3EM (Gen2) with solar PV export support, dynamic colors & power bar

Which AWTRIX do you have? See below where it runs, or choose your device.
Topic
Smarthome
Includes
Script

Runs on

  • Runs on 32×8 (TC001 & DIY)
  • Runs on 52×16 (TC002)
  • Does not run on 32×8 with AWTRIX 3 (TC001 & DIY) Made for AWTRIX NG.

Choose your display in the next step.

Send to AWTRIX

Choose your AWTRIX

Shelly Pro 3EM Power (Gen2)AWTRIX NG script

Install this script on your AWTRIX NG. Its icons and sounds are installed with it.

Your AWTRIX’s local address, for example 192.168.178.39 or awtrix.local.

The name shown in your AWTRIX script list. Use letters, digits, hyphens or underscores.

Connection & device login

Connect your phone or computer to the same network as your AWTRIX. Allow local network access if your browser asks.

Use the device’s IP address, without a page path such as /#/apps.

If your AWTRIX requires a login, the username and password fields will appear when you connect.

Sign in to the Hub to install scripts. Attached files are installed separately.

Script description

Displays real-time total active power from a Shelly Pro 3EM (local Gen2 RPC API) on your AWTRIX NG clock. Adapted from the original Shelly 3EM Power (Gen1) script by Fukkel, rewritten for Gen2 devices with full solar PV export support (negative values), an all-English configuration UI, and configurable display duration.

Features

  • Local Gen2 API: Polls /rpc/EM.GetStatus?id=0 (total_act_power) directly over LAN – no cloud or MQTT required.
  • Solar PV Export Ready: Displays negative values with a minus sign (e.g. -450W, -1.8kW) and includes a dedicated high-export threshold.
  • Dynamic Color Scale & Power Bar: Automatically adjusts text, icon, and bottom bar colors based on power level (or uses a custom fixed color).
  • Inrush Delay (Debounce): Prevents short startup spikes from triggering higher color levels or overload alerts immediately.
  • Overload Alert: Flashes the display in red when power exceeds the configured threshold.
  • Custom Display Duration: Override the global app rotation time directly in script settings (0 = use global default).
  • Built-in Icon: Uses a built-in lightning bolt icon by default (no extra icons required), with optional custom icon ID support.

Setup

  1. Install the script and open its settings in the AWTRIX web interface.
  2. Enter your Shelly Pro 3EM IP Address (must be on the same local network, with local RPC HTTP access enabled and no authentication).
  3. Adjust High Export Threshold, Medium/High Import Thresholds, Bar Scale Max, and Display Duration to match your installation.
  4. (Optional) Enter a Custom Icon ID if you want to replace the default lightning bolt.

Color Coding (Auto Mode)

  • Cyan (#00FFFF): High PV export (<= -High Export Threshold, default -400W)
  • Blue (#0088FF): Low PV export (< 0W)
  • Green (#00FF00): Low grid import (0W to < Medium)
  • Yellow (#FFCC00): Medium grid import (Medium to < High)
  • Orange (#FFA500): High grid import (High to < 2x High)
  • Red (#FF0000): Very high import / Overload alert (blinking)

Credits

Based on the original Shelly 3EM Power (Gen1) script by Fukkel, adapted for Shelly Pro 3EM (Gen2) and PV systems.

More scripts in Smarthome

Something wrong with this script? Report it.