You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Home Assistant integration to track your load schedding schedule.
4
4
5
-
> ℹ️ **_NOTE:_** Versions of this integration before v0.6.0 make use of [this Python library](https://gitlab.com/wernerhp/load-shedding) which only supports schedules for Eskom Direct customers. If you can find your schedule on https://loadshedding.eskom.co.za/ then you'll have schedule info available.
5
+
> ℹ️ **_NOTE:_** Prior to v0.6.0 this integration made use of [this Python library](https://gitlab.com/wernerhp/load-shedding) which only supports schedules for Eskom Direct customers. If you can find your schedule on https://loadshedding.eskom.co.za/ then you'll have schedule info available.
6
+
>
6
7
> If you are not an Eskom Direct customer, then a work-around is to find an Eskom Direct schedule which matches yours and use that instead. There are no immediate plans to add other municipalities, but Merge Requests on [the library](https://gitlab.com/wernerhp/load-shedding) to expand support are welcome.
7
-
> Version v0.6.1 makes use of Eskom SePush API. You can sign up for $0 monthly key [here](https://eskomsepush.gumroad.com/l/api). The free key has a request limit of 50 API calls per day. Keep this in mind when using the integration. You can also pay to get a higher request limit.
8
+
>
9
+
> v0.6.1 makes use of Eskom SePush API. Get a Free (50 requests per day) API Key from [Eskom Se Push](https://eskomsepush.gumroad.com/l/api). The free key has a request limit of 50 API calls per day. Keep this in mind when using the integration. You can also pay to get a higher request limit.
The load shedding sensor State will always reflect the current load shedding stage.
60
-
i.e When load shedding is suspended, it will show **No Load Shedding**. When Stage 2 is active, it will show **Stage 2**.
61
-
> Since the schedules differ depending on the Stage, the correct `start_time`, `end_time`, `starts_in`, `ends_in` and `schedule` times only show once there is an active Stage as it needs to know which stage to query. When there is No Load Shedding the Stage 1 schedule will be shown.
62
+
i.e When load shedding is suspended, it will show **No Load Shedding**. When Stage 2 is active, it will show **Stage 2**.
62
63
63
64
<details>
64
65
<summary>Screenshot</summary>
@@ -72,326 +73,63 @@ i.e When load shedding is suspended, it will show **No Load Shedding**. When St
72
73
# Cards
73
74
I created this card with the help of [template-entity-row](https://github.com/thomasloven/lovelace-template-entity-row)
74
75
<details>
75
-
<summary>Screenshot</summary>
76
+
<summary>Card 1</summary>
76
77
78
+
[Code](examples/card2.yaml)
77
79

80
+
</details>
78
81
79
-
</details>
80
82
<details>
81
-
<summary>Code</summary>
82
-
83
-
```yaml
84
-
type: entities
85
-
entities:
86
-
- type: custom:template-entity-row
87
-
icon: mdi:lightning-bolt-outline
88
-
name: Status
89
-
entity: sensor.load_shedding_stage
90
-
active: '{{ not is_state("sensor.load_shedding_stage", "No Load Shedding") }}'
These are just some automations I've got set up. They are not perfect and will require some tweaking on your end. Feel free to contribute your automations ideas and custom panels by posting them on [this Issue thread](https://github.com/wernerhp/ha_integration_load_shedding/issues/5)
98
+
These are just some automations I've got set up. They are not perfect and will require some tweaking on your end.
99
+
Replace `sensor.load_shedding_south_africa_stage`, `sensor.load_shedding_milnerton_14` and other `entity_id` with your own.
198
100
199
101
### Announce Load Shedding stage changes on speakers and push notifications.
200
-
<details>
201
-
<summary>Code</summary>
202
-
203
-
```yaml
204
-
alias: Load Shedding (Stage)
205
-
description: ''
206
-
trigger:
207
-
- platform: state
208
-
entity_id:
209
-
- sensor.load_shedding_stage
210
-
condition:
211
-
- condition: template
212
-
value_template: >-
213
-
{{ trigger.from_state.state != 'unavailable' and trigger.to_state.state != 'unavailable' }}
Setup a REST Command and two automations to set your Slack status when Load Shedding starts and ends.
312
-
112
+
Setup a [REST Command](https://www.home-assistant.io/integrations/rest_command/) and two automations to set your Slack status when Load Shedding starts and ends.
0 commit comments