[APP][Pro] XPENG Car Manager for Homey

Find it here. XPENG Car Manager App för Homey | Homey

Transform your XPENG electric vehicle into an integral part of your smart home ecosystem. This app seamlessly connects your car with Homey, enabling intelligent automation and real-time monitoring that enhances both your driving and home automation experience.

Key Features

Comprehensive Vehicle Monitoring

  • Battery Management: Real-time battery level tracking with customizable alerts
  • Charging Intelligence: Monitor charging status, power delivery, and set charging notifications
  • Location Awareness: Keep track of your vehicle’s location and create location-based automations
  • Vehicle Analytics: Access detailed information including range, odometer, and charging efficiency

Smart Home Integration

  • Automated Routines: Create flows that react to your car’s status (e.g., turn on home heating when car is approaching)
  • Energy Management: Optimize charging times based on your home’s energy usage
  • Intelligent Notifications: Get alerts for critical events like low battery or completed charging
  • Custom Triggers: Build complex automations using multiple car-related conditions

Charging Optimization

  • Power Monitoring: Track charging power and efficiency
  • Status Tracking: Know exactly when your car starts and stops charging
  • Smart Alerts: Get notified about charging events and battery levels
  • Range Monitoring: Stay informed about your vehicle’s current range

Requirements

  • XPENG Electric Vehicle (Compatible with all models)
  • Enode API Access (Credentials required for setup)
  • Homey Pro

Setup Guide

  1. Install the XPENG Car Manager app on your Homey
  2. Have your Enode API credentials ready (Client ID and Secret)
  3. Add your vehicle through the Homey app
  4. Configure your preferred monitoring settings and alerts

Support

For questions, feature requests, or support:

Privacy & Security

  • All credentials are securely stored within Homey
  • No personal data is collected or stored outside your Homey
  • Communication with XPENG servers is encrypted

It might be possible to have it added to the community app stores:

http://hc-store.app (forum topic)
http://homeycommunity.space

1 Like

if they are ok with not having the perfect images for the app, then yes that might be the case, as this is the only issue for Homey to not accept this app.

I’ve read about that was one of the reasons to start a community store😉

1 Like

done so now it is here

2 Likes

@Kjetil_Vert C Could you upload a verison with all files excluding: node_modules.

We use the homey cli to install the app, it requires all files to there like package.json etc.

Thanks in advance!

Hi @Kjetil_Vert!

Great job on creating this app! :raised_hands:

Just a heads-up: for Community Apps, we’re not too strict about following the guidelines to the letter—that’s mainly for apps built by official partners. :wink:

You can find all the guidelines for publishing your app to the Homey App Store here. If you need help creating assets, feel free to request assistance from our in-house icon designer here.

We would love to see the App pop-up in the Homey App Store.

Keep up the awesome work! :rocket:

This was the input from Homey but I have done a request for the images now

Reviewer
Dear Kjetil Vetlejord,

Thank you for submitting your app XPENG Car Manager for review.

Unfortunately, your app has not passed the certification process, due to the following:

— Your app’s images do not represent your app very well and it won’t look appealing in the Homey App Store. Please make sure your images are visually appealing and represent your app, consider using images similar to those used on the Xpeng website. Some good examples to maybe use are:


or

Check out our App Store Guidelines for more information: Guidelines | Homey Apps SDK

— Your driver icon seems like a drawing of a car. Please provide a unique driver image that depicts the device it supports. Check out our App Store Guidelines for more information: Guidelines | Homey Apps SDK

If you do not have suitable icons for your app or drivers we can provide a handmade icon for you. You can request an icon by creating an issue in the Homey Vectors repository. Please include as much information about your app as possible and include pictures of the devices.

Once you have solved these issues, you can submit a new version for certification again.

This looks really awesome! However, installation instructions from Homey community store describes enabeling SSH. It seems that is not an option on the Homey’s from before 2023. So it looks like I’m stuck. If it makes it into Homey App Store with support for the 2019 homeys, it would be fantastic! :slight_smile: Had my Xpeng for a year and have waited for integration!

Also - i can see it’s all about charging. How about adding possibility to control functions like pre-heating, or mabe both trigger “Combo’s” (coming in XOS 5.4.5) and also have starting combos trigger things in Homey? That would be really powerful! Then one could make a lot of things happen. Making a “empty” combo, and have homey perform actions when run? :slight_smile: Like open garage door and such? :slight_smile:

You can use Homey Community Space for Pro 201x models.
But, the Xpeng app is not published yet.
AFAIK the idea was to have both community stores publish the same apps.

@Kjetil_Vert Were you able to contact Dominic (dev of the homeycommunity.space store)? Discord channel: https://homeycommunity.space/discord

Now live

It took me some time to connect my car so here is a quick guide:

1: Create an account https://enode.com/
2: Ask for Production upgrade
3: Create "new client in the dashboard
4: Get API “Client ID” & “Client Secret”
5: Make a bat file: Remember to Insert client ID and Secret

@echo off
for /f "tokens=2 delims=:," %%a in ('curl https://oauth.production.enode.io/oauth2/token ^
    -X POST ^
    -u {YOUR_CLIENT_ID}:{YOUR_CLIENT_SECRET} ^
    -d "grant_type=client_credentials"') do set "access_token=%%~a"

echo %access_token%

curl https://enode-api.production.enode.io/users/1ab23cd4/link ^
    -X POST ^
    -H "Authorization: Bearer %access_token%" ^
    -H "Content-Type: application/json" ^
    -d "{ \"vendorType\": \"vehicle\", \"scopes\": [ \"vehicle:read:data\", \"vehicle:read:location\", \"vehicle:control:charging\" ], \"language\": \"en-US\", \"redirectUri\": \"https://localhost:3000\" }"

6: Copy the URL in the response to your browser and follow the UI to login to you XPENG account.

7: Now go to homey and add new device XPENG Car manager
Insert YOUR_CLIENT_ID & YOUR_CLIENT_SECRET

/Thanks @Kjetil_Vert
Merry Christmas to all

1 Like

Thanks for this @Kongedam I was about to post a homeyscript to do this but you made it easy for most people so lets see if this is good enough I would like to make this included in the app but I haven’t yet figured out how to do this in one go.

Hopefully I can add this in the app itself.

I have now updated the app to include the process for adding the car to your enode account.

See the test version XPENG Car Manager | Homey

1 Like

@Kjetil_Vert when I’m trying to add my car in Homey (after creating the Enode account), it says that it failed to generate vehicle link. I’m kind of noob on this level and have never used Enode before, I followed the instructions but have probably missed something… You think you could help me find out what? Thanks.

You have to ask enode to make your account to a production account.

You do this by mail to them.

Regards Kjetil

sön 5 jan. 2025 kl. 21:49 skrev Jens Edberg via Homey Community Forum <notifications@athom.discoursemail.com>:

1 Like

Is it just me or is the update time really slow/bad?

I have set the refresh interval to 1 min in the app. But it don’t fetch the new data. I compared it with real data from postman there battery level is 96% but in the app it is 94% and last update 31 min ago.

Any ideas what could be the cause of this?

Does the authentication need to be refreshed with new bearer token? @Kjetil_Vert

I got it to work now, thanks!

hi Jens, How is your Update respons time in the app?

Some parts update only when car is started (like battery %). Some parts updates more frequently.