forked from caiosweet/Package-Natural-Events
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcard_natural_events.yaml
67 lines (63 loc) · 2.58 KB
/
card_natural_events.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
## Card CONTENITORE Principale
# type: custom:stack-in-card
# mode: vertical
# type: vertical-stack
type: custom:vertical-stack-in-card
style: |
ha-card {
{# background: rgb(63,94,251); #}
{# background: radial-gradient(circle, rgba(63,94,251,1) 0%, rgba(210,210,210,1) 100%); #}
{# background-color: trasparent; #}
border: 1px solid {% if is_state('binary_sensor.global', 'on') %} {{state_attr('binary_sensor.global','level')}} {% else %} Green {% endif %};
}
# style:
# .: |
# ha-card {
# --ha-card-box-shadow: none;
# background-color: transparent;
# border-radius: none;
# border: 1px solid {% if is_state('binary_sensor.global', 'on') %} {{state_attr('binary_sensor.global','level')}} {% else %} Green {% endif %};
# }
cards:
- !include natural_events/markdown_header.yaml
# - !include natural_events/banner_header.yaml
# - !include natural_events/custom_button_header.yaml
# - !include natural_events/custom_button_header2.yaml
# - !include natural_events/picture_elements.yaml
- type: conditional # CARDS VISUALIZZATE SOLO SE INPUT BOOLEAN NATURAL EVENTS ON!!
conditions:
- entity: input_boolean.natural_events
state: 'on'
card:
type: vertical-stack
cards:
- type: entities # CONTENITORE MENU Impostazioni fold
style: |
div#states.card-content {padding-block-end: 0;padding-block-start: 0;}
ha-card {background:none; border-radius: 0px; box-shadow: none;}
entities:
- !include natural_events/fold_settings.yaml
- !include natural_events/fold_meteoalert.yaml
- !include natural_events/fold_geoalert.yaml
- type: conditional # CARDS VISUALIZZATE SOLO SE INPUT BOOLEAN NATURAL EVENTS OFF!!
conditions:
- entity: input_boolean.natural_events
state: 'off'
card:
!include natural_events/auto_sensors.yaml
- type: conditional # CARDS VISUALIZZATE SOLO SE INPUT BOOLEAN NATURAL EVENTS ON!!
conditions:
- entity: input_boolean.natural_events
state: 'on'
card:
type: vertical-stack
cards:
- !include natural_events/markdown_gdacs.yaml
- !include natural_events/markdown_quake.yaml
- !include natural_events/markdown_dpc.yaml
- !include natural_events/markdown_burze.yaml
- !include natural_events/markdown_meteoalarm.yaml
- !include natural_events/markdown_meteoalarm_custom.yaml
- !include natural_events/picture_map_meteo.yaml
- !include natural_events/map_geo_location.yaml
- !include natural_events/iframe_map_windy.yaml