DevSecOps

Well-Known Member
First Name
Todd
Joined
Sep 22, 2021
Threads
69
Messages
4,764
Reaction score
11,624
Location
Sacramento, CA
Vehicles
'21 Audi SQ5 / '23 Rivian R1T / '23 M3P
Occupation
CISO
Country flag
Any plan on getting this to work on Android platform? Just curious...
If you happen to have Home Assistant all of this data can be displayed in any way imaginable and on any platform with little effort. I display it on Android.

You can do each item individually without the need to really do much of anything using the built in HA widgets or you could get fancy and do something like this: https://community.home-assistant.io/t/home-assistant-android-custom-widgets/187516

The nice thing about HA is that the possibilities are really endless and for little effort. You can create alerts for leaving your door unlocked or a window down if it's gonna rain etc etc.
Sponsored

 
Last edited:

DevSecOps

Well-Known Member
First Name
Todd
Joined
Sep 22, 2021
Threads
69
Messages
4,764
Reaction score
11,624
Location
Sacramento, CA
Vehicles
'21 Audi SQ5 / '23 Rivian R1T / '23 M3P
Occupation
CISO
Country flag
Saying that it takes little effort isn't even remotely true... Having a rich display in HA takes a lot of time and patience.
...
Once I started using home assistant though my life has never been the same :)
Ok well I guess for some of us it's little effort. I have toilets, fireplaces, bbq's, pet feeders, litter boxes and almost everything you can think of automated. It's far less effort for someone who doesn't know how to code, to use HA over writing scripts from hand or developing an Android App.

I have published drivers for HE blinds as well so I know how it goes.
 

tonesto7

Well-Known Member
First Name
Anthony
Joined
Sep 20, 2021
Threads
2
Messages
243
Reaction score
610
Location
Ann Arbor, Michigan
Vehicles
2021 F150
Occupation
Software Developer/System Admin
Country flag
Ok well I guess for some of us it's little effort. I have toilets, fireplaces, bbq's, pet feeders, litter boxes and almost everything you can think of automated. It's far less effort for someone who doesn't know how to code, to use HA over writing scripts from hand or developing an Android App.

I have published drivers for HE blinds as well so I know how it goes.
Lol... You must share what you did with the feeders and litter boxes?
oh and the toilets? Those aren't very common items to automate so I love to hear use cases :)
 

Chudsaviet

Well-Known Member
First Name
Timofei
Joined
Apr 1, 2021
Threads
9
Messages
299
Reaction score
285
Location
Bothell, WA
Vehicles
2022 EV6 First Edition AWD, 2014 Leaf
Occupation
Software
Country flag
I appreciate the compliment on the code... I think it looks like unorganized crap

I need to restructure some stuff, before I add a UI to it and the code reaches 4000+ lines of code :)
We have only one file, so it will be a little messy anyway.
You have structured it well :)
 


DevSecOps

Well-Known Member
First Name
Todd
Joined
Sep 22, 2021
Threads
69
Messages
4,764
Reaction score
11,624
Location
Sacramento, CA
Vehicles
'21 Audi SQ5 / '23 Rivian R1T / '23 M3P
Occupation
CISO
Country flag
Lol... You must share what you did with the feeders and litter boxes?
oh and the toilets? Those aren't very common items to automate so I love to hear use cases :)
The feeders and litter boxes are both from Litter Robot. They have an open API and it's in Core HA.

Time to get up to speed on what the Japanese have done....
The Toilets, well those are about 10k a piece. Without going into too much detail, I get them for free, so I didn't pay anything. They aren't Japanese they are made by Kohler. I'll spare some of the details as I'm sure we all know what a Bidet is, but this plays music, integrates with Alexa, has a light show and an API as well.
 

Jiji

Well-Known Member
First Name
Rick
Joined
Jul 26, 2021
Threads
24
Messages
493
Reaction score
641
Location
Finger Lakes
Vehicles
2022 Mustang Mach-E GT 2024 F-150 Lightning
Country flag
If you happen to have Home Assistant all of this data can be displayed in any way imaginable and on any platform with little effort. I display it on Android.
I have a HomeAssistant setup but it is only as good as the data coming in. And my battery health is stuck back at Thanksgiving despite plugging in and having FordPass force an update.

At least half the data got updated (10:15PM is 03:15UTC):
{
'batteryHealth': {'value': 'STATUS_LOW', 'timestamp': '11-23-2021 21:48:04'},
'batteryStatusActual': {'value': 15, 'status': 'CURRENT', 'timestamp': '12-14-2021 03:15:24'}
}

Ford has access to all the data to do this right, we are effectively crippled by the lack of timely and useful data. Maybe that is why I don't see a HomeAssistant integration or add-on for Ford vehicles.
 

DevSecOps

Well-Known Member
First Name
Todd
Joined
Sep 22, 2021
Threads
69
Messages
4,764
Reaction score
11,624
Location
Sacramento, CA
Vehicles
'21 Audi SQ5 / '23 Rivian R1T / '23 M3P
Occupation
CISO
Country flag
I have a HomeAssistant setup but it is only as good as the data coming in. And my battery health is stuck back at Thanksgiving despite plugging in and having FordPass force an update.

At least half the data got updated (10:15PM is 03:15UTC):
{
'batteryHealth': {'value': 'STATUS_LOW', 'timestamp': '11-23-2021 21:48:04'},
'batteryStatusActual': {'value': 15, 'status': 'CURRENT', 'timestamp': '12-14-2021 03:15:24'}
}

Ford has access to all the data to do this right, we are effectively crippled by the lack of timely and useful data. Maybe that is why I don't see a HomeAssistant integration or add-on for Ford vehicles.
Not sure why you are experiencing issues. I get updates every time the car pushes the updates. Something to note is that the vehicle will not update it's status while in motion or deep sleep.

Ford Mustang Mach-E ? Scriptable FordPass Widget (iOS, iPad, MacOS) 1639453106730


And here's battery status:

Ford Mustang Mach-E ? Scriptable FordPass Widget (iOS, iPad, MacOS) 1639453272492
 

tonesto7

Well-Known Member
First Name
Anthony
Joined
Sep 20, 2021
Threads
2
Messages
243
Reaction score
610
Location
Ann Arbor, Michigan
Vehicles
2021 F150
Occupation
Software Developer/System Admin
Country flag
Can someone perform these steps and PM me the info? (Only need one of 2 for comparison)
Overwrite your current script with this.
https://gist.githubusercontent.com/...ab11263667cf1d878ff84d62/Fordpass%20Widget.js

Open the Scriptable app and tap the ... on the Fordpass Widget.

Ford Mustang Mach-E ? Scriptable FordPass Widget (iOS, iPad, MacOS) 1639453272492


Tap the blue box with a number next to the play button and then tap the play button.
When the menu shows just press done.
Tap the ... to the right of Logs windows and share all of the text with me here...
This will be a large chunk of text!
 
Last edited:

Jiji

Well-Known Member
First Name
Rick
Joined
Jul 26, 2021
Threads
24
Messages
493
Reaction score
641
Location
Finger Lakes
Vehicles
2022 Mustang Mach-E GT 2024 F-150 Lightning
Country flag
Not sure why you are experiencing issues. I get updates every time the car pushes the updates. Something to note is that the vehicle will not update it's status while in motion or deep sleep.
Are you using a supported integration/add-on? I searched for 'ford' in each and got nothing. Since HA only records state changes just wondering wh you have so many HA entries. I plugged in tonight and it didn't send an update until I forced one with FordPass.
 

tonesto7

Well-Known Member
First Name
Anthony
Joined
Sep 20, 2021
Threads
2
Messages
243
Reaction score
610
Location
Ann Arbor, Michigan
Vehicles
2021 F150
Occupation
Software Developer/System Admin
Country flag
Are you using a supported integration/add-on? I searched for 'ford' in each and got nothing. Since HA only records state changes just wondering wh you have so many HA entries. I plugged in tonight and it didn't send an update until I forced one with FordPass.
I don't think the vehicle sends updates for all events. HA will read the timestamp on next poll and backfill the events. The HA integration doesn't use a websocket (don't think the API supports a socket) either it's just old school polling at intervals
 

Jiji

Well-Known Member
First Name
Rick
Joined
Jul 26, 2021
Threads
24
Messages
493
Reaction score
641
Location
Finger Lakes
Vehicles
2022 Mustang Mach-E GT 2024 F-150 Lightning
Country flag
I don't think the vehicle sends updates for all events. HA will read the timestamp on next poll and backfill the events. The HA integration doesn't use a websocket (don't think the API supports a socket) either it's just old school polling at intervals
I don't know, I hope to find out what HA integration is creating those sensors but if it a HACS add-on then I won't be able to try it out.
 

DevSecOps

Well-Known Member
First Name
Todd
Joined
Sep 22, 2021
Threads
69
Messages
4,764
Reaction score
11,624
Location
Sacramento, CA
Vehicles
'21 Audi SQ5 / '23 Rivian R1T / '23 M3P
Occupation
CISO
Country flag
I don't think the vehicle sends updates for all events. HA will read the timestamp on next poll and backfill the events. The HA integration doesn't use a websocket (don't think the API supports a socket) either it's just old school polling at intervals
Correct, it polls the API for changes. You can change the frequency to be whatever you want it to be however.

Are you using a supported integration/add-on?
Check HACS. It's not in Core
 

Jiji

Well-Known Member
First Name
Rick
Joined
Jul 26, 2021
Threads
24
Messages
493
Reaction score
641
Location
Finger Lakes
Vehicles
2022 Mustang Mach-E GT 2024 F-150 Lightning
Country flag
Check HACS. It's not in Core
I could never get HACS to work for me so I gave up on it. I mostly use HA for energy flows and use HomeKit for the automation of lights, video, and HVAC.
Sponsored

 
 







Top