forked from hokagegano/HAConfig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfloorplan.yaml
executable file
·100 lines (91 loc) · 2.84 KB
/
floorplan.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
name: Demo Floorplan
image: /local/custom_ui/floorplan/floorplan.svg
stylesheet: /local/custom_ui/floorplan/floorplan.css
last_motion_entity: sensor.template_last_motion
last_motion_class: last-motion
groups:
- name: Sensors
entities:
- sensor.salon_temperature
- sensor.tempchambre_temperature
- sensor.tempsdb_temperature
- sensor.tempext_temperature
- sensor.tempetage_temperature
text_template: '${entity.state ? entity.state : "unknown"}'
class_template: '
var temp = parseFloat(entity.state.replace("°", "°C"));
if (temp < 10)
return "temp-low";
else if (temp < 25)
return "temp-medium";
else
return "temp-high";
'
- name: Lights
entities:
- light.bibliocolor
- light.bureau
- light.salon_couleur
- light.hall
- light.hue_lightstrip_1
- light.escalier
- light.chambre
- light.sdb
- light.wc
states:
- state: 'on'
class: 'light-on'
- state: 'off'
class: 'light-off'
- name: Switches
entities:
- switch.doorbell
states:
- state: 'on'
class: 'doorbell-on'
- state: 'off'
class: 'doorbell-off'
- name: NVR
entities:
- binary_sensor.blue_iris_nvr
text_template: '${(entity.state === "on") ? "online" : "offline"}'
states:
- state: 'off'
class: 'danger-text'
- state: 'on'
class: 'success-text'
- name: Alarm Panel
entities:
- alarm_control_panel.alarm
states:
- state: 'armed_away'
class: 'alarm-armed'
- state: 'armed_home'
class: 'alarm-armed'
- state: 'disarmed'
class: 'alarm-disarmed'
- name: Binary sensors
entities:
- binary_sensor.front_hallway
- binary_sensor.kitchen
- binary_sensor.master_bedroom
- binary_sensor.theatre_room
states:
- state: 'off'
class: 'info-background'
- state: 'on'
class: 'warning-background'
state_transitions:
- name: On to off
from_state: 'on'
to_state: 'off'
duration: 10
- name: Cameras
entities:
- camera.hallway
- camera.driveway
- camera.front_door
- camera.backyard
states:
- state: 'idle'
class: 'camera-idle'