Get daily energy history
get_daily_energy_historyRetrieve today's energy consumption history for a Domoticz device by idx or name, with optional instantaneous power samples.
Instructions
Read today's counter history. Preferred: idx. Set include_instantaneous=False for daily totals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idx | No | Numeric Domoticz idx; preferred over name when known | |
| name | No | Case-insensitive Domoticz entity name | |
| include_instantaneous | No | Include instantaneous power samples |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idx | Yes | Resolved device idx | |
| Name | No | Resolved device name | |
| range | Yes | Domoticz graph range sent upstream | |
| title | No | Optional Domoticz response title | |
| period | Yes | Requested history period | |
| result | Yes | Normalized history samples | |
| status | Yes | Status returned by Domoticz, normally OK | |
| summary | Yes | Aggregate statistics for the returned samples | |
| include_instantaneous | Yes | Whether instantaneous samples were requested |