-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathha-houry-irrigation
43 lines (43 loc) · 1.23 KB
/
ha-houry-irrigation
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
alias: 'Scheduled Raised Garden Bed irrigation'
description: ''
trigger:
- platform: time_pattern
hours: /1 # every hour
minutes: '0'
seconds: '0'
condition:
- condition: time
after: '05:00:00' # between 5 oclock in the morning
before: '23:00:00' # and 11 oclock in the evenig
weekday:
- mon # every weekday
- tue
- wed
- thu
- fri
- sat
- sun
action:
- if:
- type: is_moist
condition: device
device_id: <DEVICE-ID of the bottom moisture-sensor>
entity_id: binary_sensor.<entity-id of the bottom moisture-sensor>
domain: binary_sensor
then:
- type: turn_on
device_id: <device-id of your smart-plug>
entity_id: switch.<entity-id of your smart-plug>
domain: switch
- delay: # Cut Power after 1:05m (my Pump pumps for 60s)
hours: 0
minutes: 1
seconds: 5
milliseconds: 0
- type: turn_off
device_id: <device-id of your smart-plug>
entity_id: switch.<entity-id of your smart-plug>
domain: switch
else:
# i had a notification-service to remind me to refill the water-tank here, before i finished my "auto-refill-automation"
mode: single