Sponsored

Home Assistant - Ford F150 Lightning Dashboard.

Computermedic78

Well-known member
Joined
Nov 19, 2023
Threads
4
Messages
87
Reaction score
119
Location
NY
Vehicles
23 Lariat ER
I dont have the charge station installed yet so some things dont exist, but THANK YOU for this! It's much nicer to look at than the huge list.

Ford F-150 Lightning Home Assistant - Ford F150 Lightning Dashboard. Screenshot 2023-11-25 at 2.34.08 PM
Sponsored

 
OP
OP
Aminorjourney

Aminorjourney

Well-known member
Joined
Jun 6, 2022
Threads
10
Messages
176
Reaction score
351
Location
Internet
Vehicles
vehicles that go
I dont have the charge station installed yet so some things dont exist, but THANK YOU for this! It's much nicer to look at than the huge list.

Screenshot 2023-11-25 at 2.34.08 PM.png
Be aware that my YAML is full of errors - I'll be updating it regularly, so you may want to do the same thing with yours ;)

To do: fix the "refresh" icon, and also add automations to the turn on.

I also want to set this so that when a tyre is under pressure, it shows next to the relevant tyre ;)
 

Computermedic78

Well-known member
Joined
Nov 19, 2023
Threads
4
Messages
87
Reaction score
119
Location
NY
Vehicles
23 Lariat ER
The tire pressure stuff was causing me some grief, so I ended up taking that out. I think fordpass itself is supposed to send a notification when one is low, so I'm not as worried about those. I still think it's not seeing my sensors.yaml, I havent figured that out yet. I'm very new to HA in general so this is all new to me.

If you know of a way to pull historical charging data, that would be awesome. Right now I'm tracking that manually in Excel, which isnt my favorite way to do things.
 

bmwhitetx

Well-known member
First Name
Bruce
Joined
May 21, 2021
Threads
39
Messages
1,557
Reaction score
2,162
Location
DFW-Texas
Vehicles
2022 F150 Lightning Lariat ER
Occupation
Retired engineer
I still think it's not seeing my sensors.yaml, I havent figured that out yet. I'm very new to HA in general so this is all new to me.

If you know of a way to pull historical charging data, that would be awesome. Right now I'm tracking that manually in Excel, which isnt my favorite way to do things.
I just put all my sensors in my configuration.yaml file. I know others create a sensors.yaml or even a whole directory full of them. I think if you have a sensors.yaml file in your root directory (same directory as configuration.yaml, you just need to put this in your configuration.yaml:
sensor: !include sensors.yaml

I believe sensor: can only appear once across both files. So either they all stay in config or all move to the separate file.

As far as pulling pulling historical charging data that is what @theUNSTABLE is working on in the two posts I linked above. You should ping him there.
 

Jakebeans

New member
First Name
Jacob
Joined
Nov 26, 2023
Threads
0
Messages
4
Reaction score
2
Location
Nebraska
Vehicles
2022 Lariat 511A ER Black
Occupation
Controls Engineer
First off, I'm excited to mess with this to get my truck into Home Assistant, since that's pretty awesome. Agreed with everyone's frustration with Yaml, as it's my least favorite part of the whole thing. But the main reason I'm commenting is to talk about your Modbus integration with the Home Integration System, or whatever it's called. Your link is to a Delta VFD-E, but the unit is a Delta E-Series Inverter. A VFD is an inverter, but these don't like they're the same product. VFDs are typically used for 3-phase motors, and while I'm assuming the electronics are similar, I'd be very surprised if it's the exact same part.

Assuming it is the same part though, have you opened it up to look at the actual ports on it? Because Modbus can be done either over RS-485, which is a serial protocol, or over Ethernet. They'd be Modbus RTU or Modbus TCP respectively. They both use an RJ45 connector on the end, but they're wired completely differently, so make sure you are using the right one both with your software and hardware. You can easily burn up converters or ports by mistaking one for the other. From what I can tell on the spec sheet for the E series inverters, it looks to be the RS-485 version, which would require you to get some sort of RS-485 to Ethernet adapter, or use an ESP8266 or something like that. I'd recommend getting some kind of actual RS-485 shield or converter kit that will take care of making sure voltages are correct and has some sort of interface that'll make it so you don't have to worry about baud rates and stop bits and all that. Unless you're into messing with that, but I'm personally tired of re-engineering serial protocols to fit new technology. Even though I'm literally in the process of trying to reverse engineer the ClimateTalk commands for my furnace, but that's a whole other thing.

Anyways, long story short: Definitely stealing your Yaml and make sure you're using the right kind of Modbus, because everything I can find is showing RS-485 and you can't just use an Ethernet cable.
 

Sponsored
OP
OP
Aminorjourney

Aminorjourney

Well-known member
Joined
Jun 6, 2022
Threads
10
Messages
176
Reaction score
351
Location
Internet
Vehicles
vehicles that go
First off, I'm excited to mess with this to get my truck into Home Assistant, since that's pretty awesome. Agreed with everyone's frustration with Yaml, as it's my least favorite part of the whole thing. But the main reason I'm commenting is to talk about your Modbus integration with the Home Integration System, or whatever it's called. Your link is to a Delta VFD-E, but the unit is a Delta E-Series Inverter. A VFD is an inverter, but these don't like they're the same product. VFDs are typically used for 3-phase motors, and while I'm assuming the electronics are similar, I'd be very surprised if it's the exact same part.

Assuming it is the same part though, have you opened it up to look at the actual ports on it? Because Modbus can be done either over RS-485, which is a serial protocol, or over Ethernet. They'd be Modbus RTU or Modbus TCP respectively. They both use an RJ45 connector on the end, but they're wired completely differently, so make sure you are using the right one both with your software and hardware. You can easily burn up converters or ports by mistaking one for the other. From what I can tell on the spec sheet for the E series inverters, it looks to be the RS-485 version, which would require you to get some sort of RS-485 to Ethernet adapter, or use an ESP8266 or something like that. I'd recommend getting some kind of actual RS-485 shield or converter kit that will take care of making sure voltages are correct and has some sort of interface that'll make it so you don't have to worry about baud rates and stop bits and all that. Unless you're into messing with that, but I'm personally tired of re-engineering serial protocols to fit new technology. Even though I'm literally in the process of trying to reverse engineer the ClimateTalk commands for my furnace, but that's a whole other thing.

Anyways, long story short: Definitely stealing your Yaml and make sure you're using the right kind of Modbus, because everything I can find is showing RS-485 and you can't just use an Ethernet cable.

Absolutely - I was thinking ESP 8266 - Don't want to go directly into it - I haven't done ANYTHING to it yet, as we're still not 100% working ;). But yes, I did get a look when it was last being worked on and yes, it does have two RJ45 ports, one above the other, which makes makes me *think* it might be using a similar setup.

However, I'd not be tinkering about with it any time soon. Too expensive ;)

As for the YAML: see an updated version here:


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: 10%
      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: state-label
    entity: sensor.ford_charge_station_power_flow_template
    tap_action: none
    double_tap_action: none
    hold_action: none
    style:
      top: 6.5%
      left: 28%
      color: black
    prefix: null
  - type: conditional
    conditions:
      - entity: sensor.ford_charge_station_power_flow_template
        state: DISCHARGING
    elements:
      - type: icon
        icon: mdi:home-import-outline
        style:
          top: 6.5%
          left: 49%
          color: green
  - type: conditional
    conditions:
      - entity: sensor.ford_charge_station_power_flow_template
        state: IN_PROGRESS
    elements:
      - type: icon
        icon: mdi:home-export-outline-outline
        style:
          top: 6.5%
          left: 49%
          color: red
  - type: conditional
    conditions:
      - entity: sensor.ford_charge_station_power_flow_template
        state: COMPLETED
    elements:
      - type: icon
        icon: mdi:battery-charging-100
        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: 23%
      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: 23%
      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: 53%
      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: 53%
      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: 37%
      left: 74%
      color: white
  - type: state-label
    entity: sensor.fordpass_doorstatus
    attribute: TAILGATE
    tap_action: none
    double_tap_action: none
    hold_action: none
    style:
      top: 37%
      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: 24%
          left: 68%
          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: 24%
          left: 68%
          color: red
  - type: conditional
    conditions:
      - entity: sensor.ford_charge_station_power_flow_template
        state: IN_PROGRESS
    elements:
      - type: state-label
        entity: sensor.fordpass_elvehcharging
        attribute: Charging kW
        tap_action: none
        double_tap_action: none
        hold_action: none
        prefix: 'Charging At: '
        suffix: kW
        style:
          top: 19.5%
          left: 82%
          font-size: 100%
          font-weight: normal
          color: green
  - type: state-label
    entity: sensor.fordpass_outsidetemp
    prefix: 'Outside Temperature: '
    tap_action: none
    double_tap_action: none
    hold_action: none
    style:
      top: 16%
      left: 51%
      font-size: 100%
      font-weight: normal
      color: rgb(0,0,0)
  - type: icon
    icon: mdi:thermometer
    tap_action: none
    double_tap_action: none
    hold_action: none
    style:
      top: 16%
      left: 24%
      font-size: 100%
      font-weight: normal
      color: rgb(0,0,0)
  - 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: normal
      color: rgb(0,0,0)
  - type: conditional
    conditions:
      - entity: sensor.ford_charge_station_power_flow_template
        attribute: Charging Status
        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_template
        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: '
This now INCLUDES the correct code to do the following:

1) Activate a script to refresh the status of the F150 Lightning (Use sparingly)
2) Lock and unlock the doors via two separate scripts. The icons that appear are conditional, so you set the HOLD action to activate the opposite script to the current state.
3) Toggle the Ignition on and off (preconditioning)

Some notes:

You'll see from the attached images that the Lock/unlock scripts and the ignition on/off script uses a 30 second delay and THEN calls for a refresh. This is to ensure that FordPass-HA has the latest data to go with your request.

Please note: overusing the refresh will likely cause your account to be blocked (temporarily or worse), so please don't spam Ford's Servers ;)

Ford F-150 Lightning Home Assistant - Ford F150 Lightning Dashboard. Screenshot 2023-11-26 at 9.40.26 PM
Ford F-150 Lightning Home Assistant - Ford F150 Lightning Dashboard. Screenshot 2023-11-26 at 9.40.17 PM
Ford F-150 Lightning Home Assistant - Ford F150 Lightning Dashboard. Screenshot 2023-11-26 at 9.40.05 PM
Ford F-150 Lightning Home Assistant - Ford F150 Lightning Dashboard. Screenshot 2023-11-26 at 9.39.58 PM
 
OP
OP
Aminorjourney

Aminorjourney

Well-known member
Joined
Jun 6, 2022
Threads
10
Messages
176
Reaction score
351
Location
Internet
Vehicles
vehicles that go
Just as an addendum, the software update notification works! - I just opened up the dashboard on my computer, and the icon for firmware updates was black (instead of the default grey!) I may look into a different icon for showing that particular feature, but I like that it works! ;)
Ford F-150 Lightning Home Assistant - Ford F150 Lightning Dashboard. Screenshot 2023-11-27 at 8.59.48 AM
 

theUNSTABLE

Well-known member
First Name
Ryan
Joined
Feb 5, 2023
Threads
7
Messages
83
Reaction score
109
Location
Florida
Website
github.com
Vehicles
2023 F150 Lightning Lariat
Occupation
Cyber Engineer
Popping in because I was pinged.
Yes, I am SquidBytes on GitHub and I am a collaborator on the Fordpass-HA integration.
Basically anything EV with the integration is what I implemented.

However, I have been out for a bit for family reasons.
I know recently the authentication changed and broke a bunch of things.
Currently I have my setup offline because I haven't had time to look into it.

I skimmed this thread. That card looks very nice. I have been working on a custom one, but just haven't had the time to fully finish it.

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.

I am also working on my LightningROD project, and just finally moved over to using InfluxDB. I have had very minimal free time to work more on that, and update the grafana dashboard. I also don't know if the new authentication method breaks this.

Happy to collaborate with others and/or take suggestions for the Fordpass-HA integration if there are any.
 
OP
OP
Aminorjourney

Aminorjourney

Well-known member
Joined
Jun 6, 2022
Threads
10
Messages
176
Reaction score
351
Location
Internet
Vehicles
vehicles that go
Popping in because I was pinged.
Yes, I am SquidBytes on GitHub and I am a collaborator on the Fordpass-HA integration.
Basically anything EV with the integration is what I implemented.

However, I have been out for a bit for family reasons.
I know recently the authentication changed and broke a bunch of things.
Currently I have my setup offline because I haven't had time to look into it.

I skimmed this thread. That card looks very nice. I have been working on a custom one, but just haven't had the time to fully finish it.

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.

I am also working on my LightningROD project, and just finally moved over to using InfluxDB. I have had very minimal free time to work more on that, and update the grafana dashboard. I also don't know if the new authentication method breaks this.

Happy to collaborate with others and/or take suggestions for the Fordpass-HA integration if there are any.
The amount of time I have varies a lot, so I know the feeling of needing to be out!

But yeah, it would be great to see this all come together. I've been following LIghtningROD ;) With Regard to Home Assistant, I'd love to figure out better accessibility for the ChargeStation Pro/Home Integration System.

I know that the Home Integration system publishes its power levels in/out, it's just a case of figuring out where that comes through to FordPass (because I think it does, although mine is broken).

Finally, THANK YOU for adding the EV stuff to Fordpass-HA. It's such a great setup and so comprehensive, which really makes integrating into Home Assistant a lot easier. I'm not a coder (my wife is the one in IT), but I know enough to be dangerous/stupid ;)
 

Sponsored

Nick503955

Well-known member
First Name
Nick
Joined
Aug 31, 2022
Threads
6
Messages
119
Reaction score
104
Location
San Diego, CA
Vehicles
2023 Ford Lightning Lariat, 2021 Tesla Model Y
Regarding tire pressure, the sensor data in Home Assistant indicates a value about 7x higher than the PSI indicated in the Ford Pass app. The factor is not consistent, ranging from 6.8-7.0x higher.

How are you handling this?

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

Jakebeans

New member
First Name
Jacob
Joined
Nov 26, 2023
Threads
0
Messages
4
Reaction score
2
Location
Nebraska
Vehicles
2022 Lariat 511A ER Black
Occupation
Controls Engineer
Regarding tire pressure, the sensor data in Home Assistant indicates a value about 7x higher than the PSI indicated in the Ford Pass app. The factor is not consistent, ranging from 6.8-7.0x higher.

How are you handling this?

1701284771200.png
I know it says PSI for the unit of measurement, but assuming your tire pressure is around 43 PSI, those units are in kPa. Which would put the conversion at 1 kPa = 0.145038 PSI.
 

Nick503955

Well-known member
First Name
Nick
Joined
Aug 31, 2022
Threads
6
Messages
119
Reaction score
104
Location
San Diego, CA
Vehicles
2023 Ford Lightning Lariat, 2021 Tesla Model Y
I know it says PSI for the unit of measurement, but assuming your tire pressure is around 43 PSI, those units are in kPa. Which would put the conversion at 1 kPa = 0.145038 PSI.
Perfect. The discrepancy in the factor was because of rounding in the Ford App.

Thank you!
 
OP
OP
Aminorjourney

Aminorjourney

Well-known member
Joined
Jun 6, 2022
Threads
10
Messages
176
Reaction score
351
Location
Internet
Vehicles
vehicles that go
Perfect. The discrepancy in the factor was because of rounding in the Ford App.

Thank you!
Be sure to make sure you've set your preferred units in the ford pass options of Fordpass_HA

See screen shot below. You'll find these by going to Settings > Devices & Services > FordPass > Configure

Ford F-150 Lightning Home Assistant - Ford F150 Lightning Dashboard. Screenshot 2023-11-29 at 12.14.24 PM
 

queuewho

Well-known member
Joined
Oct 27, 2022
Threads
4
Messages
514
Reaction score
564
Location
Western PA
Vehicles
F150 Lightning Lariat SR
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...
Sponsored

 
 





Top