forked from matt8707/hass-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scripts.yaml
47 lines (47 loc) · 1.44 KB
/
scripts.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
wasser_erkannt:
alias: Wasser erkannt
sequence:
- repeat:
while:
- type: is_moist
condition: device
device_id: 6a2d2afa409191a6c5c2be2243454e70
entity_id: binary_sensor.wassersensor_kuche
domain: binary_sensor
- condition: template
value_template: '{{ repeat.index <= 60 }}'
sequence:
- service: notify.notify
data:
message: Wasser erkannt
- service: media_player.play_media
target:
entity_id: media_player.wohnzimmer
data:
media_content_id: media-source://tts/google_translate?message=Wasser+in+der+K%C3%BCche
media_content_type: provider
metadata:
title: Wasser in der Küche
thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
media_class: app
children_media_class:
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://tts
- media_content_type: provider
media_content_id: media-source://tts/google_translate?message=Wasser+in+der+K%C3%BCche
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
mode: single
lightstrip_umschalten:
alias: Lightstrip umschalten
sequence:
- type: toggle
device_id: 4eb33e85485c7d06d680c8aba4fc78e2
entity_id: light.extended_color_light_11
domain: light
mode: single