-
-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
59 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package evse | ||
|
||
const Success = "S0_" | ||
|
||
// ParameterResponse is the getParameters response | ||
type ParameterResponse struct { | ||
Type string `json:"type"` | ||
List []ListEntry `json:"list"` | ||
} | ||
|
||
// ListEntry is ParameterResponse.List | ||
type ListEntry struct { | ||
VehicleState int64 `json:"vehicleState"` | ||
EvseState bool `json:"evseState"` | ||
MaxCurrent int64 `json:"maxCurrent"` | ||
ActualCurrent int64 `json:"actualCurrent"` | ||
ActualCurrentMA *int64 `json:"actualCurrentMA"` // 1/100 A | ||
ActualPower float64 `json:"actualPower"` | ||
Duration int64 `json:"duration"` | ||
AlwaysActive bool `json:"alwaysActive"` | ||
UseMeter bool `json:"useMeter"` | ||
LastActionUser string `json:"lastActionUser"` | ||
LastActionUID string `json:"lastActionUID"` | ||
Energy float64 `json:"energy"` | ||
Mileage float64 `json:"mileage"` | ||
MeterReading float64 `json:"meterReading"` | ||
CurrentP1 float64 `json:"currentP1"` | ||
CurrentP2 float64 `json:"currentP2"` | ||
CurrentP3 float64 `json:"currentP3"` | ||
RFIDUID *string `json:"RFIDUID"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
template: smartwb | ||
products: | ||
- description: | ||
generic: smartWB | ||
params: | ||
- name: host | ||
render: | | ||
type: evsewifi | ||
uri: http://{{ .host }} | ||
meter: | ||
power: true | ||
energy: true | ||
currents: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
product: | ||
description: EVSE-Wifi | ||
description: EVSE-WiFi | ||
render: | ||
- default: | | ||
type: template | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
product: | ||
description: smartWB | ||
render: | ||
- default: | | ||
type: template | ||
template: smartwb | ||
host: 192.0.2.2 # IP-Adresse oder Hostname |