-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample-floorplan.yaml
69 lines (64 loc) · 1.99 KB
/
example-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
type: 'custom:floorplan-card'
title: Example Floorplan
entity: fp-card
image: /local/example-floorplan.svg
stylesheet: /local/floorplan-card-style.css
groups:
# Example for sensor's. Their current value and if applicable unit
# of measurement will replace the text inside the corresponding
# svg elements.
- name: Sensors
entities:
- sensor.openweathermap_temperature
- sensor.openweathermap_condition
- sensor.openweathermap_humidity
on_update: 'set_text'
# Example for lights with "toggle" feature.
# Svg elements with their name will be styled
# according to the mentioned class as it is specified in the
# css file.
# In addition the lights can be switched on and off by clicking
# on them or by tapping on them in case of a touchscreen.
- name: LightToggles
entities:
- switch.ug_bad_licht
states:
- state: 'on'
class: 'light-on'
- state: 'off'
class: 'light-off'
action:
service: toggle
# Example for lights with info dialogue.
# Svg elements with their name will be styled
# according to the mentioned class as it is specified in the
# css file.
# When clicking or tapping on them the "more info" dialogue opens.
- name: LightMoreInfo
entities:
- light.eg_flur_led
states:
- state: 'on'
class: 'light-on'
- state: 'off'
class: 'light-off'
# Example for window sensors. Svg elements with their name will be styled
# according to the mentioned class as it is specified in the
# css file.
- name: Windows
entities:
- binary_sensor.ug_hobby_fenster
states:
- state: 'off'
class: 'info-background'
- state: 'on'
class: 'open-window'
# Example for movement detection. Svg elements with their name will be styled
# according to the mentioned class as it is specified in the
# css file.
- name: Movement
entities:
- binary_sensor.ug_hobby_bwm2
states:
- state: 'on'
class: 'movement-bg'