Hoi,
Enkele posts terug zijn er heel wat automations gekomen voor de wasmachine. Ik heb daar de basis gebruikt en komt tot onderstaande...
Maar het werkt precies niet goed.
Ik gebruik blitzwolf plugs.
Die geven in HA een power sensor (Watt ) en een consumption (kwh) sensor.
Welke van de 2 moet ik gebruiken?
Ik gebruik nu de power...
De code:
Volgende input select
Sensor:
Automations:
Hij toont momenteel altijd "wasbeurt uit" , desondanks hij draait, en ik wel degelijk power heb
Enkele posts terug zijn er heel wat automations gekomen voor de wasmachine. Ik heb daar de basis gebruikt en komt tot onderstaande...
Maar het werkt precies niet goed.
Ik gebruik blitzwolf plugs.
Die geven in HA een power sensor (Watt ) en een consumption (kwh) sensor.
Welke van de 2 moet ik gebruiken?
Ik gebruik nu de power...
De code:
Volgende input select
code:
1
2
3
4
5
6
7
8
| wasmachine_status: name: Wasmachine status options: - Wasbeurt uit - Wasbeurt bezig - Wasbeurt afronden - Wasbeurt schoon initial: Wasbeurt uit |
Sensor:
code:
1
2
3
4
5
6
7
8
9
| sensor: - platform: template sensors: wasmachine_status: value_template: "{{ states('input_select.wasmachine_status') }}" friendly_name: 'Wasmachine status' wasmachine_stroom: value_template: "{{ states('sensor.power_wasmachine')|round(1) }}" friendly_name: 'Wasmachine stroomverbruik' |
Automations:
code:
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
| ########################## ## Wasmachine actief ########################## - id: wasmachine_actief alias: Wasmachine op actief bij stroomverbruik trigger: platform: numeric_state entity_id: sensor.wasmachine_stroom above: 25 condition: condition: or conditions: - condition: state entity_id: sensor.wasmachine_status state: Uit - condition: state entity_id: sensor.wasmachine_status state: Schoon - condition: state entity_id: sensor.wasmachine_status state: Afronden action: - service: input_select.select_option data: entity_id: - input_select.wasmachine_status option: Wasbeurt bezig ############################### ## Wasmachine bijna klaar ############################### - id: wasmachine_bijna_klaar alias: Wasmachine naar bijna klaar trigger: platform: numeric_state entity_id: sensor.wasmachine_stroom below: 20 condition: condition: and conditions: - condition: state entity_id: sensor.wasmachine_status state: Wasbeurt bezig action: - service: input_select.select_option data: entity_id: - input_select.wasmachine_status option: Wasbeurt afronden ########################## ## Wasmachine klaar ########################## - id: wasmachine_klaar alias: Wasmachine naar klaar trigger: platform: state entity_id: input_select.wasmachine_status to: Wasbeurt afronden for: minutes: 1 condition: condition: and conditions: - condition: state entity_id: input_select.wasmachine_status state: Wasbeurt afronden action: - service: input_select.select_option data: entity_id: - input_select.wasmachine_status option: Wasbeurt schoon ########################## ## Wasmachine uit ########################## - id: wasmachine_uit alias: Wasmachine naar uit trigger: platform: numeric_state entity_id: sensor.wasmachine_stroom below: 10 for: minutes: 5 condition: condition: and conditions: - condition: state entity_id: sensor.wasmachine_status state: Wasbeurt schoon action: - service: input_select.select_option data: entity_id: - input_select.wasmachine_status option: Wasbeurt uit ############################ ## Wasmachine meldingen ############################ - id: wasmachine_melding alias: Melding dat wasmachine klaar is trigger: platform: state entity_id: sensor.wasmachine_status to: Wasbeurt schoon for: minutes: 1 condition: [] action: - service: notify.mobile_app_nokia_7_plus data: message: De wasmachine is klaar! - service: notify.mobile_app_iphone_kim data: message: De wasmachine is klaar! |
Hij toont momenteel altijd "wasbeurt uit" , desondanks hij draait, en ik wel degelijk power heb