Sponsored

Home Assistant - Ford F150 Lightning Dashboard.

OP
OP
Aminorjourney

Aminorjourney

Well-known member
Joined
Jun 6, 2022
Threads
10
Messages
176
Reaction score
353
Location
Internet
Vehicles
vehicles that go
How are all of you handling updates/refreshes? I seem to have no luck with mine, it refreshed on the initial setup but never again. I tried triggering the two different services via automations and directly in the tools menu and no dice...
Mine will update - but I know Ford has been busy lately working on the servers (last week, IIRC). My truck does update, but certainly not super-frequently.

My latest card code will allow you to hit the refresh button (you have to hold it) to get it to refresh, but you can also force a refresh by using the "Last updated" text and holding over that.

Failing that, I've got nothing. Check that you've got the latest version of FordPass-HA. There have been a LOT of changes of late, and I know that @theUNSTABLE has been working hard to help adapt code on the FordPass-HA project to make things reliable.
Sponsored

 

queuewho

Well-known member
Joined
Oct 27, 2022
Threads
4
Messages
521
Reaction score
577
Location
Western PA
Vehicles
F150 Lightning Lariat SR
Mine will update - but I know Ford has been busy lately working on the servers (last week, IIRC). My truck does update, but certainly not super-frequently.

My latest card code will allow you to hit the refresh button (you have to hold it) to get it to refresh, but you can also force a refresh by using the "Last updated" text and holding over that.

Failing that, I've got nothing. Check that you've got the latest version of FordPass-HA. There have been a LOT of changes of late, and I know that @theUNSTABLE has been working hard to help adapt code on the FordPass-HA project to make things reliable.
I just checked and HACS isn't saying it is out of date. I set up 900 second refresh on the API poll, it doesn't seem to be doing it. The ford app is working fine to get updated stats, and it's the same login.

It's weird that deleting and re-adding the integration gets me updated stats, but nothing else will force it to update.
 

queuewho

Well-known member
Joined
Oct 27, 2022
Threads
4
Messages
521
Reaction score
577
Location
Western PA
Vehicles
F150 Lightning Lariat SR
Rather than doing a reinstall, I moved to 1.63beta and back to 1.63. My button for 'full vehicle refresh' I made on my dashboard seems to trigger an update now. I still don't see the automatic api refresh doing anything as of yet, is this expected behavior? Like, an api update doesn't necessarily update anything if the truck hasn't sent it any new information?
 

Sponsored
OP
OP
Aminorjourney

Aminorjourney

Well-known member
Joined
Jun 6, 2022
Threads
10
Messages
176
Reaction score
353
Location
Internet
Vehicles
vehicles that go
Kinda went a different direction, still using a picture elements card up top, but I spread a lot the info around to some other cards to keep it in a similar theme to the rest of my dashboards.

1701369573676.png
A really clean dashboard! Nice. Were these built using Mushroom cards?
 

queuewho

Well-known member
Joined
Oct 27, 2022
Threads
4
Messages
521
Reaction score
577
Location
Western PA
Vehicles
F150 Lightning Lariat SR
A really clean dashboard! Nice. Were these built using Mushroom cards?
The door locks card is a mushroom card, I liked how it handled the lock/unlock status, it made it really clear what a button press was going to accomplish.

Everything else with text is just markdown, bar graphs are a hacs item called 'bar card' but I do not recommend that integration, it seems to be mostly abandoned.
 
OP
OP
Aminorjourney

Aminorjourney

Well-known member
Joined
Jun 6, 2022
Threads
10
Messages
176
Reaction score
353
Location
Internet
Vehicles
vehicles that go
Another update from today - with some major changes in how things are added.

You now need to use this integration if you want to add text to the card based on status.

Ford F-150 Lightning Home Assistant - Ford F150 Lightning Dashboard. Screenshot 2023-12-09 at 10.10.04 PM


The card now changes and adds charging information as it occurs, and I've started to tidy up the codebase.

I'm also planning on using my Emporia sensors to represent charge in and out, but that's coming soon ;)

YAML:
title: Adira Tal - Ford F150 Lightning
type: picture-elements
image: /local/F150Lightningoverhead.jpg
elements:
  - type: state-icon
    icon: mdi:update
    entity: sensor.fordpass_lastrefresh
    tap_action: none
    action: none
    double_tap_action: none
    hold_action:
      action: call-service
      service: script.refresh_ford
    style:
      top: 6.5%
      left: 07%
      color: '#039be5'
  - type: state-label
    entity: sensor.fordpass_lastrefresh
    tap_action: none
    double_tap_action: none
    hold_action:
      action: call-service
      service: script.refresh_ford
    style:
      top: 96%
      left: 53%
      font-size: 100%
      font-weight: normal
      color: rgb(0,0,0)
    prefix: 'Status Last updated: '
  - type: state-label
    entity: device_tracker.fordpass_tracker
    tap_action: none
    double_tap_action: none
    hold_action: none
    style:
      top: 7%
      left: 92%
      font-size: 100%
      font-weight: normal
      color: black
  - type: conditional
    conditions:
      - entity: sensor.ford_charge_station_power_flow
        state: IN_PROGRESS
    elements:
      - type: state-label
        entity: sensor.ford_charging_power_template
        tap_action: none
        double_tap_action: none
        hold_action: none
        prefix: 'Charging at '
        style:
          top: 7%
          left: 33%
          font-size: 100%
          font-weight: Bold
          color: green
  - type: conditional
    conditions:
      - entity: sensor.ford_charge_station_power_flow
        state: IN_PROGRESS
    elements:
      - type: icon
        icon: mdi:battery-charging
        style:
          top: 6.5%
          left: 52%
          color: green
  - type: conditional
    conditions:
      - entity: sensor.ford_charge_station_power_flow
        state: DISCHARGING
    elements:
      - type: state-label
        entity: sensor.emporia_vue2a_truck_backup_power_feed_in
        tap_action: none
        double_tap_action: none
        hold_action: none
        prefix: 'Powering Home at '
        style:
          top: 7%
          left: 30%
          font-size: 100%
          font-weight: Bold
          color: green
  - type: conditional
    conditions:
      - entity: sensor.ford_charge_station_power_flow
        state: DISCHARGING
    elements:
      - type: icon
        icon: mdi:home-import-outline
        style:
          top: 6.5%
          left: 52%
          color: green
  - type: conditional
    conditions:
      - entity: sensor.ford_charge_station_power_flow
        state: STOPPED
    elements:
      - type: custom:text-action-element
        text: Charging Stopped!
        style:
          top: 7%
          left: 33%
          font-size: 100%
          font-weight: Bold
          color: Red
  - type: conditional
    conditions:
      - entity: sensor.ford_charge_station_power_flow
        state: STOPPED
    elements:
      - type: icon
        icon: mdi:alert-octagon
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 6.8%
          left: 49%
          color: RED
  - type: conditional
    conditions:
      - entity: sensor.ford_charge_station_power_flow
        state: COMPLETED
    elements:
      - type: custom:text-action-element
        text: Charging Completed!
        style:
          top: 7%
          left: 30%
          font-size: 100%
          font-weight: Bold
          color: Green
  - type: conditional
    conditions:
      - entity: sensor.ford_charge_station_power_flow
        state: COMPLETED
    elements:
      - type: icon
        icon: mdi:battery-charging-100
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 6.5%
          left: 49%
          color: green
  - type: conditional
    conditions:
      - entity: sensor.fordpass_firmwareupginprogress
        state: true
    elements:
      - type: icon
        icon: mdi:car-connected
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 6.5%
          left: 83%
          color: green
  - type: conditional
    conditions:
      - entity: sensor.fordpass_firmwareupginprogress
        state_not: true
    elements:
      - type: icon
        icon: mdi:car-connected
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 6.5%
          left: 83%
          color: light grey
  - type: conditional
    conditions:
      - entity: sensor.fordpass_alarm
        state: ARMED
    elements:
      - type: icon
        icon: mdi:shield-car
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 7%
          left: 77%
          color: red
  - type: conditional
    conditions:
      - entity: sensor.fordpass_alarm
        state_not: ARMED
    elements:
      - type: icon
        icon: mdi:shield-alert-outline
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 7%
          left: 77%
          color: black
  - type: conditional
    conditions:
      - entity: lock.fordpass_doorlock
        state: locked
    elements:
      - type: icon
        icon: mdi:lock
        tap_action: none
        double_tap_action: none
        hold_action:
          action: call-service
          service: script.unlock_f150_lightning
        style:
          top: 7%
          left: 70.5%
          color: black
  - type: conditional
    conditions:
      - entity: lock.fordpass_doorlock
        state_not: locked
    elements:
      - type: icon
        icon: mdi:lock-open-variant
        tap_action: none
        double_tap_action: none
        hold_action:
          action: call-service
          service: script.lock_f150_lightning
        style:
          top: 7%
          left: 70.5%
          color: '#039be5'
  - type: conditional
    conditions:
      - entity: status.fordpass_deepsleepinprogress
        state: ACTIVE
    elements:
      - type: icon
        icon: hass:power-sleep
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 7%
          left: 64%
          color: black
  - type: conditional
    conditions:
      - entity: sensor.fordpass_deepsleepinprogress
        state: DISABLED
    elements:
      - type: icon
        icon: hass:power-plug
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 7%
          left: 64%
          color: '#039be5'
  - type: conditional
    conditions:
      - entity: sensor.fordpass_remotestartstatus
        state: Inactive
    elements:
      - type: icon
        icon: hass:power
        tap_action: none
        double_tap_action: none
        hold_action:
          action: call-service
          service: script.remote_start_f150
        style:
          top: 7%
          left: 58%
          color: black
  - type: conditional
    conditions:
      - entity: sensor.fordpass_remotestartstatus
        state: Active
    elements:
      - type: icon
        icon: hass:power
        tap_action: none
        double_tap_action: none
        hold_action:
          action: call-service
          service: script.remote_start_f150
        style:
          top: 7%
          left: 58%
          color: green
  - type: conditional
    conditions:
      - entity: sensor.ford_left_front_tyre_template
        condition: numeric_state
        below: 38
    elements:
      - type: icon
        icon: mdi:car-tire-alert
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 6.9%
          left: 51.5%
          color: red
  - type: conditional
    conditions:
      - entity: sensor.ford_right_front_tyre_template
        condition: numeric_state
        below: 38
    elements:
      - type: icon
        icon: mdi:car-tire-alert
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 6.9%
          left: 51.5%
          color: red
  - type: conditional
    conditions:
      - entity: sensor.ford_left_rear_tyre_template
        condition: numeric_state
        below: 38
    elements:
      - type: icon
        icon: mdi:car-tire-alert
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 6.9%
          left: 51.5%
          color: red
  - type: conditional
    conditions:
      - entity: sensor.ford_right_rear_tyre_template
        condition: numeric_state
        below: 38
    elements:
      - type: icon
        icon: mdi:car-tire-alert
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 6.9%
          left: 51.5%
          color: red
  - type: state-label
    entity: sensor.fordpass_doorstatus
    attribute: REAR_LEFT
    tap_action: none
    double_tap_action: none
    hold_action: none
    style:
      top: 21%
      left: 40%
      color: black
  - type: state-label
    entity: sensor.fordpass_doorstatus
    attribute: DRIVER
    tap_action: none
    double_tap_action: none
    hold_action: none
    style:
      top: 21%
      left: 55%
      color: black
  - type: state-label
    entity: sensor.fordpass_doorstatus
    attribute: REAR_RIGHT
    tap_action: none
    double_tap_action: none
    hold_action: none
    style:
      top: 52%
      left: 40%
      color: black
  - type: state-label
    entity: sensor.fordpass_doorstatus
    attribute: PASSENGER
    tap_action: none
    double_tap_action: none
    hold_action: none
    style:
      top: 52%
      left: 55%
      color: black
  - type: state-label
    entity: sensor.fordpass_doorstatus
    attribute: HOOD
    tap_action: none
    double_tap_action: none
    hold_action: none
    style:
      top: 36%
      left: 77%
      color: white
  - type: state-label
    entity: sensor.fordpass_doorstatus
    attribute: TAILGATE
    tap_action: none
    double_tap_action: none
    hold_action: none
    style:
      top: 36%
      left: 30%
      color: white
  - type: conditional
    conditions:
      - entity: sensor.fordpass_elvehcharging
        attribute: Plug Status
        state: CONNECTED
      - entity: sensor.fordpass_elvehcharging
        attribute: Charge Type
        state_not: AC_BASIC
    elements:
      - type: icon
        icon: mdi:ev-plug-type1
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 21%
          left: 67%
          color: green
  - type: conditional
    conditions:
      - entity: sensor.fordpass_elvehcharging
        attribute: Plug Status
        state_not: CONNECTED
    elements:
      - type: icon
        icon: mdi:ev-plug-type1
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 21%
          left: 67%
          color: red
  - type: state-label
    entity: sensor.fordpass_outsidetemp
    prefix: 'Outside Temperature: '
    tap_action: none
    double_tap_action: none
    hold_action: none
    style:
      top: 13%
      left: 50%
      font-size: 100%
      font-weight: normal
      color: rgb(0,0,0)
  - type: conditional
    conditions:
      - entity: sensor.fordpass_outsidetemp
        condition: numeric_state
        below: 10
    elements:
      - type: icon
        icon: mdi:thermometer
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 13%
          left: 28%
          font-size: 100%
          font-weight: normal
          color: blue
  - type: conditional
    conditions:
      - entity: sensor.fordpass_outsidetemp
        condition: numeric_state
        above: 10
        below: 25
    elements:
      - type: icon
        icon: mdi:thermometer
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 13%
          left: 28%
          font-size: 100%
          font-weight: normal
          color: green
  - type: conditional
    conditions:
      - entity: sensor.fordpass_outsidetemp
        condition: numeric_state
        above: 25
    elements:
      - type: icon
        icon: mdi:thermometer
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 13%
          left: 28%
          font-size: 100%
          font-weight: normal
          color: red
  - type: custom:bar-card
    entity: sensor.fordpass_elvehcharging
    attribute: State of Charge
    severity:
      - color: Red
        from: 0
        to: 10
      - color: Orange
        from: 11
        to: 20
      - color: Green
        from: 21
        to: 100
    entity_row: true
    positions:
      icon: 'off'
      name: 'off'
      indicator: 'off'
    animation:
      state: 'on'
      speed: 5
    width: 270px
    tap_action: none
    hold_action: none
    double_tap_action: none
    stack: vertical
    style:
      top: 65%
      left: 53%
      font-size: 100%
      font-weight: Bold
      color: rgb(0,0,0)
  - type: conditional
    conditions:
      - entity: sensor.ford_charge_station_power_flow
        state: IN_PROGRESS
      - entity: device_tracker.fordpass_tracker
        state: home
    elements:
      - type: icon
        icon: mdi:home-lightning-bolt-outline
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 65%
          left: 55%
          color: black
  - type: conditional
    conditions:
      - entity: sensor.ford_charge_station_power_flow
        state: IN_PROGRESS
      - entity: device_tracker.fordpass_tracker
        state_not: home
    elements:
      - type: icon
        icon: mdi:ev-station
        tap_action: none
        double_tap_action: none
        hold_action: none
        style:
          top: 65%
          left: 55%
          color: black
  - type: state-label
    entity: sensor.fordpass_elveh
    attribute: null
    style:
      top: 74%
      left: 53%
      font-size: 100%
      font-weight: normal
      color: rgb(0,0,0)
    prefix: 'Estimated range: '
 

Tinglight

New member
Joined
Dec 18, 2023
Threads
0
Messages
1
Reaction score
1
Location
Canada
Vehicles
F-150 Lightning
Very nice. I love this sort of stuff. Here is a screenshot of mine. I got the lightning last week. Only have two days of continuous data. Right now just plotting what I find interesting in order to figure out what the lightning is doing and maybe why it is doing it.

What I think I've figured out so far.
1. The 12V battery charges when vehicle plugged in.
2. Last trip outside temp seems to be used to calculate maximum battery range.
3. Charging on 110V tries to get the battery to 15C (very slowly)
4. Coolant temp is always reporting 15C (what?)

Ford F-150 Lightning Home Assistant - Ford F150 Lightning Dashboard. Screenshot 2023-12-19 101512
 

Sponsored

ziptbm

Well-known member
Joined
Jan 4, 2023
Threads
8
Messages
89
Reaction score
37
Location
Michigan
Vehicles
'22 MME GT & '22 F150 Lightning Lariat ER
I think it would be cool to have a public repo with various HomeAssistant cards specifically tailored to the lightning. So I may set something like that up soon.
This would be awesome. I was inspired by someone in the HA community and built cards like this for both my Mach-E and F150 Lightning. The key thing I wanted was conditional information about time until full and real-time charging information, so it pulls that in for each vehicle separately when it's actively charging and then hides that information when it's not.

Ford F-150 Lightning Home Assistant - Ford F150 Lightning Dashboard. 1703004125186



@Aminorjourney - Thank you for sharing your work - this looks great! I'm now going to re-think how I've configured mine above to incorporate many of the things you've built out like visual door status, refresh cycle scripting, etc.

Also, I believe there was a mention earlier about data from the Ford Charge Station Pro (FCSP). I've had zero luck getting anything useful from that system. In fact, mine won't even stay connected to WiFi longer than a few days despite a finely tuned UniFi network. So, I ended getting an Emporia Vue 2, flashing it with the local ESPHome firmware, and put CT clamps on my 100A circuit to measure the energy consumption. While this lacks control on/off ability (which I really do miss from Tesla), it at least tells me consumption information, which is helpful for automations and visuals. After having this other data source, I've found the data reported in the FordPass app for charging session on the vehicle to not match the data reported from the FCSP or what my CT clamps are telling me. For me at least, it's given me one more reason to not worry about the flakey FCSP "connected" features.
 
OP
OP
Aminorjourney

Aminorjourney

Well-known member
Joined
Jun 6, 2022
Threads
10
Messages
176
Reaction score
353
Location
Internet
Vehicles
vehicles that go
This would be awesome. I was inspired by someone in the HA community and built cards like this for both my Mach-E and F150 Lightning. The key thing I wanted was conditional information about time until full and real-time charging information, so it pulls that in for each vehicle separately when it's actively charging and then hides that information when it's not.

1703004125186.png



@Aminorjourney - Thank you for sharing your work - this looks great! I'm now going to re-think how I've configured mine above to incorporate many of the things you've built out like visual door status, refresh cycle scripting, etc.

Also, I believe there was a mention earlier about data from the Ford Charge Station Pro (FCSP). I've had zero luck getting anything useful from that system. In fact, mine won't even stay connected to WiFi longer than a few days despite a finely tuned UniFi network. So, I ended getting an Emporia Vue 2, flashing it with the local ESPHome firmware, and put CT clamps on my 100A circuit to measure the energy consumption. While this lacks control on/off ability (which I really do miss from Tesla), it at least tells me consumption information, which is helpful for automations and visuals. After having this other data source, I've found the data reported in the FordPass app for charging session on the vehicle to not match the data reported from the FCSP or what my CT clamps are telling me. For me at least, it's given me one more reason to not worry about the flakey FCSP "connected" features.
Thanks for the kind words - and funny you should mention that...



Ford F-150 Lightning Home Assistant - Ford F150 Lightning Dashboard. IMG_5324

We have two Vue2s running in our house, flashed with ESP32 and tying into Home Assistant. I've got a current clamp around the 100A feet to the FCSP for charging data, and I've also got a clamp around the backed for power cuts. SO far, so good ;)
Ford F-150 Lightning Home Assistant - Ford F150 Lightning Dashboard. IMG_5328.PNG

I'm actually working on a video right now that will be released on Transport Evolved on Christmas Day, in which I hope to go into some more depth over our setup!
 

ziptbm

Well-known member
Joined
Jan 4, 2023
Threads
8
Messages
89
Reaction score
37
Location
Michigan
Vehicles
'22 MME GT & '22 F150 Lightning Lariat ER
We have two Vue2s running in our house, flashed with ESP32 and tying into Home Assistant. I've got a current clamp around the 100A feet to the FCSP for charging data, and I've also got a clamp around the backed for power cuts. SO far, so good ;)
Very nice!

How have your readings been from Vue of the 100A line? I ended up having to get another larger CT clamp connected to the blank C port on the top and combine with another of the smaller ports to get reasonably close to expected readings from that circuit.
 
OP
OP
Aminorjourney

Aminorjourney

Well-known member
Joined
Jun 6, 2022
Threads
10
Messages
176
Reaction score
353
Location
Internet
Vehicles
vehicles that go
Very nice!

How have your readings been from Vue of the 100A line? I ended up having to get another larger CT clamp connected to the blank C port on the top and combine with another of the smaller ports to get reasonably close to expected readings from that circuit.
Generally pretty good - the circuit always reads high by a half kilowatt or more - but I'm assuming this is power in at the source vs what the truck reports, which is probably power into the pack :)
 

ryry

Member
First Name
Ryan
Joined
Dec 19, 2023
Threads
1
Messages
20
Reaction score
6
Location
Nashville
Vehicles
Lightning Lariat ER
Kinda went a different direction, still using a picture elements card up top, but I spread a lot the info around to some other cards to keep it in a similar theme to the rest of my dashboards.

1701369573676.png
I really like this dashboard. Would you be able to share your yaml?
 
 





Top