-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
intelligent.md
134 lines (87 loc) · 6.98 KB
/
intelligent.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Intelligent
If you are on the [intelligent tariff](https://octopus.energy/smart/intelligent-octopus/), then you'll get the following entities.
!!! warning
If you switch to the intelligent tariff after you have installed the integration, you will need to reload the integration or restart your Home Assistant instance.
### Is Dispatching
`binary_sensor.octopus_energy_{{ACCOUNT_ID}}_intelligent_dispatching`
This sensor is used to determine if you're currently in a planned dispatch period (i.e. "smart-charge" determined by Octopus Energy) or are within the standard off peak period. This sensor **will not** come on during a bump charge.
!!! warning
If you are using this to drive other automations for cheap rates (e.g. to fill batteries), you should perform additional checks to make sure your vehicle is actually charging. If it isn't, this sensor could be incorrectly on if during a dispatch outside of the standard off peak period and you will therefore not receive the off peak rate.
If you are wanting to know when you are within a guaranteed off peak period, you should use the [off peak](./electricity.md#off-peak) sensor.
!!! info
This sensor is only partially supported for the following intelligent providers
* OHME
If you are supplied by one of the above providers, `planned_dispatches` will always return an empty collection and this entity will only turn on when within the standard off peak period.
| Attribute | Type | Description |
|-----------|------|-------------|
| `planned_dispatches` | `array` | An array of the dispatches that are currently planned by Octopus Energy. |
| `completed_dispatches` | `array` | An array of the dispatches that have been completed by Octopus Energy. This will only store up to the last 3 days worth of completed dispatches. |
| `last_evaluated` | `datetime` | The date/time the dispatching information was last evaluated. |
| `provider` | `string` | The provider of the intelligent features |
| `vehicle_battery_size_in_kwh` | `float` | The size of the target vehicle battery in kWh. |
| `charge_point_power_in_kw` | `float` | The power of the charge point battery in kW. |
| `last_evaluated` | `datetime` | The date/time the value was last evaluated |
| `data_last_retrieved` | `datetime` | The date/time the underlying data was last retrieved from Octopus Energy APIs |
| `current_start` | `datetime` | The date/time when the dispatching or off peak rate started |
| `current_end` | `datetime` | The date/time when the dispatching or off peak rate ends |
| `next_start` | `datetime` | The date/time when the next dispatching or off peak rate starts |
| `next_end` | `datetime` | The date/time when the next dispatching or off peak rate ends |
Each item in `planned_dispatch` or `completed_dispatches` have the following attributes
| Attribute | Type | Description |
|-----------|------|-------------|
| `start` | `datetime` | The start date/time of the dispatch |
| `end` | `datetime` | The end date/time of the dispatch |
| `charge_in_kwh` | `float` | The amount to be charged within the dispatch period. |
| `source` | `string` | Determines what has caused the dispatch to be generated. Will be `smart-charge` or `bump-charge`. |
| `location` | `string` | The location of the smart charge |
### Bump Charge
`switch.octopus_energy_{{ACCOUNT_ID}}_intelligent_bump_charge`
This sensor is used to turn on/off bump ("on-demand") charging.
!!! info
This entity is not available for the following intelligent providers
* OHME
| Attribute | Type | Description |
|-----------|------|-------------|
| `last_evaluated` | `datetime` | The date/time the value was last evaluated |
| `data_last_retrieved` | `datetime` | The date/time the underlying data was last retrieved from Octopus Energy APIs |
### Smart Charge
`switch.octopus_energy_{{ACCOUNT_ID}}_intelligent_smart_charge`
This sensor is used to turn on/off intelligent smart charging.
!!! info
This entity is not available for the following intelligent providers
* OHME
| Attribute | Type | Description |
|-----------|------|-------------|
| `last_evaluated` | `datetime` | The date/time the value was last evaluated |
| `data_last_retrieved` | `datetime` | The date/time the underlying data was last retrieved from Octopus Energy APIs |
### Charge Limit
`number.octopus_energy_{{ACCOUNT_ID}}_intelligent_charge_limit`
This sensor is used to see and set the charge limit for your future intelligent charges.
!!! info
This entity is not available for the following intelligent providers
* OHME
| Attribute | Type | Description |
|-----------|------|-------------|
| `last_evaluated` | `datetime` | The date/time the value was last evaluated |
| `data_last_retrieved` | `datetime` | The date/time the underlying data was last retrieved from Octopus Energy APIs |
### Ready Time
`time.octopus_energy_{{ACCOUNT_ID}}_intelligent_ready_time`
This sensor is used to see and set the ready time for your future intelligent charges.
!!! info
This entity is not available for the following intelligent providers
* OHME
| Attribute | Type | Description |
|-----------|------|-------------|
| `last_evaluated` | `datetime` | The date/time the value was last evaluated |
| `data_last_retrieved` | `datetime` | The date/time the underlying data was last retrieved from Octopus Energy APIs |
## Migrating from megakid/ha_octopus_intelligent?
If you're moving to this integration from [megakid/ha_octopus_intelligent](https://github.com/megakid/ha_octopus_intelligent), below is a quick guide on what entities you should use
* `binary_sensor.octopus_intelligent_slot` - Use the [is dispatching sensor](#is-dispatching)
* `binary_sensor.octopus_intelligent_planned_dispatch_slot` - There is no alternative for this.
* `binary_sensor.octopus_intelligent_slot_next_1_hour`, `binary_sensor.octopus_intelligent_slot_next_2_hours` and `binary_sensor.octopus_intelligent_slot_next_3_hours` - These sensors felt like they would always fall short of peoples requirements as everyone has different time periods they wish to know about. There is currently no alternative for this, but there are plans to expose current and next start/end times as attributes on the sensor.
* `sensor.octopus_intelligent_next_offpeak_start` - The default off peak start 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/).
* `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/).
* `switch.octopus_intelligent_bump_charge` - Use the [bump charge sensor](#bump-charge)
* `switch.octopus_intelligent_smart_charging` - Use the [smart charge sensor](#smart-charge)
* `select.octopus_intelligent_target_time` - Use the [ready time sensor](#ready-time)
* `select.octopus_intelligent_target_soc` - Use the [charge limit sensor](#charge-limit)