Skip to content

Commit

Permalink
Status codes etc corrected wrt PR #28
Browse files Browse the repository at this point in the history
  • Loading branch information
astrandb committed Oct 27, 2020
1 parent c87f26e commit f43af04
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions pyeasee/charger.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
_LOGGER = logging.getLogger(__name__)

STATUS = {
1: "STANDBY",
2: "PAUSED",
1: "DISCONNECTED",
2: "AWAITING_START",
3: "CHARGING",
4: "READY_TO_CHARGE",
5: "UNKNOWN",
6: "CAR_CONNECTED",
4: "COMPLETED",
5: "ERROR",
6: "READY_TO_CHARGE",
}

NODE_TYPE = {1: "Master", 2: "Extender"}
Expand All @@ -24,10 +24,19 @@
# Work-in-progress, must be taken with a pinch of salt, as per now just reverse engineering of observations until API properly documented
None: "No reason",
0: "No reason, charging or ready to charge",
1: "Charger paused",
2: "Charger paused",
3: "Charger paused",
4: "Charger paused",
5: "Charger paused",
6: "Charger paused",
9: "Error no current",
50: "Secondary unit not requesting current or no car connected",
51: "Charger paused",
52: "Charger paused",
53: "Charger disabled",
54: "Waiting for schedule",
55: "Pending auth",
}


Expand Down

0 comments on commit f43af04

Please sign in to comment.