# Show last 24 hours of energy data
shelly energy history shelly-3em-pro
# Show specific time range
shelly energy history shelly-em --from "2025-01-01" --to "2025-01-07"
# Show last week for specific component
shelly energy history shelly-3em-pro 0 --period week
# Limit number of records shown
shelly energy history shelly-em --limit 100
--from string Start time (RFC3339 or YYYY-MM-DD)
-h, --help help for history
--limit int Limit number of data points (0 = no limit)
-p, --period string Time period (hour, day, week, month)
--to string End time (RFC3339 or YYYY-MM-DD)
--type string Component type (auto, em, em1) (default "auto")