Coder Social home page Coder Social logo

waze-card's Introduction

Waze Card for Home Assistant

Features

  • Show distance and duration for a list of waze routes
  • Click on route to open Waze app
  • Show best route to take
  • Supports Metric and Imperial systems via HA global settings

Track Updates

This custom card can be tracked with the help of custom-updater.

In your configuration.yaml

custom_updater:
  card_urls:
    - https://raw.githubusercontent.com/ljmerza/waze-card/master/custom_updater.json

Usage

Prerequisites

You should have setup Waze integration and zones in HomeAssistant.

Options

Name Type Requirement Default Description
type string Required custom:waze-card
header boolean Optional true show header
title string Optional Waze Routes Header text shown at top of card
entities object Required List of routes to display
columns list Optional name, distance, duration, route Which columns to display
custom_distance string Optional Override HA distance unit settings (set to km or mi)
custom_distance_units string Optional HA default setting Override units string (km or mi)

`entities` Options:

Name Type Requirement Default Description
entity string Required The waze sensor entity to use
zone string Optional Used to enable click to open waze app (needs coordinates to work)
name string Optional friendly_name from Waze config The name of the route

Configuration

Download waze-card.js from the latest release and upload it your /www folder of your Home Assistant config directory.

In your ui-lovelace.yaml

resources:
  - url: /local/waze-card/waze-card.js?v=2.0.0
    type: js

Add the custom card to views:

views:
  cards:
    - type: custom:waze-card
      entities:
        - entity: sensor.waze_home # used to show data on card
          zone: zone.home # needed to get lat/long for clicking on waze route
          name: Home
        - entity: sensor.waze_work
          zone: zone.work
          name: Work

or minimum setup (disables clicking to open waze):

views:
  cards:
    - type: custom:waze-cardq
      entities:
        - entity: sensor.waze_home
        - entity: sensor.waze_work

waze-card's People

Contributors

ljmerza avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.