Skip to content

Commit

Permalink
chore: release v0.1.7
Browse files Browse the repository at this point in the history
- (o0shojo0o) workaround for incorrectly used button data point
  • Loading branch information
o0shojo0o committed Jun 30, 2023
1 parent d1805bd commit 160015a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 20 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ For more information on the data points, see their description or click [here](h
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
### 0.1.7 (2023-06-30)

- (o0shojo0o) workaround for incorrectly used button data point

### 0.1.6 (2023-06-30)

- (o0shojo0o) fix power control (power_off)
Expand Down
28 changes: 14 additions & 14 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"common": {
"name": "opendtu",
"version": "0.1.6",
"version": "0.1.7",
"news": {
"0.1.7": {
"en": "workaround for incorrectly used button data point",
"de": "workaround für falsch genutzte tastendatenpunkt",
"ru": "workaround для неправильно использованного пункта данных кнопки",
"pt": "solução alternativa para o ponto de dados do botão incorretamente usado",
"nl": "werken voor onjuist gebruikt knopgegevens",
"fr": "workaround for incorrectly used button data point",
"it": "workaround per il punto di dati del pulsante non corretto",
"es": "workaround for incorrectly used botón data point",
"pl": "wokół pracy nieprawidłowo używany punkt danych przycisków",
"uk": "робота для неправильного використання точки даних",
"zh-cn": "使用不当但顿数据点的工作"
},
"0.1.6": {
"en": "fix power control (power_off)",
"de": "festnetzsteuerung (power_off)",
Expand Down Expand Up @@ -80,19 +93,6 @@
"pl": "pierwsze wydanie",
"uk": "початковий реліз",
"zh-cn": "初步释放"
},
"0.0.1": {
"en": "initial release",
"de": "Erstveröffentlichung",
"ru": "Начальная версия",
"pt": "lançamento inicial",
"nl": "Eerste uitgave",
"fr": "Première version",
"it": "Versione iniziale",
"es": "Versión inicial",
"pl": "Pierwsze wydanie",
"zh-cn": "首次出版",
"uk": "початковий випуск"
}
},
"title": "OpenDTU",
Expand Down
12 changes: 9 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,21 @@ class Opendtu extends utils.Adapter {
break;
case 'power_on':
// Switch the inverter power status based on the new value.
this.setInverterPower(serial, state.val);
if (state.val == true) {
this.setInverterPower(serial, true);
}
break;
case 'power_off':
// Switch the inverter power status based on the new value.
this.setInverterPower(serial, !state.val);
if (state.val == true) {
this.setInverterPower(serial, false);
}
break;
case 'restart':
// Restart the inverter based on the new value.
this.setInverterRestart(serial, state.val);
if (state.val == true) {
this.setInverterRestart(serial, true);
}
break;
default:
// If the state change isn't recognized, do nothing.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.opendtu",
"version": "0.1.6",
"version": "0.1.7",
"description": "Adapter for the OpenDTU project",
"author": {
"name": "Dennis Rathjen",
Expand Down

0 comments on commit 160015a

Please sign in to comment.