Skip to content

Commit 6c1f72f

Browse files
authored
Update README.md
1 parent a25a4e1 commit 6c1f72f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ sensor.octopus_export_1hour_time
1313
sensor.octopus_export_1hour_price
1414
```
1515

16+
With `start_period` set to `now` and `hours` set to `0` the current import or export price is returned, and the sensors are named:
17+
```
18+
sensor.octopus_current_price
19+
sensor.octopus_export_current_price
20+
```
21+
22+
1623
[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/custom-components/hacs)
1724

1825
### Installation
@@ -64,11 +71,13 @@ This may be best illustrated with a couple of pictures:
6471

6572
![State information with now start period](https://github.com/badguy99/octoblock/blob/master/StartTimeNow.PNG)
6673

67-
Using `now` start_period this has turned on and off a few times within the day as it is reevaluated as the day goes on
74+
Using `now` `start_period` this has turned on and off a few times within the day as it is reevaluated as the day goes on
6875

6976
![State information with today start period](https://github.com/badguy99/octoblock/blob/master/StartTimeToday.PNG)
7077

71-
Using `today` start_period this has only turned on once during the day
78+
Using `today` `start_period` this has only turned on once during the day
79+
80+
Setting `start_period` to `now` and `hours` to `0` will give the current import or export price.
7281

7382
`use_timezone` can be set to True or False, and defaults to False, it allows you to specify if the date/time should be displayed in UTC (False), or using Europe/London (True) as the timezone. For example, `2020-03-29T02:00:00Z` or `2020-03-29T03:00:00 BST` respectively.
7483

0 commit comments

Comments
 (0)