New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

iobroker.evcc

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iobroker.evcc - npm Package Compare versions

Comparing version

to
0.0.7

0

admin/i18n/de/translations.json

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=loadpoint.js.map

@@ -0,0 +0,0 @@ "use strict";

55

build/main.js

@@ -67,3 +67,3 @@ "use strict";

this.polltime = this.config.polltime;
this.timeout = (this.polltime * 1000) - 500; //'500ms unter intervall'
this.timeout = (this.polltime * 1000) - 500; //'500ms unter interval'
}

@@ -119,9 +119,9 @@ else {

break;
case 'minSoC':
this.log.info('Set minSoC on loadpointindex: ' + idProperty[3]);
this.setEvccMinSoC(idProperty[3], state.val);
case 'minSoc':
this.log.info('Set minSoc on loadpointindex: ' + idProperty[3]);
this.setEvccMinSoc(idProperty[3], state.val);
break;
case 'targetSoC':
this.log.info('Set evcc targetSoC on loadpointindex: ' + idProperty[3]);
this.setEvccTargetSoC(idProperty[3], state.val);
case 'targetSoc':
this.log.info('Set evcc targetSoc on loadpointindex: ' + idProperty[3]);
this.setEvccTargetSoc(idProperty[3], state.val);
break;

@@ -159,7 +159,7 @@ case 'minCurrent':

await this.setStateAsync('status.batteryPower', { val: response.data.result.batteryPower, ack: true });
await this.setStateAsync('status.batterySoC', { val: response.data.result.batterySoC, ack: true });
await this.setStateAsync('status.batterySoc', { val: response.data.result.batterySoc, ack: true });
await this.setStateAsync('status.gridConfigured', { val: response.data.result.gridConfigured, ack: true });
await this.setStateAsync('status.gridCurrents', { val: JSON.stringify(response.data.result.gridCurrents), ack: true });
await this.setStateAsync('status.homePower', { val: response.data.result.homePower, ack: true });
await this.setStateAsync('status.prioritySoC', { val: response.data.result.prioritySoC, ack: true });
await this.setStateAsync('status.prioritySoc', { val: response.data.result.prioritySoc, ack: true });
await this.setStateAsync('status.pvConfigured', { val: response.data.result.pvConfigured, ack: true });

@@ -191,3 +191,4 @@ await this.setStateAsync('status.pvPower', { val: response.data.result.pvPower, ack: true });

//Ladepunkt kann es X fach geben
this.log.debug('Ladepunkt mit index ' + 'loadpoint.' + index + ' gefunden');
index = index + 1; // +1 why Evcc starts with 1
this.log.debug('Ladepunkt mit index ' + 'loadpoint.' + index + ' gefunden...');
if (this.maxLoadpointIndex < index) {

@@ -215,6 +216,6 @@ //Ladepunkt noch nicht angelegt für diesen Instanzstart

await this.setStateAsync('loadpoint.' + index + '.control.minCurrent', { val: loadpoint.minCurrent, ack: true });
await this.setStateAsync('loadpoint.' + index + '.control.minSoC', { val: loadpoint.minSoC, ack: true });
await this.setStateAsync('loadpoint.' + index + '.control.minSoc', { val: loadpoint.minSoc, ack: true });
await this.setStateAsync('loadpoint.' + index + '.status.mode', { val: loadpoint.mode, ack: true });
await this.setStateAsync('loadpoint.' + index + '.control.phases', { val: loadpoint.phases, ack: true });
await this.setStateAsync('loadpoint.' + index + '.control.targetSoC', { val: loadpoint.targetSoC, ack: true });
await this.setStateAsync('loadpoint.' + index + '.control.targetSoc', { val: loadpoint.targetSoc, ack: true });
await this.setStateAsync('loadpoint.' + index + '.status.timerActive', { val: loadpoint.timerActive, ack: true });

@@ -228,3 +229,3 @@ await this.setStateAsync('loadpoint.' + index + '.status.timerProjectedEnd', { val: loadpoint.timerProjectedEnd, ack: true });

await this.setStateAsync('loadpoint.' + index + '.status.vehicleRange', { val: loadpoint.vehicleRange, ack: true });
await this.setStateAsync('loadpoint.' + index + '.status.vehicleSoC', { val: loadpoint.vehicleSoC, ack: true });
await this.setStateAsync('loadpoint.' + index + '.status.vehicleSoc', { val: loadpoint.vehicleSoc, ack: true });
await this.setStateAsync('loadpoint.' + index + '.status.vehicleTitle', { val: loadpoint.vehicleTitle, ack: true });

@@ -282,6 +283,6 @@ }

this.subscribeStates('loadpoint.' + index + '.control.pv');
await this.setObjectNotExistsAsync('loadpoint.' + index + '.control.minSoC', {
await this.setObjectNotExistsAsync('loadpoint.' + index + '.control.minSoc', {
type: 'state',
common: {
name: 'minSoC',
name: 'minSoc',
type: 'number',

@@ -294,7 +295,7 @@ role: 'value.min',

});
this.subscribeStates('loadpoint.' + index + '.control.minSoC');
await this.setObjectNotExistsAsync('loadpoint.' + index + '.control.targetSoC', {
this.subscribeStates('loadpoint.' + index + '.control.minSoc');
await this.setObjectNotExistsAsync('loadpoint.' + index + '.control.targetSoc', {
type: 'state',
common: {
name: 'targetSoC',
name: 'targetSoc',
type: 'number',

@@ -307,3 +308,3 @@ role: 'value',

});
this.subscribeStates('loadpoint.' + index + '.control.targetSoC');
this.subscribeStates('loadpoint.' + index + '.control.targetSoc');
await this.setObjectNotExistsAsync('loadpoint.' + index + '.control.maxCurrent', {

@@ -588,6 +589,6 @@ type: 'state',

});
await this.setObjectNotExistsAsync('loadpoint.' + index + '.status.vehicleSoC', {
await this.setObjectNotExistsAsync('loadpoint.' + index + '.status.vehicleSoc', {
type: 'state',
common: {
name: 'vehicleSoC',
name: 'vehicleSoc',
type: 'number',

@@ -645,5 +646,5 @@ role: 'info.status',

}
setEvccTargetSoC(index, value) {
this.log.debug('call: ' + 'http://' + this.ip + '/api/loadpoints/' + index + '/targetsoc/' + value);
axios_1.default.post('http://' + this.ip + '/api/loadpoints/' + index + '/targetsoc/' + value, { timeout: this.timeout }).then(() => {
setEvccTargetSoc(index, value) {
this.log.debug('call: ' + 'http://' + this.ip + '/api/loadpoints/' + index + '/targetSoc/' + value);
axios_1.default.post('http://' + this.ip + '/api/loadpoints/' + index + '/targetSoc/' + value, { timeout: this.timeout }).then(() => {
this.log.info('Evcc update successful');

@@ -654,5 +655,5 @@ }).catch(error => {

}
setEvccMinSoC(index, value) {
this.log.debug('call: ' + 'http://' + this.ip + '/api/loadpoints/' + index + '/minsoc/' + value);
axios_1.default.post('http://' + this.ip + '/api/loadpoints/' + index + '/minsoc/' + value, { timeout: this.timeout }).then(() => {
setEvccMinSoc(index, value) {
this.log.debug('call: ' + 'http://' + this.ip + '/api/loadpoints/' + index + '/minSoc/' + value);
axios_1.default.post('http://' + this.ip + '/api/loadpoints/' + index + '/minSoc/' + value, { timeout: this.timeout }).then(() => {
this.log.info('Evcc update successful');

@@ -659,0 +660,0 @@ }).catch(error => {

{
"common": {
"name": "evcc",
"version": "0.0.4",
"version": "0.0.7",
"news": {
"0.0.7": {
"en": "Update for evcc 1.11.x\nBugfix #4, change SoC names",
"de": "Update für evcc 1.11.x\nBugfix #4, SoC-Namen ändern",
"ru": "Обновление для evcc 1.11.x\nBugfix #4, изменить имена SoC",
"pt": "Atualização para evcc 1.11.x\nBugfix #4, alterar nomes de SoC",
"nl": "Update voor evcc 1.11\nBugfix #4, verander SoC namen",
"fr": "Mise à jour pour evcc 1.11.x\nBugfix #4, modifier les noms SoC",
"it": "Aggiornamento per evcc 1.11.x\nBugfix #4, cambia i nomi SoC",
"es": "Actualización para evcc 1.11.x\nBugfix #4, cambiar nombres SoC",
"pl": "Data dostępu do 1.11.x\nBugfix #4 zmienia nazwę na SoC",
"uk": "Оновлення для evcc 1.11.x\nBugfix #4, змінити імена SoC",
"zh-cn": "最新资料\nBugfix #4, 改变SC名称"
},
"0.0.5": {
"en": "update for latest-repository",
"de": "Update für latest-Repository",
"ru": "обновление для последнего репозитория",
"pt": "atualização para o repositório mais recente",
"nl": "update voor laatste-repository",
"fr": "mise à jour pour le dernier référentiel",
"it": "aggiornamento per l'ultimo repository",
"es": "actualización para el último repositorio",
"pl": "aktualizacja do najnowszego repozytorium",
"zh-cn": "更新最新存储库"
},
"0.0.4": {

@@ -98,3 +123,4 @@ "en": "first release",

"polltime": 100,
"ip": "127.0.0.1:7070"
"ip": "127.0.0.1",
"port": "7070"
},

@@ -107,6 +133,6 @@ "objects": [],

"common": {
"name": "Information"
"name": "Information"
},
"native": {}
},
},
{

@@ -129,6 +155,6 @@ "_id": "info.connection",

"common": {
"name": "Status"
"name": "Status"
},
"native": {}
},
},
{

@@ -161,7 +187,7 @@ "_id": "status.batteryConfigured",

{
"_id": "status.batterySoC",
"_id": "status.batterySoc",
"type": "state",
"common": {
"role": "state",
"name": "batterySoC",
"name": "batterySoc",
"type": "number",

@@ -227,7 +253,7 @@ "read": true,

{
"_id": "status.prioritySoC",
"_id": "status.prioritySoc",
"type": "state",
"common": {
"role": "state",
"name": "prioritySoC",
"name": "prioritySoc",
"type": "number",

@@ -280,2 +306,2 @@ "read": true,

]
}
}
{
"name": "iobroker.evcc",
"version": "0.0.5",
"version": "0.0.7",
"description": "Controll evcc over rest api",

@@ -24,7 +24,4 @@ "author": {

"@alcalzone/release-script": "^3.5.8",
"@alcalzone/release-script-plugin-iobroker": "^3.5.8",
"@alcalzone/release-script-plugin-license": "^3.5.8",
"@iobroker/adapter-dev": "^1.0.1",
"@iobroker/testing": "^4.0.0",
"@tsconfig/node14": "^1.0.3",
"@types/chai": "^4.3.3",

@@ -42,3 +39,3 @@ "@types/chai-as-promised": "^7.1.5",

"eslint": "^8.23.0",
"eslint-plugin-react": "^7.31.8",
"eslint-plugin-react": "^7.32.0",
"mocha": "^10.0.0",

@@ -45,0 +42,0 @@ "proxyquire": "^2.1.3",

@@ -23,2 +23,6 @@ ![Logo](admin/evcc.png)

-->
### 0.0.7 (2023-01-15)
* Update for evcc 1.11.x
* Bugfix #4, change SoC names
### 0.0.5 (2022-10-14)

@@ -42,3 +46,3 @@ * update for latest-repository

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
of this software and asSociated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights

@@ -45,0 +49,0 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet