98df2da6f9
- Implemented numeric template sensors for battery, range, charging rate, energy added, and charging state - Added gauges for battery and range - Added tiles for charging status, rate, energy, charger power, and time to full charge - Added Start/Stop charging buttons - Added history-graph timeline for charging - Added sections for doors & locks, temperature, arrival info, and maintenance/alerts - Fully compatible with standard Lovelace (no Dwains Dashboard dependencies)
113 lines
3.0 KiB
YAML
113 lines
3.0 KiB
YAML
title: Tesla
|
|
path: tesla
|
|
icon: mdi:car-electric
|
|
cards:
|
|
|
|
# 🔋 Batteri & Opladning
|
|
- type: vertical-stack
|
|
cards:
|
|
- type: gauge
|
|
entity: sensor.snowywhite_battery_numeric
|
|
name: Batteri
|
|
min: 0
|
|
max: 100
|
|
severity:
|
|
green: 50
|
|
yellow: 20
|
|
red: 0
|
|
unit: '%'
|
|
|
|
- type: gauge
|
|
entity: sensor.snowywhite_range_numeric
|
|
name: Rækkevidde
|
|
min: 0
|
|
max: 600
|
|
severity:
|
|
green: 400
|
|
yellow: 150
|
|
red: 0
|
|
unit: 'km'
|
|
|
|
- type: entities
|
|
entities:
|
|
- entity: binary_sensor.snowywhite_charging
|
|
name: Oplader nu?
|
|
- entity: sensor.snowywhite_charging_rate_numeric
|
|
name: Ladehastighed (km/t)
|
|
- entity: sensor.snowywhite_energy_added_numeric
|
|
name: Energi tilføjet (kWh)
|
|
- entity: sensor.snowywhite_charger_power
|
|
name: Charger power (kW)
|
|
- entity: sensor.snowywhite_time_charge_complete
|
|
name: Forventet fuld opladning
|
|
|
|
- type: horizontal-stack
|
|
cards:
|
|
- type: button
|
|
name: Start opladning
|
|
icon: mdi:flash-circle
|
|
tap_action:
|
|
action: call-service
|
|
service: switch.turn_on
|
|
target:
|
|
entity_id: switch.home_charging
|
|
|
|
- type: button
|
|
name: Stop opladning
|
|
icon: mdi:flash-off
|
|
tap_action:
|
|
action: call-service
|
|
service: switch.turn_off
|
|
target:
|
|
entity_id: switch.home_charging
|
|
|
|
# 🕒 Opladning Timeline (graf)
|
|
- type: history-graph
|
|
title: Ladeplan / Timeline
|
|
entities:
|
|
- entity: sensor.snowywhite_charging_numeric
|
|
name: Lader nu
|
|
- entity: sensor.snowywhite_charging_rate_numeric
|
|
name: Ladehastighed
|
|
- entity: sensor.snowywhite_energy_added_numeric
|
|
name: Energi tilføjet
|
|
hours_to_show: 24
|
|
refresh_interval: 60
|
|
|
|
# 🚗 Døre & Lås
|
|
- type: entities
|
|
title: Døre & Lås
|
|
entities:
|
|
- binary_sensor.snowywhite_doors
|
|
- binary_sensor.snowywhite_windows
|
|
- binary_sensor.snowywhite_parking_brake
|
|
- binary_sensor.snowywhite_user_present
|
|
- sensor.snowywhite_shift_state
|
|
|
|
# 🌡️ Temperatur
|
|
- type: horizontal-stack
|
|
cards:
|
|
- type: sensor
|
|
entity: sensor.snowywhite_temperature_inside
|
|
name: Inde (°C)
|
|
- type: sensor
|
|
entity: sensor.snowywhite_temperature_outside
|
|
name: Ude (°C)
|
|
|
|
# 📍 Lokation / Ankomst
|
|
- type: entities
|
|
title: Ankomst / Distance
|
|
entities:
|
|
- sensor.snowywhite_arrival_time
|
|
- sensor.snowywhite_distance_to_arrival
|
|
|
|
# 🔧 Vedligeholdelse / Alerts
|
|
- type: entities
|
|
title: Vedligeholdelse / Alerts
|
|
entities:
|
|
- sensor.snowywhite_tpms_front_left
|
|
- sensor.snowywhite_tpms_front_right
|
|
- sensor.snowywhite_tpms_rear_left
|
|
- sensor.snowywhite_tpms_rear_right
|
|
- sensor.snowywhite_data_last_update_time
|