ericpullen
Well-known member
- First Name
- Eric
- Joined
- Jan 4, 2022
- Threads
- 31
- Messages
- 269
- Reaction score
- 483
- Location
- Louisville, KY
- Vehicles
- 22 F-150 Lightning & 22 Mach-E
- Thread starter
- #1
I'm happy to announce a new Python based library for the Ford Charge Station Pro.
https://github.com/ericpullen/fcsp-api
[Update 2025-06-30]
It is also available as a PyPi package as well:
https://pypi.org/project/fcsp-api/
Currently the library can authenticate and get the basic information allowed by the local API (charge state, max amp setting, station ID, and a few other minor details). The big thing here is we can use it to see if something is plugged into it, if it is charging or not, when it is disconnected, or when a charge error occurs.
You will need to understand the basics of using Python to run this, but its pretty straight forward. There are 2 example apps, one that gives you a bunch of charging info and test some various state functions (fcsp_charging_state.py) and another one that simply polls the FCSP to see what the current state is and report to the screen when it changes (fcsp_state_monitor.py).
Here is an example of the fcsp_state_monitor.py:
I'm going to continue looking at the internals of the FCSP, but this should give people a great starting point to look deeper at what the local FCSP api can offer. If you want to contribute code, please just create a pull-request and I'll take a look at it.
https://github.com/ericpullen/fcsp-api
[Update 2025-06-30]
It is also available as a PyPi package as well:
https://pypi.org/project/fcsp-api/
Currently the library can authenticate and get the basic information allowed by the local API (charge state, max amp setting, station ID, and a few other minor details). The big thing here is we can use it to see if something is plugged into it, if it is charging or not, when it is disconnected, or when a charge error occurs.
You will need to understand the basics of using Python to run this, but its pretty straight forward. There are 2 example apps, one that gives you a bunch of charging info and test some various state functions (fcsp_charging_state.py) and another one that simply polls the FCSP to see what the current state is and report to the screen when it changes (fcsp_state_monitor.py).
Here is an example of the fcsp_state_monitor.py:
Bash:
epullen@EricsM4MegaMini:code/fcsp-api ‹main›$ python examples/fcsp_state_monitor.py
? FCSP State Monitor
? Polling every 30 seconds
? Press Ctrl+C to stop
==================================================
? Getting initial state...
? Initial state: ? CS02 - Charging
? Starting monitoring loop...
Sponsored
Last edited: