-
Notifications
You must be signed in to change notification settings - Fork 185
/
plant.yaml
executable file
·63 lines (61 loc) · 1.75 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 Ficus microcarpa Ginseng"
trigger:
- platform: state
entity_id: plant.ficus_microcarpa_ginseng
to: "problem"
- platform: time
at: "20:00"
condition:
condition: state
entity_id: plant.ficus_microcarpa_ginseng
state: "problem"
action:
service: notify.all_iphones
data:
title: "Plant in trouble! ⚠️☢️☠️"
message: >
You need to give the Ficus microcarpa Ginseng 🌳 attention and love: {{ state_attr("plant.ficus_microcarpa_ginseng", "problem") }}!
- alias: "Plant: problem with Kentia Palm"
trigger:
- platform: state
entity_id: plant.kentia_palm
to: "problem"
- platform: time
at: "20:00"
condition:
condition: state
entity_id: plant.kentia_palm
state: "problem"
action:
service: notify.all_iphones
data:
title: "Plant in trouble! ⚠️☢️☠️"
message: >
You need to give the Kentia Palm 🌴 attention and love: {{ state_attr("plant.kentia_palm", "problem") }}!
- alias: "Plant: problem with Yucca Elephantipes"
trigger:
- platform: state
entity_id: plant.yucca_elephantipes
to: "problem"
- platform: time
at: "20:00"
condition:
condition: state
entity_id: plant.yucca_elephantipes
state: "problem"
action:
service: notify.all_iphones
data:
title: "Plant in trouble! ⚠️☢️☠️"
message: >
You need to give the Yucca Elephantipes 🌿 attention and love: {{ state_attr("plant.yucca_elephantipes", "problem") }}!