forked from Senbei123/tristanssmartesheim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flurplanBeispiel
145 lines (145 loc) · 4.68 KB
/
flurplanBeispiel
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
views:
- title: EG
path: Flurplan
type: panel
icon: null
badges: []
cards:
- type: custom:config-template-card
entities:
- light.esstisch_2
- switch.wz_kueche_weihnachtsplug
- .... # Eure Entitäten nicht vergessen!!!
card:
type: picture-elements
image: /local/floorplan/EG-Nacht.png
style: |
ha-card:first-child {
background: rgba(42, 46, 48, 1)
}
elements:
- type: image
action: none
entity: sun.sun
state_image:
above_horizon: /local/floorplan/EG-TAG.png
below_horizon: /local/floorplan/transparent.png
tap_action:
action: none
hold_action:
action: none
style:
top: 50%
left: 50%
width: 100%
height: 100%
- type: image
action: none
entity: light.esstisch_2
hold_action:
action: none
tap_action:
action: none
image: /local/floorplan/EG-Esstisch.png
style:
filter: >-
${ "hue-rotate(" +
(states['light.esstisch_2'].attributes.hs_color ?
states['light.esstisch_2'].attributes.hs_color[0] : 0) +
"deg)"}
opacity: >-
${states['light.esstisch_2'].state === 'on' ?
(states['light.esstisch_2'].attributes.brightness / 255) :
'0'}
mix-blend-mode: lighten
top: 50%
left: 50%
width: 100%
height: 100%
- type: image
action: none
entity: switch.wz_kueche_weihnachtsplug
hold_action:
action: none
tap_action:
action: none
state_image:
'on': /local/floorplan/EG-Sterne.png
'off': /local/floorplan/transparent.png
unavailable: /local/floorplan/transparentError.png
style:
mix-blend-mode: lighten
top: 50%
left: 50%
width: 100%
height: 100%
- type: image
action: none
entity: switch.spielzimmer_lampe
hold_action:
action: none
tap_action:
action: none
state_image:
'on': /local/floorplan/EG-Spielzimmer.png
'off': /local/floorplan/transparent.png
unavailable: /local/floorplan/transparentError.png
style:
mix-blend-mode: lighten
top: 50%
left: 50%
width: 100%
height: 100%
- type: state-icon
entity: switch.wc_licht
icon: mdi:lightbulb
style:
left: 75.3%
top: 85.2%
'--iron-icon-stroke-color': '#969696'
border-radius: 50%
text-align: center
background-color: rgba(255, 255, 255, 0.3)
tap_action:
action: toggle
- type: state-label
entity: sensor.wz_temperatur
style:
left: 40%
top: 62%
color: '#000'
border-radius: 50%
text-align: center
background-color: rgba(255, 255, 255, 0.3)
font-size: 11px
font-weight: bold
- type: state-icon
entity: binary_sensor.wz_schrankwand_bewegung
icon: mdi:run
style:
left: 28.4%
top: 60.2%
'--iron-icon-stroke-color': '#969696'
border-radius: 50%
text-align: center
background-color: rgba(255, 255, 255, 0.3)
- type: state-icon
entity: media_player.wohnzimmer
icon: mdi:speaker
style:
left: 69.4%
top: 76.4%
'--iron-icon-stroke-color': '#969696'
border-radius: 50%
text-align: center
background-color: rgba(255, 255, 255, 0.3)
- title: Keller
path: Flurplan-Keller
type: panel
icon: null
badges: []
cards:
- type: custom:config-template-card
entities:
- switch.keller_waschmaschine
..... und so weiter und so fort... :)