Charging reminder... app, ifttt, APIs, script??

Discussion in 'Cooper SE' started by Ton K, Feb 26, 2023.

To remove this ad click here.

  1. Ton K

    Ton K New Member

    What I'm looking for is a way to have some sort of notification send (from the app, an email, a text, ifttt) when I forget to plug in my Mini SE.

    Ideally, I would love to do this through the Mini app, but ifttt or writing a custom script would also be good (I would just need access to theMini's status). The goal is to have the battery level checked at perhaps 9pm. If it is below x% and the car is not plugged in, send a reminder.

    Does anyone know if a) Mini might add such a feature (probably not), or b) if there are any APIs that one could use to write an ifttt or custom script?

    Thanks!

    Ton
     
    SameGuy likes this.
  2. To remove this ad click here.

  3. SameGuy

    SameGuy Well-Known Member Subscriber

    YUL
    If you have a home automation system that talks Zwave, you can get a high-current Zwave relay that has energy monitoring, then base a script around that. It’s on my back burner now, but when I get the time I’ll wire in the Aeotec Heavy Duty Smart Switch and write some automations or maybe Groovy scripts for Hubitat — one of them being a notifier when the circuit is energized (or not).
     
  4. Ton K

    Ton K New Member

    If I understand what you are suggesting correctly, you are approaching this by getting information from the charger… is that correct?

    If so, that would solve part of my goal… send a reminder when the car is not charging. The other thing I was trying to include is to only send the notification when the car has less than X% charge in the battery.
     
  5. SameGuy

    SameGuy Well-Known Member Subscriber

    YUL
    Yes, that’s the plan for now. Some EVSEs (as well as the OpenEVSE station) are able to communicate with external software or apps; unfortunately, my so-called “smart” EVSE currently only talks to the woefully inadequate ChargeLab app, so for now I can only automate status notifications (or control the charge based on external triggers) by reading the energy metering output.
     
  6. endquote

    endquote Active Member

    You could try reverse engineering the MINI app by snooping on its traffic with a proxy server, and then impersonating it in your own code.

    https://www.charlesproxy.com/

    Likely easier said than done though.
     
    SameGuy likes this.
  7. To remove this ad click here.

  8. Tommm

    Tommm Well-Known Member

    When you get that app working do you think you can get one to text me when the car my kid (or wife) is driving is getting low on gasoline?
     
    revorg likes this.
  9. piflechien

    piflechien New Member

    BMW has API that you can call to get battery status.
    Write a script that runs everyday at 9pm, check battery status with these API, then if it's below X do something (notification, mail, sms, etc)

    Alternatively you can use Tronity service and use their API or create a webhook. (need developer skills though).
    Here's my referral link for one month free trial: https://app.tronity.io/signup/pKISSyUJm
     
  10. AndysComputer

    AndysComputer Well-Known Member

    65883D15-1E77-46FF-B921-721B8A46513E.jpeg I bought two OpenEVSE units purely for their APIs so that I could write a web app and run it on a raspberrypi in a 7” touchscreen “frame” to sit in the living room and show me live status.

    Whether each unit is sleeping or available (they only provide power during the night) and whether or not the car is connected. Plus pull the session stats to store and calculate charging cost (which is currently zero due to the free at night plan).
     
    ghost and SameGuy like this.
  11. To remove this ad click here.

Share This Page