|
13 | 13 | border_width: 2 |
14 | 14 | border_color: $border_color |
15 | 15 | radius: 10 |
| 16 | + scrollable: false |
16 | 17 | #width: 100% |
17 | 18 | width: 100 |
| 19 | + layout: vertical |
| 20 | + pad_all: 5 |
18 | 21 | widgets: |
19 | 22 | - label: |
20 | | - x: 5 |
21 | | - y: 5 |
22 | | - width: 90 |
| 23 | + #width: 90 |
23 | 24 | #height: 50 |
24 | 25 | text: "${room_name}" |
25 | 26 | text_font: visuelt_20 |
|
28 | 29 | long_mode: WRAP |
29 | 30 |
|
30 | 31 | # TEMPERATURE |
| 32 | + - obj: |
| 33 | + width: 100% |
| 34 | + layout: |
| 35 | + type: flex |
| 36 | + flex_flow: row |
| 37 | + flex_align_main: center |
| 38 | + flex_align_cross: center |
| 39 | + flex_align_track: center |
| 40 | + pad_column: 4 |
| 41 | + widgets: |
| 42 | + - label: |
| 43 | + width: 24 # this makes the icon a bit smaller to save some space |
| 44 | + text: "${mdi_thermometer}" |
| 45 | + text_font: $icon_font_small |
| 46 | + text_color: $icon_temp_color |
31 | 47 |
|
32 | | - - label: |
33 | | - x: 0 |
34 | | - y: 70 |
35 | | - width: 50 |
36 | | - height: 40 |
37 | | - text: "${mdi_thermometer}" |
38 | | - text_font: $icon_font_small |
39 | | - text_color: $icon_temp_color |
40 | | - |
41 | | - - label: |
42 | | - id: lbl_current_temp_${room_id} |
43 | | - x: 30 |
44 | | - y: 70 |
45 | | - width: 60 |
46 | | - height: 50 |
47 | | - text: "22.0°C" |
48 | | - text_font: nunito_18 |
49 | | - text_color: $icon_temp_color |
| 48 | + - label: |
| 49 | + id: lbl_current_temp_${room_id} |
| 50 | + #width: 60 |
| 51 | + text: "22.0°C" |
| 52 | + text_font: nunito_18 |
| 53 | + text_color: $icon_temp_color |
50 | 54 |
|
51 | 55 | # HUMIDITY |
52 | | - |
53 | | - - label: |
54 | | - x: 0 |
55 | | - y: 110 |
56 | | - width: 50 |
57 | | - height: 40 |
58 | | - text: "${mdi_water_percent}" |
59 | | - text_font: $icon_font_small |
60 | | - text_color: $icon_humidity_color |
61 | | - |
62 | | - - label: |
63 | | - id: lbl_current_humidity_${room_id} |
64 | | - x: 30 |
65 | | - y: 115 |
66 | | - width: 60 |
67 | | - height: 50 |
68 | | - text: "55%" |
69 | | - text_font: nunito_18 |
70 | | - text_color: $icon_humidity_color |
| 56 | + - obj: |
| 57 | + width: 100% |
| 58 | + layout: |
| 59 | + type: flex |
| 60 | + flex_flow: row |
| 61 | + flex_align_main: center |
| 62 | + flex_align_cross: center |
| 63 | + flex_align_track: center |
| 64 | + pad_column: 4 |
| 65 | + widgets: |
| 66 | + - label: |
| 67 | + width: 24 # this makes the icon a bit smaller to save some space |
| 68 | + text: "${mdi_water_percent}" |
| 69 | + text_font: $icon_font_small |
| 70 | + text_color: $icon_humidity_color |
| 71 | + - label: |
| 72 | + id: lbl_current_humidity_${room_id} |
| 73 | + #width: 60 |
| 74 | + text: "55%" |
| 75 | + text_font: nunito_18 |
| 76 | + text_color: $icon_humidity_color |
71 | 77 |
|
72 | 78 | # WINDOW CONTACT SENSOR |
73 | | - |
74 | | - - label: |
75 | | - id: lbl_icon_window_${room_id} |
76 | | - x: 30 |
77 | | - y: 160 |
78 | | - width: 50 |
79 | | - height: 30 |
80 | | - text: "${mdi_window_closed_variant}" |
81 | | - text_font: $icon_font_small |
82 | | - text_color: $icon_on_color |
| 79 | + - obj: |
| 80 | + width: 100% |
| 81 | + layout: |
| 82 | + type: flex |
| 83 | + flex_flow: row |
| 84 | + flex_align_main: center |
| 85 | + flex_align_cross: center |
| 86 | + flex_align_track: center |
| 87 | + widgets: |
| 88 | + - label: |
| 89 | + id: lbl_icon_window_${room_id} |
| 90 | + width: 24 # this makes the icon a bit smaller to save some space |
| 91 | + text: "${mdi_window_closed_variant}" |
| 92 | + text_font: $icon_font_small |
| 93 | + text_color: $icon_on_color |
83 | 94 |
|
84 | 95 | # - label: |
85 | 96 | # id: lbl_window_status_${room_id} |
|
0 commit comments