-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RAPI commands do not use the payload in MQTT #299
Comments
We are in the process of deprecating RAPI so probably not going to work on this, happy to accept a PR in the short term however, in the longer term we will be replicating the HTTP API over MQTT for cases that can not use the HTTP API directly. For this type of use case you should look at the /claims. The main problem is that this is not persistent, we could potentially look at adding this, but another option if you just want the EVSE to sleep by default could be to add a schedule that just puts the EVSE to sleep ( |
MQTT control will be implemented by #358 |
If people have applications using RAPI over MQTT and the support for this is stopped, you may need to notify users. Otherwise this may also be helped by having the $xx command as the payload, rather than having single topics for each rapi command. Any change to current supported functionality would require notification of users who are using the functionality as is right now. Such as myself. |
It is in the docs, https://github.com/OpenEVSE/ESP32_WiFi_V4.x/blob/master/docs/rapi.md, ;-) The theory is that if people are using RAPI then they probably are just using the OpenEVSE WiFi as a gateway and implementing similar 'smart' functionality to v4 in another system, they should be fine sticking with v3, we have that on a branch and happy to accept PRs to backport bug fixes if needed. But unfortunately to do what we wanted to do with the WiFi module we just can not support multiple entities controlling the OpenEVSE module, it would make it just too complicated, trying to guess why the state of the controller changed when we were not expecting it. |
Understood. Makes sense. My inclination, as an industrial control specialist, is to always use "standard" or "available" functionality. In that sense, I will decommission any patch code provided the standard functions are adequate and working properly. I am currently using MQTT RAPI commands in a patch app only. So if the next release does not need the patch, I will be very happy. In the hypothetical eventuality the upgrade does not fix the patched issue and the support for allowing the patch code to work is dropped, requiring a rework of the patch, I may be a bit less happy. And if that happens unexpectedly, I would be even less happy :-). |
In my application I want to keep the EVSE in sleep mode till I decide differently so I give the command $FS as a retained message so if the power is off then on or if the EVSE is restarted or if the MQTT is unreachable, one it's back online it receives the command and it turns back to sleep mode. If i want to remove the retained message (for different reasons) I send null payload to the same command but what happens is that the EVSE detects a command (even empty) that goes to the $FS command and it executes it and goes to sleep mode. I would suggest to consider for example a true value as a payload to execute the command.
Thank you
The text was updated successfully, but these errors were encountered: