List every component on a device that meters power, with its live reading.
That is any EM (3-phase) or EM1 (single-phase) energy monitor, any PM
or PM1 power meter, any switch, cover or light that meters its load
(Plus 1PM, Plus 2PM, Plus Plug, Pro 4PM, dimmers, RGBW PM), and the
meters of a Gen1 device (Shelly 1PM, Plug S, Duo bulbs, EM). Energy
monitors are listed first.
Use ‘shelly energy status’ with a component ID for one component in
full.
Output is formatted as a table by default. Use -o json or -o yaml for
structured output; each item carries name, type, id, power (watts) and
the full reading under em, em1 or meter.
Columns: Device, Component, Voltage, Current, Power, Energy
# List the components that meter power on a device
shelly energy list shelly-3em-pro
# Output as JSON for scripting
shelly energy list shelly-3em-pro -o json
# IDs of the 3-phase monitors
shelly energy list shelly-3em-pro -o json | jq -r '.[] | select(.type == "em") | .id'
# Count the components that meter power
shelly energy list shelly-3em-pro -o json | jq length
# Short form
shelly energy ls shelly-3em-pro
--config string Config file (default $HOME/.config/shelly/config.yaml)
-F, --fields Print available field names for use with --jq and --template
-Q, --jq stringArray Apply jq expression to filter output (repeatable, joined with |)
--log-categories string Filter logs by category (comma-separated: network,api,device,config,auth,plugin)
--log-json Output logs in JSON format
--no-color Disable colored output
--no-headers Hide table headers in output
--offline Only read from cache, error on cache miss
-o, --output string Output format (table, json, yaml, template) (default "table")
--plain Disable borders and colors (machine-readable output)
-q, --quiet Suppress non-essential output
--raw Print the exact device response(s) as a JSON array and suppress normal output
--refresh Bypass cache and fetch fresh data from device
--template string Go template string for output (use with -o template)
-v, --verbose count Increase verbosity (-v=info, -vv=debug, -vvv=trace)