-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinfopic.yaml
More file actions
69 lines (69 loc) · 1.81 KB
/
infopic.yaml
File metadata and controls
69 lines (69 loc) · 1.81 KB
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:button-card
variables:
background: /local/viewassist/announcebird.jpg
infocardversion: 1.0.2
template:
- variable_template
- body_template
styles:
grid:
- grid-template-areas: |
"title status"
"image message"
"card assist"
card:
- background: "[[[ return `center / cover repeat url(${variables.background})` ]]]"
- background-size: cover
custom_fields:
image:
- align-self: center
- justify-self: center
- object-fit: contain
- width: 75%
message:
- font-size: "[[[ return variables.var_font_size ]]]"
- position: relative
- padding: 10px
- border-radius: 10px
- width: 95%
- text-align: start
- text-wrap: wrap
- justify-content: center
- align-self: center
- padding: 2%
custom_fields:
title:
card:
type: custom:button-card
icon: mdi:clock
name: "[[[ return variables.var_current_time ]]]"
tap_action:
action: navigate
navigation_path: clock
hold_action:
action: navigate
navigation_path: floorplan
styles:
card:
- background-color: transparent
- border-width: 0px
- width: auto
- padding: 5px
grid:
- grid-template-areas: "\"i n\""
- grid-template-rows: min-content min-content
- grid-template-columns: 100px auto
name:
- font-size: 8vh
- font-weight: bold
- color: white
- text-shadow: 2px 2px black
icon:
- filter: drop-shadow(2px 2px 2px black)
- width: 12vh
- color: white
image:
card:
type: picture
image: "[[[ return states[variables.var_assistsat_entity].attributes.image; ]]]"
message: "[[[ return variables.var_message ]]]"