forked from wernerhp/ha.integration.load_shedding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
automation2.yaml
39 lines (39 loc) · 1.08 KB
/
automation2.yaml
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
alias: Load Shedding (Warning)
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.load_shedding_area_eskde_14_milnertoncityofcapetownwesterncape
attribute: starts_in
below: "15"
condition:
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.load_shedding_stage_eskom
attribute: stage
above: "0"
- condition: time
after: input_datetime.alarm
before: input_datetime.sleep
action:
- service: telegram_bot.send_message
data:
message: Load Shedding starts in 15 minutes.
title: Load Shedding
enabled: false
- service: media_player.volume_set
data:
volume_level: 0.7
target:
entity_id: media_player.assistant_speakers
- service: tts.home_assistant_say
data:
entity_id: media_player.assistant_speakers
message: Load Shedding starts in 15 minutes.
cache: true
- service: rest_command.slack_status
data:
emoji: ":gopher-coffee:"
status: "\"Grabbing coffee before it's too late...\""
enabled: false
mode: single