-
Notifications
You must be signed in to change notification settings - Fork 0
/
mqtt.yaml
189 lines (182 loc) · 4.61 KB
/
mqtt.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
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
- sensor:
#
# Soil moisture (front garden)
#
name: "Garden Soil moisture"
unique_id: front_garden_soil_moisture
device_class: "moisture"
unit_of_measurement: "%"
suggested_display_precision: 0
state_topic: "gardenino/state"
value_template: "{{ value_json.moisture }}"
json_attributes_topic: "gardenino/state"
json_attributes_template: "{{ value_json | tojson }}"
icon: mdi:water
availability_mode: latest
expire_after: 0
qos: 0
availability:
- topic: "gardenino/available"
payload_available: "online"
payload_not_available: "offline"
- sensor:
#
# Soil condition (front garden)
#
name: "Garden Soil Condition"
unique_id: front_garden_soil_condition
device_class: "enum"
state_topic: "gardenino/state"
value_template: "{{ value_json.soil }}"
icon: mdi:water
availability_mode: latest
expire_after: 0
qos: 0
availability:
- topic: "gardenino/available"
payload_available: "online"
payload_not_available: "offline"
- switch:
#
# Front garden watering: on/off
#
name: "Garden Watering"
unique_id: front_garden_watering
state_topic: "gardenino/state"
value_template: "{{ value_json.relay_1 }}"
state_on: "on"
state_off: "off"
command_topic: "gardenino/cmd"
payload_on: "relay 1 on"
payload_off: "relay 1 off"
availability:
- topic: "gardenino/available"
payload_available: "online"
payload_not_available: "offline"
availability_mode: latest
enabled_by_default: true
optimistic: false
qos: 0
retain: true
icon: mdi:sprinkler
device_class: "outlet"
- switch:
#
# Front garden lights: on/off
#
name: "Garden Decorative Lights"
unique_id: front_garden_small_lights
state_topic: "gardenino/state"
value_template: "{{ value_json.relay_2 }}"
state_on: "on"
state_off: "off"
command_topic: "gardenino/cmd"
payload_on: "relay 2 on"
payload_off: "relay 2 off"
availability:
- topic: "gardenino/available"
payload_available: "online"
payload_not_available: "offline"
availability_mode: latest
enabled_by_default: true
optimistic: false
qos: 0
retain: true
icon: mdi:post-lamp
device_class: "outlet"
- switch:
#
# Front garden light flood: on/off
#
name: "Garden Light Flood 1"
unique_id: front_garden_light_flood
state_topic: "gardenino/state"
value_template: "{{ value_json.relay_3 }}"
state_on: "on"
state_off: "off"
command_topic: "gardenino/cmd"
payload_on: "relay 3 on"
payload_off: "relay 3 off"
availability:
- topic: "gardenino/available"
payload_available: "online"
payload_not_available: "offline"
availability_mode: latest
enabled_by_default: true
optimistic: false
qos: 0
retain: true
icon: mdi:light-flood-down
device_class: "outlet"
- switch:
#
# Front garden light flood (neighbor): on/off
#
name: "Garden Light Flood 2"
unique_id: front_garden_light_flood_neighbor
state_topic: "gardenino/state"
value_template: "{{ value_json.relay_4 }}"
state_on: "on"
state_off: "off"
command_topic: "gardenino/cmd"
payload_on: "relay 4 on"
payload_off: "relay 4 off"
availability:
- topic: "gardenino/available"
payload_available: "online"
payload_not_available: "offline"
availability_mode: latest
enabled_by_default: true
optimistic: false
qos: 0
retain: true
icon: mdi:light-flood-down
device_class: "outlet"
- switch:
#
# Enables the moisuture sensor to lock watering on front garden (wet soil)
#
name: "Enables moisuture Sensor to Lock Watering"
unique_id: front_garden_enables_moisture_sensor
state_topic: "gardenino/state"
value_template: "{{ value_json.sensor }}"
state_on: "on"
state_off: "off"
command_topic: "gardenino/cmd"
payload_on: "sensor on"
payload_off: "sensor off"
availability:
- topic: "gardenino/available"
payload_available: "online"
payload_not_available: "offline"
availability_mode: latest
enabled_by_default: true
optimistic: false
qos: 0
retain: true
icon: mdi:sprinkler
device_class: "outlet"
- switch:
#
# Enables watering watchdog on front garden (5 min)
#
name: "Enables Watering Watchdog"
unique_id: front_garden_enables_watering_watchdog
state_topic: "gardenino/state"
value_template: "{{ value_json.watchdog }}"
state_on: "on"
state_off: "off"
command_topic: "gardenino/cmd"
payload_on: "watchdog on"
payload_off: "watchdog off"
availability:
- topic: "gardenino/available"
payload_available: "online"
payload_not_available: "offline"
availability_mode: latest
enabled_by_default: true
optimistic: false
qos: 0
retain: true
icon: mdi:sprinkler
device_class: "outlet"