Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add price service to Tibber #32743

Merged
merged 3 commits into from
Jun 10, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions source/_integrations/tibber.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,54 @@ If you have a Tibber Pulse it will also show the electricity consumption in real

</div>

## Services

The hourly prices are exposed using [service calls](/docs/scripts/service-calls/). The services populate [response data](/docs/scripts/service-calls#use-templates-to-handle-response-data) with price data.

### Service `tibber.get_prices`

Fetches hourly energy prices including price level.

| Service data attribute | Optional | Description | Example |
| ---------------------- | -------- | ----------- | --------|
| `start` | yes | Start time to get prices. Defaults to today 00:00:00 | 2024-01-01 00:00:00 |
| `end` | yes | End time to get prices. Defaults to tomorrow 00:00:00 | 2024-01-01 00:00:00 |

#### Response data

The response data is a dictionary with the energy prices for each Home.

```json
{
"prices": {
"Nickname_Home":[
{
"start_time": "2023-12-09 03:00:00+00:00",
"price": 0.46914,
"level": "VERY_EXPENSIVE"
},
{
"start_time": "2023-12-09 04:00:00+00:00",
"price": 0.46914,
"level": "VERY_EXPENSIVE"
}
],
"Nickname_Home_2":[
{
"start_time": "2023-12-09 03:00:00+00:00",
"price": 0.46914,
"level": "VERY_EXPENSIVE"
},
{
"start_time": "2023-12-09 04:00:00+00:00",
"price": 0.46914,
"level": "VERY_EXPENSIVE"
}
]
}
}
```

## Examples

In this section, you will find some real-life examples of how to use this sensor.
Expand Down