-
Notifications
You must be signed in to change notification settings - Fork 128
/
hasp_demo.yaml
181 lines (169 loc) · 4.83 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
##############################################################################
# The following devices are used by the demo automations, feel free to remove
# these and/or replace with your own devices, but remember to change
# any other automations here which reference them.
# Pull weather reports from NWS, probably only useful in North America
weather:
- platform: nws
api_key: [email protected]
name: nws
# create a demo alarm panel with secure code. also usable on my luggage.
alarm_control_panel:
- platform: manual
code: 1234
input_number:
# These input_numbers contain the user code entry for the alarm panel
hasp_alarmcode1:
name: plate01 AlarmCode1
icon: mdi:numeric
min: -1
max: 9
step: 1
initial: -1
hasp_alarmcode2:
name: plate01 AlarmCode2
icon: mdi:numeric
min: -1
max: 9
step: 1
initial: -1
hasp_alarmcode3:
name: plate01 AlarmCode3
icon: mdi:numeric
min: -1
max: 9
step: 1
initial: -1
hasp_alarmcode4:
name: plate01 AlarmCode4
icon: mdi:numeric
min: -1
max: 9
step: 1
initial: -1
# Hide the input_numbers created above by default
homeassistant:
customize:
input_number.hasp_alarmcode1:
hidden: true
input_number.hasp_alarmcode2:
hidden: true
input_number.hasp_alarmcode3:
hidden: true
input_number.hasp_alarmcode4:
hidden: true
# Create a demo HVAC device
climate:
- platform: mqtt
mode_command_topic: homeassistant/mqtthvac/mode
mode_state_topic: homeassistant/mqtthvac/mode
power_command_topic: homeassistant/mqtthvac/power
temperature_command_topic: homeassistant/mqtthvac/temperature
temperature_state_topic: homeassistant/mqtthvac/temperature
temperature_low_command_topic: homeassistant/mqtthvac/temperature_low
temperature_low_state_topic: homeassistant/mqtthvac/temperature_low
temperature_high_command_topic: homeassistant/mqtthvac/temperature_high
temperature_high_state_topic: homeassistant/mqtthvac/temperature_high
fan_mode_command_topic: homeassistant/mqtthvac/fan
fan_mode_state_topic: homeassistant/mqtthvac/fan
away_mode_command_topic: homeassistant/mqtthvac/away
away_mode_state_topic: homeassistant/mqtthvac/away
hold_command_topic: homeassistant/mqtthvac/hold
hold_state_topic: homeassistant/mqtthvac/hold
min_temp: 55
max_temp: 95
retain: true
# Create a demo fan device
fan:
- platform: mqtt
name: "MQTT Fan"
state_topic: "homeassistant/mqttfan/state"
command_topic: "homeassistant/mqttfan/state"
oscillation_state_topic: "homeassistant/mqttfan/oscillation"
oscillation_command_topic: "homeassistant/mqttfan/oscillation"
speed_state_topic: "homeassistant/mqttfan/speed"
speed_command_topic: "homeassistant/mqttfan/speed"
retain: true
# Create 3 demo lights
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
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