forked from brianjking/ha-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
floorplan.yaml
60 lines (54 loc) · 1.91 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
name: Floorplan
image: /local/custom_ui/floorplan/floorplan.svg
stylesheet: /local/custom_ui/floorplan/floorplan.css
warnings: # enable warnings (to find out why things might ot be working correctly)
date_format: DD/MMM/YYYY # Date format to use in hover-over text
groups:
- name: Trackers
entities:
- device_tracker.lynette_iphone
- device_tracker.gregs_iphone_8
states:
- state: 'not_home'
class: 'transparent'
- name: Media Players
entities:
- media_player.bedroom
states:
- state: 'off'
class: 'invisible'
- name: Motion
entities:
- binary_sensor.thomas_sensor
- binary_sensor.office_sensor
states:
- state: 'on'
class: 'danger-background'
- state: 'off'
class: 'unclickable'
- name: Weather Temperature
entities:
- sensor.dark_sky_apparent_temperature
#text_template: '${entity.state ? entity.state : "unknown"}'
# An example of rounding up a number, i.e. a temperature of 90.1 becomes 91
text_template: '${entity.state} °c'
- name: Lights
entities:
- light.bedroom
- light.dining_room
- switch.desk_lights_switch
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: Cameras
entities:
- camera.thomas
- camera.drive
- camera.garden
- camera.hall
- camera.landing