Skip to content

Commit b97aa93

Browse files
authored
Merge pull request #977 from UI-Lovelace-Minimalist/release
Release V1.1.2 (add support for Browser_mod 2.0.0)
2 parents 06ca215 + db7917f commit b97aa93

34 files changed

+1448
-1126
lines changed

.devcontainer/post-create.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ cd /tmp
4545
# Install dependency modules
4646
## Browser mod
4747
echo "Installing Custom Component: Browser Mod"
48-
wget https://github.com/thomasloven/hass-browser_mod/archive/refs/tags/1.5.1.tar.gz -O browser_mod.tar.gz
48+
wget https://github.com/thomasloven/hass-browser_mod/archive/refs/tags/2.1.0.tar.gz -O browser_mod.tar.gz
4949
tar -xvf browser_mod.tar.gz
5050
rm -rf /config/custom_components/browser_mod
5151
mv hass-browser_mod*/custom_components/browser_mod /config/custom_components/browser_mod
5252

5353
## virtual
5454
echo "Installing Custom Component: Virtual"
55-
wget https://github.com/twrecked/hass-virtual/archive/refs/tags/v0.7.5.tar.gz -O virtual.tar.gz
55+
wget https://github.com/twrecked/hass-virtual/archive/refs/tags/v0.7.7.tar.gz -O virtual.tar.gz
5656
tar -xvf virtual.tar.gz
5757
rm -rf /config/custom_components/virtual
5858
mv hass-virtual*/custom_components/virtual /config/custom_components/virtual

custom_cards/custom_card_imswel_person/custom_card_imswel_person.yaml

+95-94
Original file line numberDiff line numberDiff line change
@@ -111,104 +111,105 @@ custom_popup_imswel_person:
111111
tap_action:
112112
action: "fire-dom-event"
113113
browser_mod:
114-
command: "popup"
115-
title: "[[[ return states[variables.ulm_card_imswel_person_entity].attributes.friendly_name ]]]"
116-
style:
117-
$: >
118-
[[[
119-
if (hass.themes.theme.includes("desktop")){
120-
var dialog = `
121-
.mdc-dialog__surface{
122-
border-radius: var(--border-radius) !important;
114+
service: "browser_mod.popup"
115+
data:
116+
title: "[[[ return states[variables.ulm_card_imswel_person_entity].attributes.friendly_name ]]]"
117+
style:
118+
$: >
119+
[[[
120+
if (hass.themes.theme.includes("desktop")){
121+
var dialog = `
122+
.mdc-dialog__surface{
123+
border-radius: var(--border-radius) !important;
124+
}
125+
`;
126+
} else{
127+
var dialog = "";
128+
}
129+
return `
130+
*{
131+
--secondary-background-color: none !important;
123132
}
133+
${dialog}
124134
`;
125-
} else{
126-
var dialog = "";
127-
}
128-
return `
129-
*{
130-
--secondary-background-color: none !important;
131-
}
132-
${dialog}
133-
`;
134-
]]]
135-
hui-vertical-stack-card:
136-
$: >
137-
button-card {
138-
align-self: center;
139-
padding: 0.2em 0 2.3em 0;
140-
}
141-
hui-entities-card{
142-
padding: 0.8em 1.4em;
143-
}
144-
$hui-entities-card$: >
145-
ha-card{
146-
box-shadow: none;
147-
}
148-
$hui-history-graph-card$: >
149-
.content {
150-
padding: 0 2.4em !important;
151-
}
152-
ha-card{
153-
box-shadow: none;
154-
}
155-
$hui-glance-card$: >
156-
ha-card{
157-
box-shadow: none;
158-
}
159-
$hui-map-card:
135+
]]]
136+
hui-vertical-stack-card:
160137
$: >
161-
ha-icon-button {
162-
color: rgba(var(--color-blue),1);
138+
button-card {
139+
align-self: center;
140+
padding: 0.2em 0 2.3em 0;
141+
}
142+
hui-entities-card{
143+
padding: 0.8em 1.4em;
144+
}
145+
$hui-entities-card$: >
146+
ha-card{
147+
box-shadow: none;
148+
}
149+
$hui-history-graph-card$: >
150+
.content {
151+
padding: 0 2.4em !important;
163152
}
164-
$ha-map:
153+
ha-card{
154+
box-shadow: none;
155+
}
156+
$hui-glance-card$: >
157+
ha-card{
158+
box-shadow: none;
159+
}
160+
$hui-map-card:
165161
$: >
166-
.leaflet-control-attribution {
167-
display: none;
168-
}
169-
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
170-
border: 2px solid rgba(var(--color-blue),0.4) !important;
162+
ha-icon-button {
163+
color: rgba(var(--color-blue),1);
171164
}
172-
.leaflet-bar a {
173-
background-color: rgba(var(--color-blue),0.2) !important;
174-
color: rgba(var(--color-blue),1) !important;
175-
}
176-
.leaflet-bar a:first-child {
177-
border-bottom: 2px solid rgba(var(--color-blue),0.4) !important;
178-
}
179-
.leaflet-pane.leaflet-tile-pane {
180-
filter: contrast(95%);
181-
}
182-
card:
183-
type: "vertical-stack"
184-
cards:
185-
- type: "entities"
186-
entities:
187-
- entity: "[[[ return variables.ulm_card_imswel_person_entity; ]]]"
188-
secondary_info: "last-changed"
189-
- type: "history-graph"
190-
entities:
191-
- entity: "[[[ return variables.ulm_card_imswel_person_entity; ]]]"
192-
- type: "glance"
193-
show_state: false
194-
entities:
195-
- entity: "[[[ return variables.ulm_card_imswel_person_wifi_tracker; ]]]"
196-
name: "WiFi"
197-
icon: "mdi:wifi"
198-
style: &state >
199-
state-badge{
200-
color: {{ 'rgba(var(--color-blue),1)' if is_state(config.entity, 'home') }};
201-
filter: {{ 'opacity(100%)' if is_state(config.entity, 'home') else 'opacity(40%)'}};
165+
$ha-map:
166+
$: >
167+
.leaflet-control-attribution {
168+
display: none;
169+
}
170+
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
171+
border: 2px solid rgba(var(--color-blue),0.4) !important;
172+
}
173+
.leaflet-bar a {
174+
background-color: rgba(var(--color-blue),0.2) !important;
175+
color: rgba(var(--color-blue),1) !important;
176+
}
177+
.leaflet-bar a:first-child {
178+
border-bottom: 2px solid rgba(var(--color-blue),0.4) !important;
179+
}
180+
.leaflet-pane.leaflet-tile-pane {
181+
filter: contrast(95%);
202182
}
203-
- entity: "[[[ return variables.ulm_card_imswel_person_gps_tracker; ]]]"
204-
name: "GPS"
205-
icon: "mdi:map-marker"
206-
style: *state
207-
- type: "custom:button-card"
208-
template:
209-
- "find_my_phone_button"
210-
entity: "[[[ return variables.ulm_card_imswel_person_findmy_script; ]]]"
211-
- type: "map"
212-
aspect_ratio: "12x10"
213-
default_zoom: 16
214-
entities: "[[[ return [variables.ulm_card_imswel_person_gps_tracker]; ]]]"
183+
content:
184+
type: "vertical-stack"
185+
cards:
186+
- type: "entities"
187+
entities:
188+
- entity: "[[[ return variables.ulm_card_imswel_person_entity; ]]]"
189+
secondary_info: "last-changed"
190+
- type: "history-graph"
191+
entities:
192+
- entity: "[[[ return variables.ulm_card_imswel_person_entity; ]]]"
193+
- type: "glance"
194+
show_state: false
195+
entities:
196+
- entity: "[[[ return variables.ulm_card_imswel_person_wifi_tracker; ]]]"
197+
name: "WiFi"
198+
icon: "mdi:wifi"
199+
style: &state >
200+
state-badge{
201+
color: {{ 'rgba(var(--color-blue),1)' if is_state(config.entity, 'home') }};
202+
filter: {{ 'opacity(100%)' if is_state(config.entity, 'home') else 'opacity(40%)'}};
203+
}
204+
- entity: "[[[ return variables.ulm_card_imswel_person_gps_tracker; ]]]"
205+
name: "GPS"
206+
icon: "mdi:map-marker"
207+
style: *state
208+
- type: "custom:button-card"
209+
template:
210+
- "find_my_phone_button"
211+
entity: "[[[ return variables.ulm_card_imswel_person_findmy_script; ]]]"
212+
- type: "map"
213+
aspect_ratio: "12x10"
214+
default_zoom: 16
215+
entities: "[[[ return [variables.ulm_card_imswel_person_gps_tracker]; ]]]"

custom_cards/custom_card_schumijo_car/custom_card_schumijo_car.yaml

+72-69
Original file line numberDiff line numberDiff line change
@@ -107,79 +107,80 @@ ulm_custom_card_schumijo_ca_popup:
107107
tap_action:
108108
action: "fire-dom-event"
109109
browser_mod:
110-
command: "popup"
111-
title: "Map"
112-
style:
113-
$: >
114-
[[[
115-
if (hass.themes.theme.includes("desktop")){
116-
var dialog = `
117-
.mdc-dialog__surface{
118-
border-radius: var(--border-radius) !important;
110+
service: "browser_mod.popup"
111+
data:
112+
title: "Map"
113+
style:
114+
$: >
115+
[[[
116+
if (hass.themes.theme.includes("desktop")){
117+
var dialog = `
118+
.mdc-dialog__surface{
119+
border-radius: var(--border-radius) !important;
120+
}
121+
`;
122+
} else{
123+
var dialog = "";
124+
}
125+
return `
126+
*{
127+
--secondary-background-color: none !important;
119128
}
129+
${dialog}
120130
`;
121-
} else{
122-
var dialog = "";
123-
}
124-
return `
125-
*{
126-
--secondary-background-color: none !important;
127-
}
128-
${dialog}
129-
`;
130-
]]]
131-
hui-vertical-stack-card:
132-
$: >
133-
button-card {
134-
align-self: center;
135-
padding: 0.2em 0 2.3em 0;
136-
}
137-
hui-entities-card{
138-
padding: 0.8em 1.4em;
139-
}
140-
$hui-entities-card$: >
141-
ha-card{
142-
box-shadow: none;
143-
}
144-
$hui-history-graph-card$: >
145-
.content {
146-
padding: 0 2.4em !important;
147-
}
148-
ha-card{
149-
box-shadow: none;
150-
}
151-
$hui-glance-card$: >
152-
ha-card{
153-
box-shadow: none;
154-
}
155-
$hui-map-card:
131+
]]]
132+
hui-vertical-stack-card:
156133
$: >
157-
ha-icon-button {
158-
color: rgba(var(--color-blue),1);
134+
button-card {
135+
align-self: center;
136+
padding: 0.2em 0 2.3em 0;
137+
}
138+
hui-entities-card{
139+
padding: 0.8em 1.4em;
140+
}
141+
$hui-entities-card$: >
142+
ha-card{
143+
box-shadow: none;
159144
}
160-
$ha-map:
145+
$hui-history-graph-card$: >
146+
.content {
147+
padding: 0 2.4em !important;
148+
}
149+
ha-card{
150+
box-shadow: none;
151+
}
152+
$hui-glance-card$: >
153+
ha-card{
154+
box-shadow: none;
155+
}
156+
$hui-map-card:
161157
$: >
162-
.leaflet-control-attribution {
163-
display: none;
164-
}
165-
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
166-
border: 2px solid rgba(var(--color-blue),0.4) !important;
158+
ha-icon-button {
159+
color: rgba(var(--color-blue),1);
167160
}
168-
.leaflet-bar a {
169-
background-color: rgba(var(--color-blue),0.2) !important;
170-
color: rgba(var(--color-blue),1) !important;
171-
}
172-
.leaflet-bar a:first-child {
173-
border-bottom: 2px solid rgba(var(--color-blue),0.4) !important;
174-
}
175-
.leaflet-pane.leaflet-tile-pane {
176-
filter: contrast(95%);
177-
}
178-
card:
179-
type: "map"
180-
aspect_ratio: "12:10"
181-
default_zoom: 16
182-
entities: "[[[ return [variables.ulm_card_schumijo_car_tracker]; ]]]"
161+
$ha-map:
162+
$: >
163+
.leaflet-control-attribution {
164+
display: none;
165+
}
166+
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
167+
border: 2px solid rgba(var(--color-blue),0.4) !important;
168+
}
169+
.leaflet-bar a {
170+
background-color: rgba(var(--color-blue),0.2) !important;
171+
color: rgba(var(--color-blue),1) !important;
172+
}
173+
.leaflet-bar a:first-child {
174+
border-bottom: 2px solid rgba(var(--color-blue),0.4) !important;
175+
}
176+
.leaflet-pane.leaflet-tile-pane {
177+
filter: contrast(95%);
178+
}
179+
content:
180+
type: "map"
181+
aspect_ratio: "12:10"
182+
default_zoom: 16
183+
entities: "[[[ return [variables.ulm_card_schumijo_car_tracker]; ]]]"
183184

184185
custom_card_schumijo_car:
185186
template:
@@ -225,7 +226,8 @@ custom_card_schumijo_car:
225226
[[[
226227
return parseFloat(states[variables.ulm_card_schumijo_car_energy_level].state).toFixed(0);
227228
]]]
228-
name: "[[[ return states[variables.ulm_card_schumijo_car_energy_level].attributes.unit_of_measurement + ' ' + variables.ulm_custom_card_schumijo_car_energy_level\
229+
name:
230+
"[[[ return states[variables.ulm_card_schumijo_car_energy_level].attributes.unit_of_measurement + ' ' + variables.ulm_custom_card_schumijo_car_energy_level\
229231
\ ]]]"
230232
item2:
231233
card:
@@ -236,5 +238,6 @@ custom_card_schumijo_car:
236238
[[[
237239
return parseFloat(states[variables.ulm_card_schumijo_car_range].state).toFixed(0);
238240
]]]
239-
name: "[[[ return states[variables.ulm_card_schumijo_car_range].attributes.unit_of_measurement + ' ' + variables.ulm_custom_card_schumijo_car_range\
241+
name:
242+
"[[[ return states[variables.ulm_card_schumijo_car_range].attributes.unit_of_measurement + ' ' + variables.ulm_custom_card_schumijo_car_range\
240243
\ ]]]"

0 commit comments

Comments
 (0)