Skip to content

Commit

Permalink
Merge pull request #977 from UI-Lovelace-Minimalist/release
Browse files Browse the repository at this point in the history
Release V1.1.2 (add support for Browser_mod 2.0.0)
  • Loading branch information
basbruss authored Sep 6, 2022
2 parents 06ca215 + db7917f commit b97aa93
Show file tree
Hide file tree
Showing 34 changed files with 1,448 additions and 1,126 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ cd /tmp
# Install dependency modules
## Browser mod
echo "Installing Custom Component: Browser Mod"
wget https://github.com/thomasloven/hass-browser_mod/archive/refs/tags/1.5.1.tar.gz -O browser_mod.tar.gz
wget https://github.com/thomasloven/hass-browser_mod/archive/refs/tags/2.1.0.tar.gz -O browser_mod.tar.gz
tar -xvf browser_mod.tar.gz
rm -rf /config/custom_components/browser_mod
mv hass-browser_mod*/custom_components/browser_mod /config/custom_components/browser_mod

## virtual
echo "Installing Custom Component: Virtual"
wget https://github.com/twrecked/hass-virtual/archive/refs/tags/v0.7.5.tar.gz -O virtual.tar.gz
wget https://github.com/twrecked/hass-virtual/archive/refs/tags/v0.7.7.tar.gz -O virtual.tar.gz
tar -xvf virtual.tar.gz
rm -rf /config/custom_components/virtual
mv hass-virtual*/custom_components/virtual /config/custom_components/virtual
189 changes: 95 additions & 94 deletions custom_cards/custom_card_imswel_person/custom_card_imswel_person.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,104 +111,105 @@ custom_popup_imswel_person:
tap_action:
action: "fire-dom-event"
browser_mod:
command: "popup"
title: "[[[ return states[variables.ulm_card_imswel_person_entity].attributes.friendly_name ]]]"
style:
$: >
[[[
if (hass.themes.theme.includes("desktop")){
var dialog = `
.mdc-dialog__surface{
border-radius: var(--border-radius) !important;
service: "browser_mod.popup"
data:
title: "[[[ return states[variables.ulm_card_imswel_person_entity].attributes.friendly_name ]]]"
style:
$: >
[[[
if (hass.themes.theme.includes("desktop")){
var dialog = `
.mdc-dialog__surface{
border-radius: var(--border-radius) !important;
}
`;
} else{
var dialog = "";
}
return `
*{
--secondary-background-color: none !important;
}
${dialog}
`;
} else{
var dialog = "";
}
return `
*{
--secondary-background-color: none !important;
}
${dialog}
`;
]]]
hui-vertical-stack-card:
$: >
button-card {
align-self: center;
padding: 0.2em 0 2.3em 0;
}
hui-entities-card{
padding: 0.8em 1.4em;
}
$hui-entities-card$: >
ha-card{
box-shadow: none;
}
$hui-history-graph-card$: >
.content {
padding: 0 2.4em !important;
}
ha-card{
box-shadow: none;
}
$hui-glance-card$: >
ha-card{
box-shadow: none;
}
$hui-map-card:
]]]
hui-vertical-stack-card:
$: >
ha-icon-button {
color: rgba(var(--color-blue),1);
button-card {
align-self: center;
padding: 0.2em 0 2.3em 0;
}
hui-entities-card{
padding: 0.8em 1.4em;
}
$hui-entities-card$: >
ha-card{
box-shadow: none;
}
$hui-history-graph-card$: >
.content {
padding: 0 2.4em !important;
}
$ha-map:
ha-card{
box-shadow: none;
}
$hui-glance-card$: >
ha-card{
box-shadow: none;
}
$hui-map-card:
$: >
.leaflet-control-attribution {
display: none;
}
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
border: 2px solid rgba(var(--color-blue),0.4) !important;
ha-icon-button {
color: rgba(var(--color-blue),1);
}
.leaflet-bar a {
background-color: rgba(var(--color-blue),0.2) !important;
color: rgba(var(--color-blue),1) !important;
}
.leaflet-bar a:first-child {
border-bottom: 2px solid rgba(var(--color-blue),0.4) !important;
}
.leaflet-pane.leaflet-tile-pane {
filter: contrast(95%);
}
card:
type: "vertical-stack"
cards:
- type: "entities"
entities:
- entity: "[[[ return variables.ulm_card_imswel_person_entity; ]]]"
secondary_info: "last-changed"
- type: "history-graph"
entities:
- entity: "[[[ return variables.ulm_card_imswel_person_entity; ]]]"
- type: "glance"
show_state: false
entities:
- entity: "[[[ return variables.ulm_card_imswel_person_wifi_tracker; ]]]"
name: "WiFi"
icon: "mdi:wifi"
style: &state >
state-badge{
color: {{ 'rgba(var(--color-blue),1)' if is_state(config.entity, 'home') }};
filter: {{ 'opacity(100%)' if is_state(config.entity, 'home') else 'opacity(40%)'}};
$ha-map:
$: >
.leaflet-control-attribution {
display: none;
}
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
border: 2px solid rgba(var(--color-blue),0.4) !important;
}
.leaflet-bar a {
background-color: rgba(var(--color-blue),0.2) !important;
color: rgba(var(--color-blue),1) !important;
}
.leaflet-bar a:first-child {
border-bottom: 2px solid rgba(var(--color-blue),0.4) !important;
}
.leaflet-pane.leaflet-tile-pane {
filter: contrast(95%);
}
- entity: "[[[ return variables.ulm_card_imswel_person_gps_tracker; ]]]"
name: "GPS"
icon: "mdi:map-marker"
style: *state
- type: "custom:button-card"
template:
- "find_my_phone_button"
entity: "[[[ return variables.ulm_card_imswel_person_findmy_script; ]]]"
- type: "map"
aspect_ratio: "12x10"
default_zoom: 16
entities: "[[[ return [variables.ulm_card_imswel_person_gps_tracker]; ]]]"
content:
type: "vertical-stack"
cards:
- type: "entities"
entities:
- entity: "[[[ return variables.ulm_card_imswel_person_entity; ]]]"
secondary_info: "last-changed"
- type: "history-graph"
entities:
- entity: "[[[ return variables.ulm_card_imswel_person_entity; ]]]"
- type: "glance"
show_state: false
entities:
- entity: "[[[ return variables.ulm_card_imswel_person_wifi_tracker; ]]]"
name: "WiFi"
icon: "mdi:wifi"
style: &state >
state-badge{
color: {{ 'rgba(var(--color-blue),1)' if is_state(config.entity, 'home') }};
filter: {{ 'opacity(100%)' if is_state(config.entity, 'home') else 'opacity(40%)'}};
}
- entity: "[[[ return variables.ulm_card_imswel_person_gps_tracker; ]]]"
name: "GPS"
icon: "mdi:map-marker"
style: *state
- type: "custom:button-card"
template:
- "find_my_phone_button"
entity: "[[[ return variables.ulm_card_imswel_person_findmy_script; ]]]"
- type: "map"
aspect_ratio: "12x10"
default_zoom: 16
entities: "[[[ return [variables.ulm_card_imswel_person_gps_tracker]; ]]]"
141 changes: 72 additions & 69 deletions custom_cards/custom_card_schumijo_car/custom_card_schumijo_car.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,79 +107,80 @@ ulm_custom_card_schumijo_ca_popup:
tap_action:
action: "fire-dom-event"
browser_mod:
command: "popup"
title: "Map"
style:
$: >
[[[
if (hass.themes.theme.includes("desktop")){
var dialog = `
.mdc-dialog__surface{
border-radius: var(--border-radius) !important;
service: "browser_mod.popup"
data:
title: "Map"
style:
$: >
[[[
if (hass.themes.theme.includes("desktop")){
var dialog = `
.mdc-dialog__surface{
border-radius: var(--border-radius) !important;
}
`;
} else{
var dialog = "";
}
return `
*{
--secondary-background-color: none !important;
}
${dialog}
`;
} else{
var dialog = "";
}
return `
*{
--secondary-background-color: none !important;
}
${dialog}
`;
]]]
hui-vertical-stack-card:
$: >
button-card {
align-self: center;
padding: 0.2em 0 2.3em 0;
}
hui-entities-card{
padding: 0.8em 1.4em;
}
$hui-entities-card$: >
ha-card{
box-shadow: none;
}
$hui-history-graph-card$: >
.content {
padding: 0 2.4em !important;
}
ha-card{
box-shadow: none;
}
$hui-glance-card$: >
ha-card{
box-shadow: none;
}
$hui-map-card:
]]]
hui-vertical-stack-card:
$: >
ha-icon-button {
color: rgba(var(--color-blue),1);
button-card {
align-self: center;
padding: 0.2em 0 2.3em 0;
}
hui-entities-card{
padding: 0.8em 1.4em;
}
$hui-entities-card$: >
ha-card{
box-shadow: none;
}
$ha-map:
$hui-history-graph-card$: >
.content {
padding: 0 2.4em !important;
}
ha-card{
box-shadow: none;
}
$hui-glance-card$: >
ha-card{
box-shadow: none;
}
$hui-map-card:
$: >
.leaflet-control-attribution {
display: none;
}
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
border: 2px solid rgba(var(--color-blue),0.4) !important;
ha-icon-button {
color: rgba(var(--color-blue),1);
}
.leaflet-bar a {
background-color: rgba(var(--color-blue),0.2) !important;
color: rgba(var(--color-blue),1) !important;
}
.leaflet-bar a:first-child {
border-bottom: 2px solid rgba(var(--color-blue),0.4) !important;
}
.leaflet-pane.leaflet-tile-pane {
filter: contrast(95%);
}
card:
type: "map"
aspect_ratio: "12:10"
default_zoom: 16
entities: "[[[ return [variables.ulm_card_schumijo_car_tracker]; ]]]"
$ha-map:
$: >
.leaflet-control-attribution {
display: none;
}
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
border: 2px solid rgba(var(--color-blue),0.4) !important;
}
.leaflet-bar a {
background-color: rgba(var(--color-blue),0.2) !important;
color: rgba(var(--color-blue),1) !important;
}
.leaflet-bar a:first-child {
border-bottom: 2px solid rgba(var(--color-blue),0.4) !important;
}
.leaflet-pane.leaflet-tile-pane {
filter: contrast(95%);
}
content:
type: "map"
aspect_ratio: "12:10"
default_zoom: 16
entities: "[[[ return [variables.ulm_card_schumijo_car_tracker]; ]]]"

custom_card_schumijo_car:
template:
Expand Down Expand Up @@ -225,7 +226,8 @@ custom_card_schumijo_car:
[[[
return parseFloat(states[variables.ulm_card_schumijo_car_energy_level].state).toFixed(0);
]]]
name: "[[[ return states[variables.ulm_card_schumijo_car_energy_level].attributes.unit_of_measurement + ' ' + variables.ulm_custom_card_schumijo_car_energy_level\
name:
"[[[ return states[variables.ulm_card_schumijo_car_energy_level].attributes.unit_of_measurement + ' ' + variables.ulm_custom_card_schumijo_car_energy_level\
\ ]]]"
item2:
card:
Expand All @@ -236,5 +238,6 @@ custom_card_schumijo_car:
[[[
return parseFloat(states[variables.ulm_card_schumijo_car_range].state).toFixed(0);
]]]
name: "[[[ return states[variables.ulm_card_schumijo_car_range].attributes.unit_of_measurement + ' ' + variables.ulm_custom_card_schumijo_car_range\
name:
"[[[ return states[variables.ulm_card_schumijo_car_range].attributes.unit_of_measurement + ' ' + variables.ulm_custom_card_schumijo_car_range\
\ ]]]"
Loading

0 comments on commit b97aa93

Please sign in to comment.