Skip to content

Commit

Permalink
Keba: fix enabled status of charger (evcc-io#8149)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6b56d106f8a5e814b7ed502d5a1ec5aa24ad871a)
  • Loading branch information
Duell10111 authored May 23, 2023
1 parent bb10dc4 commit f9311a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charger/keba-modbus.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ func (wb *Keba) Enabled() (bool, error) {
if err != nil {
return false, err
}
return binary.BigEndian.Uint32(b) != 5, nil
status := binary.BigEndian.Uint32(b)
return !(status == 5 || status == 1), nil
}

// Enable implements the api.Charger interface
Expand Down

0 comments on commit f9311a1

Please sign in to comment.