-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmj-s01-23.yaml
41 lines (37 loc) · 1.03 KB
/
mj-s01-23.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
---
substitutions:
device_name: mj-s01-23
friendly_name: "Living Room SW 5"
area: "Outside"
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_33_garage_sw_1
else:
- homeassistant.action:
action: light.turn_off
data:
entity_id: light.mj_s01_33_garage_sw_1
- id: !extend on_double
then:
- homeassistant.action:
action: light.toggle
data:
entity_id: light.athom_mini_9_deck_string_lights
- id: !extend on_long
then:
- homeassistant.action:
action: fan.toggle
data:
entity_id: fan.athom_mini_8_deck_fan
- script.execute: flash_purple