Skip to content

Commit b799b55

Browse files
Next Release (#1194)
2 parents 8732fa5 + 00d9df8 commit b799b55

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+904
-762
lines changed

.cz-config.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
var scopes = [
2-
'api-client',
3-
'sensor',
4-
'binary-sensor',
5-
'config'
6-
]
1+
var scopes = []
72

83
module.exports = {
94
types: [
@@ -25,6 +20,7 @@ module.exports = {
2520
},
2621
{ value: 'test', name: 'test: Adding missing tests' },
2722
{ value: 'build', name: 'build: Changes to the build system' },
23+
{ value: 'chore', name: 'chore: Changes that does not fit into another category' },
2824
{ value: 'ci', name: 'ci: Changes to the ci system' },
2925
{ value: 'revert', name: 'revert: Revert to a commit' },
3026
{ value: 'release', name: 'release: a release of the project' },
@@ -49,11 +45,11 @@ module.exports = {
4945
confirmCommit: 'Are you sure you want to proceed with the commit above?',
5046
},
5147

52-
allowCustomScopes: true,
48+
allowCustomScopes: false,
5349
allowBreakingChanges: ['feat', 'fix'],
5450
// skip any questions you want
5551
skipQuestions: ['body'],
5652

5753
// limit subject length
58-
subjectLimit: 100,
54+
subjectLimit: 500,
5955
};

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ concurrency:
1212

1313
env:
1414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
HUSKY: 0
1516

1617
jobs:
1718
build_docs:

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Main
22
on:
3+
workflow_dispatch:
34
schedule:
45
- cron: '0 1 * * *'
56
push:
@@ -21,6 +22,9 @@ concurrency:
2122
group: ${{ github.workflow }}-${{ github.ref }}
2223
cancel-in-progress: true
2324

25+
env:
26+
HUSKY: 0
27+
2428
jobs:
2529
validate:
2630
if: ${{ github.event_name != 'schedule' || github.repository_owner == 'BottlecapDave' }}

.husky/prepare-commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exec < /dev/tty && npx cz --hook || true

_docs/blueprints/octopus_energy_octoplus_redeem_points_for_account_credit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ blueprint:
1515
integration: octopus_energy
1616
multiple: false
1717
threshold:
18-
name: Threshold hours
18+
name: Threshold points
1919
description: The minimum number of redeemable points to be available for the automatic redemption to occur
2020
default: 1
2121
selector:

_docs/entities/electricity.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,10 @@ If you export energy, then unless specified otherwise, in addition you'll gain t
386386
!!! info
387387
An export equivalent of this sensor does not exist because the data is not available
388388

389-
The delta of the accumulative electricity consumption since the last update (e.g. if the previous accumulative consumption update reported 1kWh and the current accumulative consumption update reported 1.1kWh, then this sensor will report 0.1kWh).
389+
!!! note
390+
This is [disabled by default](../faq.md#there-are-entities-that-are-disabled-why-are-they-disabled-and-how-do-i-enable-them).
391+
392+
The delta of the accumulative electricity consumption since the last update (e.g. if the previous accumulative consumption update reported 1kWh and the current accumulative consumption update reported 1.1kWh, then this sensor will report 0.1kWh). The time period the data for this sensor represents will depend on the frequency the underlying data is retrieved. If the data takes longer to refresh, then the time period of this sensor will be extended.
390393

391394
This is a legacy sensor which was been built to see the accumulation within the energy dashboard. This _may_ be removed in the future.
392395

_docs/entities/gas.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,16 @@ Each rate item has the following attributes
266266
!!! warning
267267
This will only be available if you have specified you have an [Octopus Home Mini](../setup/account.md#home-mini). Do not set unless you have one.
268268

269-
The latest gas consumption sent to Octopus Energy. By default, this will update every minute. This has been built to see the accumulation within the energy dashboard. If you are wanting a sensor to see the current day's accumulation, then you will need to use something like [utility meter](https://www.home-assistant.io/integrations/utility_meter/). It has been noticed that daily consumption reported in Home Assistant can differ to when looking at past data within Octopus Energy. It looks like this is because Octopus Energy will favour "official" data from your smart meter over the data they collect.
269+
!!! note
270+
This is [disabled by default](../faq.md#there-are-entities-that-are-disabled-why-are-they-disabled-and-how-do-i-enable-them).
271+
272+
The delta of the accumulative gas consumption since the last update (e.g. if the previous accumulative consumption update reported 1kWh and the current accumulative consumption update reported 1.1kWh, then this sensor will report 0.1kWh). The time period the data for this sensor represents will depend on the frequency the underlying data is retrieved. If the data takes longer to refresh, then the time period of this sensor will be extended.
273+
274+
This is a legacy sensor which was been built to see the accumulation within the energy dashboard. This _may_ be removed in the future.
275+
276+
It has been noticed that daily consumption reported in Home Assistant can differ to when looking at past data within Octopus Energy. It looks like this is because Octopus Energy will favour "official" data from your smart meter over the data they collect.
270277

271-
If current consumption data is unable to be retrieved, then the integration will attempt to retrieve missing data. This will be done up to 5 days behind to give a buffer before the API requires a higher interval and will not be changed.
278+
If current consumption data is unable to be retrieved, then the integration will attempt to retrieve missing data. This will be done for the current day only. This is due to it sharing the same data for the accumulation sensors and will not be changed.
272279

273280
| Attribute | Type | Description |
274281
|-----------|------|-------------|

_docs/entities/heat_pump.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,7 @@ This represents the current outdoor temperature as observed by the heat pump.
8787

8888
!!! note
8989
As the integration uses cloud polling this will inherently have a delay.
90+
91+
## Services
92+
93+
There are some services available relating to these entities that you might find useful. They can be found in the [services docs](../services.md#heat-pump).

_docs/entities/intelligent.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ This sensor is used to see and set the charge target for your future intelligent
121121

122122
You can use the [data_last_retrieved sensor](./diagnostics.md#intelligent-settings-data-last-retrieved) to determine when the underlying data was last retrieved from the OE servers.
123123

124-
### Target Time
124+
### Target Time (Select)
125125

126126
`select.octopus_energy_{{ACCOUNT_ID}}_intelligent_target_time`
127127

128-
This sensor is used to see and set the target time for your future intelligent charges.
128+
This sensor is used to see and set the target time for your future intelligent charges. This is limited to 30 minute increments between 4 and 11 to match the Octopus Energy app. This is useful if you use the app or have non-technical people interacting with the integration.
129129

130130
!!! info
131131

@@ -137,9 +137,28 @@ This sensor is used to see and set the target time for your future intelligent c
137137

138138
You can use the [data_last_retrieved sensor](./diagnostics.md#intelligent-settings-data-last-retrieved) to determine when the underlying data was last retrieved from the OE servers.
139139

140-
!!! warning
140+
| Attribute | Type | Description |
141+
|-----------|------|-------------|
142+
| `raw_value` | `time` | The raw target time. This is useful if the time is set to a value outside of the range available in the select options (e.g. from another integration) |
143+
144+
### Target Time (Time)
145+
146+
`time.octopus_energy_{{ACCOUNT_ID}}_intelligent_target_time`
147+
148+
This sensor is used to see and set the target time for your future intelligent charges. This gives you finer control over the times (still within valid time periods), but may have unintended consequences with other apps (e.g. the Octopus Energy app) that use the data.
149+
150+
!!! info
151+
152+
This entity is not available for the following intelligent providers
153+
154+
* OHME
155+
156+
!!! info
157+
158+
You can use the [data_last_retrieved sensor](./diagnostics.md#intelligent-settings-data-last-retrieved) to determine when the underlying data was last retrieved from the OE servers.
141159

142-
There is a time based sensor called `time.octopus_energy_{{ACCOUNT_ID}}_intelligent_target_time` which represents this functionality. This is a legacy sensor which will be removed in the future.
160+
!!! note
161+
This is [disabled by default](../faq.md#there-are-entities-that-are-disabled-why-are-they-disabled-and-how-do-i-enable-them). If enabled, it is advised to disable the [select based sensor](#target-time-select) as the two can get out of sync.
143162

144163
## Migrating from megakid/ha_octopus_intelligent?
145164

@@ -152,5 +171,5 @@ If you're moving to this integration from [megakid/ha_octopus_intelligent](https
152171
* `sensor.octopus_intelligent_offpeak_end` - The default off peak end date/time can be found as an attribute on the [off peak sensor](./electricity.md#off-peak). This can be extracted using a [template sensor](https://www.home-assistant.io/integrations/template/).
153172
* `switch.octopus_intelligent_bump_charge` - Use the [bump charge sensor](#bump-charge)
154173
* `switch.octopus_intelligent_smart_charging` - Use the [smart charge sensor](#smart-charge)
155-
* `select.octopus_intelligent_target_time` - Use the [target time sensor](#target-time)
174+
* `select.octopus_intelligent_target_time` - Use the [target time (time) sensor](#target-time-time) or [target time (select) sensor](#target-time-select)
156175
* `select.octopus_intelligent_target_soc` - Use the [charge target sensor](#charge-target)

_docs/entities/octoplus.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Each available event item will include the following attributes
5151
| Attribute | Type | Description |
5252
|-----------|------|-------------|
5353
| `id` | `integer` | The id of the event |
54-
| `code` | `string` | The event code of the event. This will be required to join via the [join service](../services.md) |
54+
| `code` | `string` | The event code of the event. This will be required to join via the [join service](../services.md#octopus_energyjoin_octoplus_saving_session_event) |
5555
| `start` | `datetime` | The date/time the event starts |
5656
| `end` | `datetime` | The date/time the event starts |
5757
| `duration_in_minutes` | `integer` | The duration of the event in minutes |
@@ -208,5 +208,5 @@ Each item within `baselines` consists of the following attributes
208208

209209
## Services
210210

211-
There are some services available relating to these entities that you might find useful. They can be found in the [services docs](../services.md).
211+
There are some services available relating to these entities that you might find useful. They can be found in the [services docs](../services.md#octoplus).
212212

0 commit comments

Comments
 (0)