feat(dashboard): Full Pro SnowyWhite Tesla Lovelace view
- 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)
This commit is contained in:
@@ -1,86 +1,112 @@
|
|||||||
title: Tesla
|
title: Tesla
|
||||||
path: tesla
|
path: tesla
|
||||||
icon: mdi:car-electric
|
icon: mdi:car-electric
|
||||||
type: sections
|
cards:
|
||||||
|
|
||||||
sections:
|
# 🔋 Batteri & Opladning
|
||||||
|
- type: vertical-stack
|
||||||
# 🔋 Batteri og opladning
|
|
||||||
- type: grid
|
|
||||||
cards:
|
cards:
|
||||||
- type: heading
|
- type: gauge
|
||||||
heading: Batteri & Opladning
|
entity: sensor.snowywhite_battery_numeric
|
||||||
|
name: Batteri
|
||||||
|
min: 0
|
||||||
|
max: 100
|
||||||
|
severity:
|
||||||
|
green: 50
|
||||||
|
yellow: 20
|
||||||
|
red: 0
|
||||||
|
unit: '%'
|
||||||
|
|
||||||
- type: tile
|
- type: gauge
|
||||||
entity: sensor.snowywhite_battery_level
|
entity: sensor.snowywhite_range_numeric
|
||||||
name: Batteri (%)
|
name: Rækkevidde
|
||||||
|
min: 0
|
||||||
- type: tile
|
max: 600
|
||||||
entity: sensor.snowywhite_battery_range
|
severity:
|
||||||
name: Rækkevidde (km)
|
green: 400
|
||||||
|
yellow: 150
|
||||||
- type: tile
|
red: 0
|
||||||
entity: sensor.snowywhite_charge_state
|
unit: 'km'
|
||||||
name: Opladningstilstand
|
|
||||||
|
|
||||||
- type: tile
|
|
||||||
entity: sensor.snowywhite_charge_rate
|
|
||||||
name: Ladehastighed (km/t)
|
|
||||||
|
|
||||||
|
|
||||||
# 🚗 Døre, låse og tilstand
|
|
||||||
- type: grid
|
|
||||||
cards:
|
|
||||||
- type: heading
|
|
||||||
heading: Døre & Lås
|
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
entities:
|
entities:
|
||||||
- lock.snowywhite_door_lock
|
- entity: binary_sensor.snowywhite_charging
|
||||||
- binary_sensor.snowywhite_front_left_door
|
name: Oplader nu?
|
||||||
- binary_sensor.snowywhite_front_right_door
|
- entity: sensor.snowywhite_charging_rate_numeric
|
||||||
- binary_sensor.snowywhite_rear_left_door
|
name: Ladehastighed (km/t)
|
||||||
- binary_sensor.snowywhite_rear_right_door
|
- entity: sensor.snowywhite_energy_added_numeric
|
||||||
- binary_sensor.snowywhite_trunk
|
name: Energi tilføjet (kWh)
|
||||||
- binary_sensor.snowywhite_frunk
|
- entity: sensor.snowywhite_charger_power
|
||||||
|
name: Charger power (kW)
|
||||||
|
- entity: sensor.snowywhite_time_charge_complete
|
||||||
|
name: Forventet fuld opladning
|
||||||
|
|
||||||
- type: tile
|
- type: horizontal-stack
|
||||||
entity: sensor.snowywhite_vehicle_state
|
cards:
|
||||||
name: Tilstand
|
- 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
|
# 🌡️ Temperatur
|
||||||
- type: grid
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: heading
|
- type: sensor
|
||||||
heading: Temperatur
|
entity: sensor.snowywhite_temperature_inside
|
||||||
|
|
||||||
- type: tile
|
|
||||||
entity: sensor.snowywhite_inside_temp
|
|
||||||
name: Inde (°C)
|
name: Inde (°C)
|
||||||
|
- type: sensor
|
||||||
- type: tile
|
entity: sensor.snowywhite_temperature_outside
|
||||||
entity: sensor.snowywhite_outside_temp
|
|
||||||
name: Ude (°C)
|
name: Ude (°C)
|
||||||
|
|
||||||
|
# 📍 Lokation / Ankomst
|
||||||
# 📍 Lokation
|
|
||||||
- type: map
|
|
||||||
title: Lokation
|
|
||||||
default_zoom: 15
|
|
||||||
entities:
|
|
||||||
- device_tracker.snowywhite
|
|
||||||
show_state: true
|
|
||||||
|
|
||||||
|
|
||||||
# 🔧 Maintenance / alerts
|
|
||||||
- type: grid
|
|
||||||
cards:
|
|
||||||
- type: heading
|
|
||||||
heading: Vedligeholdelse / Alerts
|
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
|
title: Ankomst / Distance
|
||||||
entities:
|
entities:
|
||||||
- sensor.snowywhite_maintenance_required
|
- sensor.snowywhite_arrival_time
|
||||||
- sensor.snowywhite_tire_pressure_alert
|
- sensor.snowywhite_distance_to_arrival
|
||||||
- sensor.snowywhite_software_update
|
|
||||||
|
# 🔧 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
|
||||||
|
|||||||
Reference in New Issue
Block a user