tiramiseb/python-openevse

issue with starting an stop charging

Opened this issue · 1 comments

We are trying to implement start/pause functionality in the EVSE with help of raspberryPI

We have imported python open lib (https://github.com/tiramiseb/python-openevse/blob/master/openevse.py)

We are having following issues:

  1. When we are trying to get status of the EVSE, it gives array out of range exception (this is random issue) , please refer to getting status.jpg in the attachment
  2. When we are trying to status to sleep for pause charging we are having invalid in issue, please refer to status to sleep.jpg in the attachment

getting status
status to sleep

I think I ran into the same issue in the second screenshot; with help from a friend I was able to fix it by modifying line 256 to expect base 16 instead of base 10:

256 return states[int(data[0],16)]