-
Notifications
You must be signed in to change notification settings - Fork 1
/
washing_machine.yaml.temp
60 lines (54 loc) · 1.68 KB
/
washing_machine.yaml.temp
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
#
# Washing machine
#
homeassistant:
customize:
automation.washing_machine_started:
icon: mdi:washing-machine
automation.washing_machine_completed:
icon: mdi:washing-machine
sensor.washing_machine:
icon: mdi:washing-machine
automation:
# Set the washing machine in busy state
- id: washing_machine_started
alias: 'Washing machine started'
trigger:
- platform: template
value_template: '{{ states.sensor.philio_technology_corporation_pan16_smart_energy_plug_in_switch_power.state|float > 5 }}'
condition:
condition: state
entity_id: input_boolean.washing_machine_busy
state: 'off'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.washing_machine_busy
# Set the washing machine in ready state and notify about completion
- id: washing_machine_completed
alias: 'Washing machine completed'
trigger:
- platform: template
value_template: '{{ states.sensor.philio_technology_corporation_pan16_smart_energy_plug_in_switch_power.state|float < 2 }}'
condition:
condition: state
entity_id: input_boolean.washing_machine_busy
state: 'on'
action:
- service: input_boolean.turn_off
entity_id: input_boolean.washing_machine_busy
- service: notify.notify
data:
message: 'The washing machine is done!'
input_boolean:
washing_machine_busy:
name: Washing machine is running
initial: off
icon: mdi:washing-machine
group:
laundry:
name: Laundry
control: hidden
entities:
- input_boolean.washing_machine_busy
- automation.washing_machine_started
- automation.washing_machine_completed