forked from gio-dot/Washing-Machine-Sonoff-Pow-R2-Esphome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
home_assistant_w_machine.yaml
49 lines (46 loc) · 1.38 KB
/
home_assistant_w_machine.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
utility_meter:
##############################################################
## Totale annuo kWh Sonoff Pow r2 lavatrice ##
##############################################################
sonoff_pow_r2_year_energy: # sensore diretto dal pow r2 esphome
source: sensor.sonoff_pow_r2_total_daily_energy
cycle: yearly
tariffs:
- peak
automation:
- alias: washing machine ending
trigger:
- platform: state
entity_id: binary_sensor.run
from: 'on'
to: 'off'
action:
- service: media_player.volume_set
data_template:
entity_id: media_player.googlehome7895
volume_level: 0.6
- service: tts.google_translate_say
entity_id: media_player.googlehome7895
data_template:
message: >
La lavatrice ha finito
language: 'it'
cache: false
- alias: washing machine start
trigger:
- platform: state
entity_id: binary_sensor.run
from: 'off'
to: 'on'
action:
- service: media_player.volume_set
data_template:
entity_id: media_player.googlehome7895
volume_level: 0.6
- service: tts.google_translate_say
entity_id: media_player.googlehome7895
data_template:
message: >
La lavatrice ha iniziato
language: 'it'
cache: false