forked from aderusha/HASwitchPlate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hasp_demo.yaml
99 lines (91 loc) · 2.3 KB
/
hasp_demo.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
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
##############################################################################
# The following devices are used by the demo automations, feel free to remove
# these and/or replace with your own devices
weather:
- platform: met
alarm_control_panel:
- platform: manual
code: 1234
light:
- platform: mqtt
name: "Light 1"
command_topic: "homeassistant/light/light1"
state_topic: "homeassistant/light/light1"
brightness_command_topic: "homeassistant/light/light1/bright"
brightness_state_topic: "homeassistant/light/light1/bright"
- platform: mqtt
name: "Light 2"
command_topic: "homeassistant/light/light2"
state_topic: "homeassistant/light/light2"
brightness_command_topic: "homeassistant/light/light2/bright"
brightness_state_topic: "homeassistant/light/light2/bright"
- platform: mqtt
name: "Light 3"
command_topic: "homeassistant/light/light3"
state_topic: "homeassistant/light/light3"
brightness_command_topic: "homeassistant/light/light3/bright"
brightness_state_topic: "homeassistant/light/light3/bright"
##############################################################################
# Create a group for the lights
group:
light_toggle_group:
name: Light Toggle Group
view: no
entities:
- light.light_1
- light.light_2
- light.light_3
scene:
- name: Lights On
entities:
light.light_1:
state: on
brightness: 255
light.light_2:
state: on
brightness: 255
light.light_3:
state: on
brightness: 255
light.plate01_backlight:
state: on
brightness: 255
- name: Daylight
entities:
light.light_1:
state: on
brightness: 150
light.light_2:
state: on
brightness: 150
light.light_3:
state: on
brightness: 150
light.plate01_backlight:
state: on
brightness: 150
- name: Night
entities:
light.light_1:
state: on
brightness: 50
light.light_2:
state: on
brightness: 50
light.light_3:
state: on
brightness: 50
light.plate01_backlight:
state: on
brightness: 50
- name: Lights Off
entities:
light.light_1:
state: off
light.light_2:
state: off
light.light_3:
state: off
light.plate01_backlight:
state: on
brightness: 20