-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfloorplan.yaml
125 lines (113 loc) · 3.99 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
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
name: Home
image: /local/custom_ui/floorplan/floorplan.svg
stylesheet: /local/custom_ui/floorplan/floorplan.css
#warnings:
#pan_zoom:
#hide_app_toolbar:
date_format: DD-MMM-YYYY
track_duration: 10
last_motion_entity: sensor.template_last_motion
last_motion_class: last-motion
groups:
- name: Last Motion
entities:
- sensor.template_last_motion
- name: Media Players
entities:
- media_player.kitchen
- media_player.mpd
- media_player.garage
- name: Sensors
entities:
- sensor.pws_temp_f
#text_template: '${entity.state ? entity.state : "unknown"}'
text_template: '${entity.state ? Math.ceil(entity.state) : "undefined"}'
class_template: '
var temp = parseFloat(entity.state.replace("°", ""));
if (temp < 40)
return "temp-low";
else if (temp < 60)
return "temp-medium";
else
return "temp-high";
'
- name: Lights
entities:
- switch.front_outside_lights_switch
- light.back_patio_light_level
- group.house_lights
states:
- state: 'on'
class: 'light-on'
- state: 'off'
class: 'light-off'
action:
domain: homeassistant # This optional parameter allows you to use other services such as homeassistant.toggle like here.
service: toggle
- name: Switches
entities:
- switch.doorbell
states:
- state: 'on'
class: 'doorbell-on'
- state: 'off'
class: 'doorbell-off'
- name: NVR
entities:
- device_tracker.front_door1
text_template: '${(entity.state === "home") ? "online" : "offline"}'
states:
- state: 'off'
class: 'danger-text'
- state: 'on'
class: 'success-text'
- name: Alarm Panel
entities:
- alarm_control_panel.house_alarm
states:
- state: 'armed_away'
class: 'alarm-armed'
- state: 'armed_home'
class: 'alarm-armed'
- state: 'disarmed'
class: 'alarm-disarmed'
- name: Motion sensors
entities:
- sensor.dining_room_motion_sensor
- sensor.half_bath_motion_sensor
- sensor.front_hall_motion_sensor
- sensor.family_room_motion_sensor
- sensor.garage_inside_motion_sensor
- sensor.kids_room1_motion_sensor
states:
- state: 'Ready'
class: 'info-background'
- state: 'Idle'
class: 'info-background'
- state: 'Motion'
class: 'warning-background'
- state: 'Unknown'
class: 'warning-background'
- name: Cameras
entities:
- camera.garage
- camera.front_door
- camera.back_yard
states:
- state: 'idle'
class: 'camera-idle'
# - name: thermostat_temp
# entities:
# - climate.downstairs
# - climate.upstairs
# text_template: '${entity.attributes.current_temperature ? entity.attributes.current_temperature : "undefined"}'
#
# The above text_template uses extended attributes from the climate.* objects to get current temperature.
# - name: text_states
# entities:
# - sensor.downstairs_thermostat_humidity
# - sensor.dark_sky_temperature
# - sensor.last_message
# text_template: '${entity.state ? entity.state.replace(/\s{2,}/g,"") : "undefined"}'
#
# The above text_template uses jQuery syntax to search and replace any instance of 2 consecutive (or more) spaces in a string of text.