diff --git a/lovelace/00_home.yaml b/lovelace/00_home.yaml index 7ee5712..5f64ed2 100644 --- a/lovelace/00_home.yaml +++ b/lovelace/00_home.yaml @@ -45,12 +45,6 @@ cards: - entity: device_tracker.tile_1bcb2b3021b9f96b show_header_toggle: false - - type: "custom:weather-card" - current: true - details: true - entity: weather.dark_sky - forecast: true - - type: "custom:mini-media-player" artwork: cover entity: media_player.master_bedroom @@ -64,6 +58,21 @@ cards: show_source: true source: full + - type: "custom:weather-card" + current: true + details: true + entity: weather.dark_sky + forecast: true + + - type: "custom:travel-time-card" + title: "Travel time" + columns: + - name + - duration + - distance + entities: + - entity: sensor.home_to_work + - type: entities title: Misc Badges entities: diff --git a/packages/sensors/travel_time.yaml b/packages/sensors/travel_time.yaml new file mode 100644 index 0000000..13ce46c --- /dev/null +++ b/packages/sensors/travel_time.yaml @@ -0,0 +1,12 @@ +sensor: + - platform: waze_travel_time + name: Home to work + origin: zone.home + destination: zone.work + region: "EU" + + - platform: waze_travel_time + name: Work to home + origin: zone.work + destination: zone.home + region: "EU" diff --git a/ui-lovelace.yaml b/ui-lovelace.yaml index 417b448..dbb54f9 100644 --- a/ui-lovelace.yaml +++ b/ui-lovelace.yaml @@ -4,6 +4,8 @@ custom_header: hide_help: true hide_unused: true resources: + - type: js + url: /hacsfiles/travel-time-card/travel-time-card.js - type: module url: /hacsfiles/lovelace-gui-sandbox/gui-sandbox.js - type: module