Skip to content

Instantly share code, notes, and snippets.

@jseidl
Created June 30, 2020 18:18
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jseidl/24d33f78db2eb993712d3341d78d9f3d to your computer and use it in GitHub Desktop.
Save jseidl/24d33f78db2eb993712d3341d78d9f3d to your computer and use it in GitHub Desktop.
Home Assistant - Tesla Lovelace View
title: Car
icon: 'mdi:car'
path: car
cards:
- !include 'cards/tesla.yaml'
- type: map
aspect_ratio: 16:9
default_zoom: 13
entities:
- device_tracker.tesla_model_3_location_tracker
- type: vertical-stack
cards:
- type: entities
title: Battery & Range
entities:
- entity: sensor.tesla_model_3_battery_sensor
name: Battery
- entity: binary_sensor.tesla_model_3_charger_sensor
name: Charger
- entity: sensor.tesla_model_3_charging_rate_sensor
name: Charging Rate
- type: 'custom:bar-card'
width: 70%
entities:
- name: Battery
entity: sensor.tesla_model_3_battery_sensor
- name: Range
entity: sensor.tesla_model_3_range_sensor
max: 200
positions:
icon: 'off'
indicator: inside
name: outside
- type: custom:mini-graph-card
name: Battery & Range
points_per_hour: 2
icon: 'mdi:battery'
entities:
- entity: sensor.tesla_model_3_battery_sensor
name: Battery
- entity: sensor.tesla_model_3_range_sensor
name: Range
- type: vertical-stack
cards:
#- type: 'custom:thermostat-card'
- type: 'custom:simple-thermostat'
entity: climate.tesla_model_3_hvac_climate_system
name: Climate
#title: Climate
control:
hvac:
'heat_cool':
name: "Heat/Cool"
preset:
'normal':
name: 'Normal'
'defrost':
name: 'Defrost'
- type: custom:mini-graph-card
name: Temperature
points_per_hour: 2
icon: 'mdi:battery'
entities:
- entity: sensor.tesla_model_3_temperature_sensor_inside
name: Inside
- entity: sensor.tesla_model_3_temperature_sensor_outside
name: Outside
line_color: blue
- type: entities
title: Locks
entities:
- entity: lock.tesla_model_3_door_lock
name: Doors
- entity: lock.tesla_model_3_charger_door_lock
name: Charger Door
- entity: lock.tesla_model_3_frunk_lock
name: Frunk
- entity: lock.tesla_model_3_trunk_lock
name: Trunk
- type: entities
title: Switches
entities:
- entity: switch.tesla_model_3_charger_switch
name: Charger
- entity: switch.tesla_model_3_maxrange_switch
name: Max Range
- entity: switch.tesla_model_3_sentry_mode_switch
name: Sentry Mode
- entity: switch.tesla_model_3_update_switch
name: Data Polling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment