-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmj-s01-25.yaml
50 lines (46 loc) · 1.39 KB
/
mj-s01-25.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
50
---
substitutions:
device_name: mj-s01-25
friendly_name: "Basement Stairs SW 2"
area: "Basement Stairs"
packages:
common: !include templates/common.yaml
device: !include templates/mj-s01-light.yaml
script:
- id: !extend on_single
then:
- if:
condition:
lambda: 'return id(relay_light).current_values.is_on();'
then:
- homeassistant.action:
action: light.turn_on
data:
entity_id: light.mj_s01_34_utility_room_sw_1
- homeassistant.action:
action: light.turn_on
data:
entity_id: light.athom_mini_4_utility_room_sw_2
else:
- homeassistant.action:
action: light.turn_off
data:
entity_id: light.mj_s01_34_utility_room_sw_1
- homeassistant.action:
action: light.turn_off
data:
entity_id: light.athom_mini_4_utility_room_sw_2
- id: !extend on_long
then:
- homeassistant.action:
action: automation.trigger
data:
entity_id: automation.basement_off
#- script.execute: flash_purple
- id: !extend on_double
then:
- homeassistant.action:
action: scene.turn_on
data:
entity_id: scene.game_time
#- script.execute: flash_purple