Skip to content

Commit

Permalink
implemented mechanic to control number of phases
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed Jan 16, 2023
1 parent 8e4c6c4 commit d750905
Show file tree
Hide file tree
Showing 7 changed files with 257 additions and 64 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ Adapter to connect an OCPP 1.6 supported wallbox
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->

### **WORK IN PROGRESS**
* (foxriver76) implemented state to control number of phases used for charging

### 0.9.1 (2023-01-13)
* (foxriver76) we now avoid not implemented logging if `chargeLimit` is set to null (deactivated)

Expand Down
15 changes: 15 additions & 0 deletions build/lib/states.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/lib/states.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 95 additions & 29 deletions build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/main.js.map

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions src/lib/states.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,22 @@ export function getConnectorObjects(connectorId: number): ioBroker.Object[] {
},
native: {}
});

objs.push({
_id: 'numberPhases',
type: 'state',
common: {
name: 'Number of phases used for charging',
type: 'number',
role: 'value',
write: true,
read: true,
def: 3,
min: 0,
max: 3
},
native: {}
});
}

return objs;
Expand Down
Loading

0 comments on commit d750905

Please sign in to comment.