mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
EnergyZero: added config entry (#30460)
This commit is contained in:
parent
4e4318f163
commit
209d03bd13
@ -59,10 +59,11 @@ The energy and gas prices are exposed using [service calls](/docs/scripts/servic
|
|||||||
|
|
||||||
### Service `energyzero.get_gas_prices`
|
### Service `energyzero.get_gas_prices`
|
||||||
|
|
||||||
Fetches the gas prices.
|
Fetches the gas prices. The `config_entry` value be found using the Services tab in the Developer Tools, selecting the desired entity and then switching to YAML.
|
||||||
|
|
||||||
| Service data attribute | Optional | Description | Example |
|
| Service data attribute | Optional | Description | Example |
|
||||||
| ---------------------- | -------- | ----------- | --------|
|
| ---------------------- | -------- | ----------- | --------|
|
||||||
|
| `config_entry` | no | Config entry to use. | 1b4a46c6cba0677bbfb5a8c53e8618b0
|
||||||
| `incl_vat` | no | Defines whether the prices include or exclude VAT. | false
|
| `incl_vat` | no | Defines whether the prices include or exclude VAT. | false
|
||||||
| `start` | yes | Start time to get prices. Defaults to today 00:00:00 | 2023-01-01 00:00:00
|
| `start` | yes | Start time to get prices. Defaults to today 00:00:00 | 2023-01-01 00:00:00
|
||||||
| `end` | yes | End time to get prices. Defaults to today 00:00:00 | 2023-01-01 00:00:00
|
| `end` | yes | End time to get prices. Defaults to today 00:00:00 | 2023-01-01 00:00:00
|
||||||
@ -93,10 +94,11 @@ The response data is a dictionary with the gas timestamps and prices as string a
|
|||||||
|
|
||||||
### Service `energyzero.get_energy_prices`
|
### Service `energyzero.get_energy_prices`
|
||||||
|
|
||||||
Fetches the energy prices.
|
Fetches the energy prices. The `config_entry` value be found using the Services tab in the Developer Tools, selecting the desired entity and then switching to YAML.
|
||||||
|
|
||||||
| Service data attribute | Optional | Description | Example |
|
| Service data attribute | Optional | Description | Example |
|
||||||
| ---------------------- | -------- | ----------- | --------|
|
| ---------------------- | -------- | ----------- | --------|
|
||||||
|
| `config_entry` | no | Config entry to use. Can be found using the Services tab in the Developer Tools and switching to YAML. | 1b4a46c6cba0677bbfb5a8c53e8618b0
|
||||||
| `incl_vat` | no | Defines whether the prices include or exclude VAT. | false
|
| `incl_vat` | no | Defines whether the prices include or exclude VAT. | false
|
||||||
| `start` | yes | Start time to get prices. Defaults to today 00:00:00 | 2023-01-01 00:00:00
|
| `start` | yes | Start time to get prices. Defaults to today 00:00:00 | 2023-01-01 00:00:00
|
||||||
| `end` | yes | End time to get prices. Defaults to today 00:00:00 | 2023-01-01 00:00:00
|
| `end` | yes | End time to get prices. Defaults to today 00:00:00 | 2023-01-01 00:00:00
|
||||||
@ -139,6 +141,7 @@ template:
|
|||||||
- service: energyzero.get_energy_prices
|
- service: energyzero.get_energy_prices
|
||||||
response_variable: prices
|
response_variable: prices
|
||||||
data:
|
data:
|
||||||
|
config_entry: 1b4a46c6cba0677bbfb5a8c53e8618b0
|
||||||
incl_vat: false
|
incl_vat: false
|
||||||
sensor:
|
sensor:
|
||||||
- name: Energy prices
|
- name: Energy prices
|
||||||
|
Loading…
x
Reference in New Issue
Block a user