@@ -57,15 +57,25 @@ custom_card_apexcharts:
57
57
card :
58
58
type : " custom:button-card"
59
59
entity : " [[[ return variables.entity_1.entity_id ]]]"
60
- icon : " [[[ return variables.entity_1.icon ]]]"
61
- name : " [[[ return variables.entity_1.name ]]]"
62
60
template :
63
61
- " card_generic_swap"
62
+ variables :
63
+ ulm_card_generic_swap_name : " [[[ return variables.entity_1.name ]]]"
64
+ ulm_card_generic_swap_icon : " [[[ return variables.entity_1.icon ]]]"
65
+ custom_fields :
66
+ item1 :
67
+ card :
68
+ type : " custom:button-card"
69
+ custom_fields :
70
+ item1 :
71
+ card :
72
+ type : " custom:button-card"
73
+ styles :
74
+ icon :
75
+ - color : " [[[ return `rgba(var(--color-${variables.entity_1.color}), 1)`;]]]"
76
+ img_cell :
77
+ - background-color : " [[[ return `rgba(var(--color-${variables.entity_1.color}), 0.20)`;]]]"
64
78
styles :
65
- icon :
66
- - color : " [[[ return `rgba(var(--color-${variables.entity_1.color}), 1)`;]]]"
67
- img_cell :
68
- - background-color : " [[[ return `rgba(var(--color-${variables.entity_1.color}), 0.20)`;]]]"
69
79
card :
70
80
- box-shadow : " none"
71
81
- border-radius : " none"
@@ -75,15 +85,25 @@ custom_card_apexcharts:
75
85
card :
76
86
type : " custom:button-card"
77
87
entity : " [[[ return variables.entity_2.entity_id ]]]"
78
- icon : " [[[ return variables.entity_2.icon ]]]"
79
- name : " [[[ return variables.entity_2.name ]]]"
80
88
template :
81
89
- " card_generic_swap"
90
+ variables :
91
+ ulm_card_generic_swap_name : " [[[ return variables.entity_2.name ]]]"
92
+ ulm_card_generic_swap_icon : " [[[ return variables.entity_2.icon ]]]"
93
+ custom_fields :
94
+ item1 :
95
+ card :
96
+ type : " custom:button-card"
97
+ custom_fields :
98
+ item1 :
99
+ card :
100
+ type : " custom:button-card"
101
+ styles :
102
+ icon :
103
+ - color : " [[[ return `rgba(var(--color-${variables.entity_2.color}), 1)`;]]]"
104
+ img_cell :
105
+ - background-color : " [[[ return `rgba(var(--color-${variables.entity_2.color}), 0.20)`;]]]"
82
106
styles :
83
- icon :
84
- - color : " [[[ return `rgba(var(--color-${variables.entity_2.color}), 1)`;]]]"
85
- img_cell :
86
- - background-color : " [[[ return `rgba(var(--color-${variables.entity_2.color}), 0.20)`;]]]"
87
107
card :
88
108
- box-shadow : " none"
89
109
- border-radius : " none"
@@ -93,15 +113,25 @@ custom_card_apexcharts:
93
113
card :
94
114
type : " custom:button-card"
95
115
entity : " [[[ return variables.entity_3.entity_id ]]]"
96
- icon : " [[[ return variables.entity_3.icon ]]]"
97
- name : " [[[ return variables.entity_3.name ]]]"
98
116
template :
99
117
- " card_generic_swap"
118
+ variables :
119
+ ulm_card_generic_swap_name : " [[[ return variables.entity_3.name ]]]"
120
+ ulm_card_generic_swap_icon : " [[[ return variables.entity_3.icon ]]]"
121
+ custom_fields :
122
+ item1 :
123
+ card :
124
+ type : " custom:button-card"
125
+ custom_fields :
126
+ item1 :
127
+ card :
128
+ type : " custom:button-card"
129
+ styles :
130
+ icon :
131
+ - color : " [[[ return `rgba(var(--color-${variables.entity_3.color}), 1)`;]]]"
132
+ img_cell :
133
+ - background-color : " [[[ return `rgba(var(--color-${variables.entity_3.color}), 0.20)`;]]]"
100
134
styles :
101
- icon :
102
- - color : " [[[ return `rgba(var(--color-${variables.entity_3.color}), 1)`;]]]"
103
- img_cell :
104
- - background-color : " [[[ return `rgba(var(--color-${variables.entity_3.color}), 0.20)`;]]]"
105
135
card :
106
136
- box-shadow : " none"
107
137
- border-radius : " none"
0 commit comments