nordicopen / pyeasee

Easee EV charger API python library
MIT License
39 stars 11 forks source link

Add additional status #25

Open Hellowlol opened 3 years ago

Hellowlol commented 3 years ago

If auth is required to use the charger, in in the app, its called waiting for authorization, however in the api the data that is sent has 'chargerOpMode': 2 (PAUSED)

I think we should check for this add add a waiting for approval or authorization status.

Also we dont use the levelOfAccess that /api/chargers/{id} returns. There is no way to know what kind of access is required. We can check if auth is required using charger.get_config()["authorizationRequired"] but thats it.

If this is something that you want, i can a PR for this.

tmjo commented 3 years ago

Did you check if this info is available in the sensor "reason_for_no_current"?

Hellowlol commented 3 years ago

There is no sensor in this library, but it isnt available in hass_easee

tmjo commented 3 years ago

Right, of course, I forgot this was for the API. But the is still available, did you check what the reason for no current value returns?

Hellowlol commented 3 years ago

I havnt checked that out. Ill do that

Hellowlol commented 3 years ago

When the charger require auth, the reason_for_no_current is None. So no help there :(