-
Notifications
You must be signed in to change notification settings - Fork 185
/
plant.yaml
executable file
·63 lines (61 loc) · 1.62 KB
/
plant.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
#-
# _ _
# _ __ | | __ _ _ __ | |_
# | '_ \| |/ _` | '_ \| __|
# | |_) | | (_| | | | | |_
# | .__/|_|\__,_|_| |_|\__|
# |_|
#
#- from github.com/basnijholt/home-assistant-config
- alias: "Plant: problem with Calathea"
trigger:
- platform: state
entity_id: plant.calathea
to: "problem"
- platform: time
at: "20:00"
condition:
condition: state
entity_id: plant.calathea
state: "problem"
action:
service: notify.all_iphones
data:
title: "Plant in trouble! ⚠️☢️☠️"
message: >
You need to give the Calathea 🌳 attention and love: {{ state_attr("plant.calathea", "problem") }}!
- alias: "Plant: problem with Monstera"
trigger:
- platform: state
entity_id: plant.monstera
to: "problem"
- platform: time
at: "20:00"
condition:
condition: state
entity_id: plant.monstera
state: "problem"
action:
service: notify.all_iphones
data:
title: "Plant in trouble! ⚠️☢️☠️"
message: >
You need to give the Monstera 🌴 attention and love: {{ state_attr("plant.monstera", "problem") }}!
- alias: "Plant: problem with Peace lily"
trigger:
- platform: state
entity_id: plant.peace_lily
to: "problem"
- platform: time
at: "20:00"
condition:
condition: state
entity_id: plant.peace_lily
state: "problem"
action:
service: notify.all_iphones
data:
title: "Plant in trouble! ⚠️☢️☠️"
message: >
You need to give the Peace lily 🌿 attention and love: {{ state_attr("plant.peace_lily", "problem") }}!