-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfloorplan.yaml
161 lines (145 loc) · 5.26 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
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
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: thermostats_temp
entities:
- sensor.tv_room_sensor_temperature
- sensor.monkey_room_temperature
- sensor.master_bed_temperature
- sensor.kitchen_multi_sensor_temperature
- sensor.attic_f_temperature
- sensor.granma_temperature
- sensor.dark_sky_temperature
- sensor.broadlink_torn_temperature
- sensor.nina_room_temperature
- sensor.game_room_temperature
text_template: '${entity.state ? entity.state : "unknown"}'
# text_template: '${entity.attributes.current_temperature ? entity.attributes.current_temperature : "undefined"}'
- name: text_states
entities:
- sensor.tv_room_sensor_relative_humidity
- sensor.dark_sky_humidity
- sensor.monkey_room_humidity
- sensor.master_bed_humidity
- sensor.nina_room_humidity
- sensor.kitchen_multi_sensor_relative_humidity
- sensor.attic_humidity
- sensor.game_room_humidity
- sensor.attic_humidity_2
- sensor.dark_sky_temperature
- sensor.dark_sky_humidity
- sensor.last_message
text_template: '${entity.state ? entity.state.replace(/\s{2,}/g,"") : "undefined"}'
- name: Sensors
entities:
- sensor.mb_motion_status
- sensor.gr_motion_status
- sensor.front_p_motion
- sensor.attic_motion_status
- sensor.tv_motion_status
- sensor.dining_motion_status
states:
- state: 'off'
class: 'info-background'
- state: 'on'
class: 'warning-background'
state_transitions:
- name: motion detected to standby
from_state: 'motion detected'
to_state: 'standby'
duration: 10
- name: Binary sensors
entities:
- binary_sensor.kitchen_multi_sensor_sensor
- binary_sensor.front_motion_sensor
- binary_sensor.back_motion_sensor
- binary_sensor.tv_room_sensor_sensor
- binary_sensor.master_bedroom_presence
- binary_sensor.nina_room_presence
- binary_sensor.hallway_presence
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: Light
entities:
- group.kit
- light.kitchen_bar_light_level
- light.kitchen_cabinet_lights
- light.kitchen_light_level
- light.dining_room_level
- light.front_entry_level
- light.master_bedroom_fan_level
- light.porch_strip
- light.tv_room_light_level
- light.attic_lights_level
- light.david_picture
- light.zelda_picture
- light.zooz_zen22_dimmer_level
- light.zooz_zen22_dimmer_level_2
# - light.hair_area_level
states:
- state: 'on'
class: 'light-on'
- state: 'off'
class: 'light-off'
action:
service: toggle
- name: Switch
entities:
- switch.front_entry_light_switch
- switch.nina_fan_2
- switch.attic_fans
- switch.rabbit_area_switch
- switch.game_room_light
- switch.game_room_fan
- switch.master_bathroom_light
- switch.master_bathroom_fan
- switch.master_bedroom_light
- switch.master_bedroom_fan_light_switch
- switch.tv_room_fan
- switch.master_bedroom_hallway_light_switch
- switch.master_bedroom_fan_light_switch
# - switch.front_lights_switch
states:
- state: 'on'
class: 'doorbell-on'
- state: 'off'
class: 'doorbell-off'
action:
service: toggle
- name: automations
entities:
- automation.turn_on_master_bedroom_light_when_there_is_movement
- automation.turn_on_kitchen_light_when_there_is_movement
- automation.turn_off_game_room_light_when_there_is_no_movement
#sensor.attic_temperature
states:
- state: 'on'
class: 'auto-on'
- state: 'off'
class: 'auto-off'
action:
service: toggle
- name: input select
entities:
- input_select.fan_speed
states:
- state: 'on'
class: 'auto-on'
- state: 'off'
class: 'auto-off'
# action:
# service: toggle
shell_command:
update_hass: >-
hassctl update-hass && hassctl config && hassctl restart