Skip to content
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

Feature Request: access per API #248

Open
systeembeheerder opened this issue Mar 1, 2024 · 3 comments
Open

Feature Request: access per API #248

systeembeheerder opened this issue Mar 1, 2024 · 3 comments

Comments

@systeembeheerder
Copy link

Could the access setting be made available via the API?

Usercase: Connected is a pushbutton switch inside my home to enable/disable access to the charging station. I would like to set disable access as soon as the EVPlugState changes to Disconnected. So if someone unplugs the EV access should be denied until i push the button again.

@systeembeheerder
Copy link
Author

til changing the charging mode also changes the access mode. :(

which is kind of odd because there are both separate defined in the API

@dingo35
Copy link

dingo35 commented Mar 17, 2024

If you set mode to 0 through the API, access is denied. If you set it 1 - 3 the different modes are switched.

You also have charging state and if the vehicle is connected, so you can script it all, RTFM:
https://github.com/dingo35/SmartEVSE-3.5/blob/master/docs/REST_API.md

@systeembeheerder
Copy link
Author

you can RTFM all you want; but in the manual does not suggest there is any relation to access and mode.

Even your own API gives different fields for mode and acces:

  "version": "21:02:46 @Jan  3 2024",
  "mode": "OFF",
  **"mode_id": 0,**
  "car_connected": false,
  "evse": {
    "temp": 16,
    "temp_max": 60,
    "connected": false,
    **"access": false,**
    "mode": 1,   
    "loadbl": 0,
    "pwm": 1024,
    "solar_stop_timer": 0,
    "state": "Ready to Charge",
    "state_id": 0,
    "error": "None",
    "error_id": 0,
    "rfid": "Not Installed"
  },
...

Based on that; asking to be able to change those settings independent for each other isn't that weird is it?
My hardware switch (see manual) changed access, not mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants