Skip to content

Instantly share code, notes, and snippets.

@zinkscott
Created January 8, 2025 19:03
Show Gist options
  • Save zinkscott/04ba870075761e937917910cca23f0cc to your computer and use it in GitHub Desktop.
Save zinkscott/04ba870075761e937917910cca23f0cc to your computer and use it in GitHub Desktop.
Lightning HA Dashboard - All created via GUI
type: custom:stack-in-card
mode: vertical
cards:
- type: vertical-stack
cards:
- type: picture-elements
elements:
- type: conditional
conditions:
- entity: sensor.fordpass_tirepressure
state_not: NORMAL_OPERATION
elements:
- type: state-icon
entity: sensor.fordpass_tirepressure
style:
top: 5%
left: 50%
"--paper-item-icon-color": orange
- type: conditional
conditions:
- entity: sensor.fordpass_indicators
state_not: "0"
elements:
- type: state-icon
entity: sensor.fordpass_indicators
style:
top: 5%
left: 50%
"--paper-item-icon-color": orange
- type: conditional
conditions:
- entity: sensor.fordpass_messages
state_not: "0"
elements:
- type: state-icon
entity: sensor.fordpass_messages
style:
top: 5%
left: 50%
- type: state-icon
entity: sensor.fordpass_battery_charge_2
style:
top: 95%
left: 5%
- type: state-label
entity: sensor.fordpass_battery_charge_2
style:
top: 96%
left: 12%
- type: state-icon
entity: sensor.fordpass_odometer
style:
top: 95.75%
left: 37%
- type: state-label
entity: sensor.fordpass_odometer
style:
top: 96%
left: 50%
- type: state-icon
entity: sensor.fordpass_range_2
style:
top: 94.75%
left: 80%
- type: state-label
entity: sensor.fordpass_range_2
style:
top: 96%
left: 90%
image: https://cscott.tech/images/full-2.png
tap_action:
action: navigate
navigation_path: /config/devices/device/95f12aa91e38ebbe9901be8abb0d205a
- type: custom:mushroom-chips-card
card_mod:
style: |
mushroom-card {
margin-bottom: 0px;
}
chips:
- type: template
entity: sensor.fordpass_elveh
content: "Last Trip:"
tap_action:
action: more-info
- type: entity
entity: sensor.fordpass_trip_distance_2
icon_color: green
tap_action:
action: more-info
- type: entity
entity: sensor.fordpass_trip_energy_consumed_2
icon_color: blue
tap_action:
action: more-info
- type: entity
entity: sensor.fordpass_trip_efficiency_2
icon_color: green
tap_action:
action: more-info
alignment: center
- type: entities
card_mod:
style: |
ha-card {
margin-bottom: 0px;
}
entities:
- entity: lock.fordpass_doorlock
name: Locks
secondary_info: last-updated
- entity: sensor.fordpass_remotestartstatus
name: Remote Start
secondary_info: last-updated
icon: mdi:remote
- entity: sensor.fordpass_elvehcharging
name: Charging Status
secondary_info: last-updated
- entity: sensor.fordpass_battery
name: 12v Battery
secondary_info: last-updated
- entity: sensor.fordpass_doorstatus
name: Doors
secondary_info: last-updated
- entity: sensor.fordpass_windowposition
name: Windows
secondary_info: last-updated
- entity: sensor.fordpass_ignitionstatus
name: Power
secondary_info: last-updated
- entity: sensor.lightning_location
name: Location
secondary_info: last-updated
footer:
type: graph
entity: sensor.fordpass_elveh
hours_to_show: 24
detail: 2
state_color: true
show_header_toggle: false
## This one kinda sucks
type: custom:stack-in-card
mode: vertical
cards:
- type: vertical-stack
cards:
- type: picture-elements
elements:
- type: conditional
conditions:
- entity: sensor.lightning_location
state_not: Home
elements:
- type: state-icon
entity: sensor.lightning_location
style:
top: 58%
left: 3%
- type: state-label
entity: sensor.lightning_location
style:
top: 58%
left: 10%
- type: conditional
conditions:
- entity: sensor.fordpass_elvehcharging
state: CONNECTED
elements:
- type: state-icon
entity: sensor.fordpass_elvehcharging
style:
top: 57%
left: 32%
"--paper-item-icon-color": yellow
- type: state-label
entity: sensor.fordpass_elvehcharging
style:
top: 70%
left: 23%
- type: conditional
conditions:
- entity: sensor.fordpass_remotestartstatus
state_not: Inactive
elements:
- type: state-icon
entity: sensor.fordpass_remotestartstatus
style:
top: 79%
left: 14.5%
"--paper-item-icon-color": red
- type: conditional
conditions:
- entity: sensor.fordpass_ignitionstatus
state_not: "OFF"
elements:
- type: state-icon
entity: sensor.fordpass_ignitionstatus
style:
top: 80%
left: 10.5%
"--paper-item-icon-color": red
- type: conditional
conditions:
- entity: sensor.fordpass_doorstatus
state_not: Closed
elements:
- type: state-icon
entity: sensor.fordpass_doorstatus
style:
top: 86%
left: 3%
"--paper-item-icon-color": orange
- type: conditional
conditions:
- entity: lock.fordpass_doorlock
state_not: locked
elements:
- type: state-icon
entity: lock.fordpass_doorlock
style:
top: 95%
left: 3%
- type: conditional
conditions:
- entity: sensor.fordpass_windowposition
state_not: Closed
elements:
- type: state-icon
entity: sensor.fordpass_windowposition
style:
top: 79%
left: 3%
"--paper-item-icon-color": orange
- type: conditional
conditions:
- entity: sensor.fordpass_tirepressure
state_not: NORMAL_OPERATION
elements:
- type: state-icon
entity: sensor.fordpass_tirepressure
style:
top: 89%
left: 15%
"--paper-item-icon-color": orange
- type: conditional
conditions:
- entity: sensor.fordpass_indicators
state_not: "0"
elements:
- type: state-icon
entity: sensor.fordpass_indicators
style:
top: 89%
left: 10%
"--paper-item-icon-color": orange
- type: conditional
conditions:
- entity: sensor.fordpass_messages
state_not: "0"
elements:
- type: state-icon
entity: sensor.fordpass_messages
style:
top: 95%
left: 54.6%
- type: state-icon
entity: sensor.fordpass_battery_charge_2
style:
top: 95%
left: 7%
- type: state-label
entity: sensor.fordpass_battery_charge_2
style:
top: 96%
left: 13.5%
- type: state-icon
entity: sensor.fordpass_odometer
style:
top: 95.75%
left: 32%
- type: state-label
entity: sensor.fordpass_odometer
style:
top: 96.5%
left: 43.5%
- type: state-icon
entity: sensor.fordpass_range_2
style:
top: 95.5%
left: 59%
- type: state-label
entity: sensor.fordpass_range_2
style:
top: 96.5%
left: 68.5%
- type: state-icon
entity: sensor.fordpass_battery
style:
top: 95.5%
left: 87.5%
- type: state-label
entity: sensor.fordpass_battery
style:
top: 96.5%
left: 94%
image: https://cscott.tech/images/full.png
tap_action:
action: navigate
navigation_path: /config/devices/device/95f12aa91e38ebbe9901be8abb0d205a
- type: custom:mushroom-chips-card
chips:
- type: entity
entity: sensor.fordpass_trip_distance_2
icon_color: green
tap_action:
action: more-info
- type: entity
entity: sensor.fordpass_trip_energy_consumed_2
icon_color: blue
tap_action:
action: more-info
- type: entity
entity: sensor.fordpass_trip_efficiency_2
icon_color: green
tap_action:
action: more-info
alignment: center
{{ state_attr('sensor.fordpass_elvehcharging', 'Charging Status') }}
{{ state_attr('sensor.fordpass_elvehcharging', 'Charging kW') | float }}
{{ '%.2f' | format(state_attr('sensor.fordpass_elveh', 'Battery Charge')) }}
{{ '%.2f' | format(states('sensor.fordpass_elveh') | float) }}
{{ '%.2f' | format(state_attr('sensor.fordpass_elveh', 'Trip Distance Traveled')) }}
{{ '%.2f' | format(state_attr('sensor.fordpass_elveh', 'Trip Efficiency')) }} mi/kWh
{{ '%.2f' | format(state_attr('sensor.fordpass_elveh', 'Trip Energy Consumed')) }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment