-
Notifications
You must be signed in to change notification settings - Fork 0
/
floorplan.yaml
73 lines (66 loc) · 2.19 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
name: Demo Floorplan
image: /local/custom_ui/floorplan/zeichnung.svg
stylesheet: /local/custom_ui/floorplan/floorplan.css
pan_zoom:
#last_motion_entity: sensor.template_last_motion
#last_motion_class: last-motion
groups:
# - name: Sensors
# entities:
# - sensor.melbourne_now
# text_template: '${entity.state ? entity.state : "unknown"}'
# class_template: '
# var temp = parseFloat(entity.state.replace("°", ""));
# if (temp < 10)
# return "temp-low";
# else if (temp < 30)
# return "temp-medium";
# else
# return "temp-high";
# '
- name: Lights
entities:
- light.yeelight_one
- light.buro
- light.livingroom
- switch.relay_1_1
- switch.led_strip
- switch.led_bulb
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: Cameras
entities:
- camera.quick_cam
- camera.typhoon_cam
states:
- state: 'idle'
class: 'camera-idle'
- name: thermostat_temp
entities:
- climate.aquariumcontroll_2_0
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: Media Players
entities:
- media_player.firetv
- media_player.onkyo
states:
- state: 'off'
class: 'squeezebox-off'
- state: 'idle'
class: 'squeezebox-off'
- state: 'paused'
class: 'squeezebox-off'
- state: 'playing'
class: 'squeezebox-on'