Skip to content

Commit

Permalink
add service
Browse files Browse the repository at this point in the history
  • Loading branch information
basbruss committed May 14, 2024
1 parent 4ea7ba0 commit dfbf86c
Showing 1 changed file with 48 additions and 0 deletions.
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 th 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

0 comments on commit dfbf86c

Please sign in to comment.