Hello,
I am currently using the RAPI for my OpenEVSE and am looking at the different states:
EVSE State - 1 Not Connected - 2 Connected - 3 Charging - 4 Error, 254 - sleep, 255 - disabled
I have my charger on Timer mode most of the time which just shows as state 254. However despite being in this state I would still like to know if the Car is connected as I may want to implement some logic to start the charging. However the only way I have found to determine if the car is connected is to actually try to start charging ($F1) but this is not always desirable for me.
Question: How to find if car is connected when charger in state 254 (timer) without starting a charge.
Thanks
B
Rachel
(Rachel Lee)
29 January 2020 21:29
2
I’m following because I’m interested, but also wonder if you’ve managed to find a complete list of RAPI commands anywhere? I found a link to such a list on an openenergymonitor blog, but it’s a 404!
Thanks
R
Let us know the URL where you found the 404 error, so we can fix it.
Thanks!
@TrystanLea …
pb66
(Paul)
29 January 2020 22:31
5
I think the blog is OpenEVSE EV Charge Controller - Blog | OpenEnergyMonitor
The link is towards the end
RAPI commands can be used to control and check the status of all OpenEVSE functions. A full list of RAPI commands can be found in the OpenEVSE plus source code .
and should possibly point to
// -*- C++ -*-
/*
* Open EVSE Firmware
*
* Copyright (c) 2013-2021 Sam C. Lin <[email protected] >
*
* This file is part of Open EVSE.
* Open EVSE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
* Open EVSE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with Open EVSE; see the file COPYING. If not, write to the
This file has been truncated. show original
Edit - PR for correction submitted
openenergymonitor:master
← pb66:patch-1
opened 10:46PM - 29 Jan 20 UTC
ref https://community.openenergymonitor.org/t/how-to-tell-if-car-is-connected-du… ring-timer-state-254/13111/2?u=pb66
1 Like
Rachel
(Rachel Lee)
30 January 2020 08:57
7
It was that page - OpenEVSE EV Charge Controller - Blog | OpenEnergyMonitor
But it was actually the 2nd link “A full list of RAPI Commands…” that I got the 404 error on.
The last link in the pasted bit below…
Regards
Rachel
"There is also an OpenEVSE RAPI command python library .
RAPI commands can be used to control and check the status of all OpenEVSE functions. A full list of RAPI commands can be found in the [OpenEVSE plus source code]****(https://github.com/OpenEVSE/open_evse/blob/stable/firmware/open_evse/src/rapi_proc.h )."
Yes, that’s correct. Thanks for the fix
Hi,
This is not yet possible. But will be possible with a open_evse controller firmware update with RAPI protocol 5.0.0 (currently in beta) and the new ESP32 wifi portal FW (also still in beta).
Pukka
(Paul)
2 February 2020 21:34
10
Hi @glyn.hudson
If we want to try the beta, where can we get an ESP32 from?
Do you have a list of models we can buy?
Paul
This ESP32 module is an easy direct swap inside the OpenEVSE:
Pukka
(Paul)
3 February 2020 19:39
12
would this one work? it a little easier to get the in UK without expensive postage
Yes, it would, will work. But you will need to manually connect up Rx and Tx lines
I managed to find another documentation for the RAPI and found this which seems to give the connected state even when in Timer 254 mode:
http://openevse/r?json=1&rapi=$G0
I think thats just what I needed.
1 Like
PaulS
(Paul Sargent)
6 February 2020 14:47
15
In time, will you be selling pre-programmed versions of this as upgrades?
Yes, very soon we’re migrating to using ESP32 as standard and will be selling pre-loaded modules. We will have some in the shop in the next few weeks.
Pukka
(Paul)
9 February 2020 17:29
17
Thats great news, will wait until they are in the shop
ESP32 OpenEVSE WiFi gateway is now in the shop :