Skip to content

Commit 1a690a6

Browse files
author
DutchmanNL
committed
chore: release v0.3.4
* (DutchmanNL) Added doorOpen indicator, Fixes [#115](#115)
1 parent 9bc273f commit 1a690a6

File tree

7 files changed

+35
-6
lines changed

7 files changed

+35
-6
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ Thumbs.db
1414

1515
# i18n intermediate files
1616
admin/i18n/flat.txt
17-
admin/i18n/*/flat.txt
17+
admin/i18n/*/flat.txt
18+
warnMessages.json

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ All of this helps me to provide error-free adapters that basically never crash.
7474
Placeholder for the next version (at the beginning of the line):
7575
### **WORK IN PROGRESS**
7676
-->
77+
### 0.3.4 (2024-10-28) - Door Indicator Fixes #115
78+
* (DutchmanNL) Added doorOpen indicator, Fixes [#115](https://github.com/DrozmotiX/ioBroker.bambulab/issues/115)
79+
7780
### 0.3.3 (2024-10-27) - Bugfixes
7881
* (DutchmanNL) update state definitions, (solves [#77](https://github.com/DrozmotiX/ioBroker.bambulab/issues/77) [#58](https://github.com/DrozmotiX/ioBroker.bambulab/issues/58))
7982
* (DutchmanNL) update connection handling, show connection error only once (Solves #99 #78 #74)

io-package.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
{
22
"common": {
33
"name": "bambulab",
4-
"version": "0.3.3",
4+
"version": "0.3.4",
55
"news": {
6+
"0.3.4": {
7+
"en": "Added doorOpen indicator",
8+
"de": "Tür Indikator hinzugefügt",
9+
"ru": "Добавленная дверь Open indicator",
10+
"pt": "Porta adicionada Indicador aberto",
11+
"nl": "Toegevoegde deur Open indicator",
12+
"fr": "Porte ajoutée Indicateur ouvert",
13+
"it": "Aggiunto la porta Indicatore aperto",
14+
"es": "Puerta Open indicator",
15+
"pl": "Dodano drzwi Inne informacje",
16+
"uk": "Додані двері Відкрити індикатор",
17+
"zh-cn": "添加门 开放指标"
18+
},
619
"0.3.3": {
720
"en": "update state definitions, (solves #77 #58)\nupdate connection handling, show connection error only once (Solves #99 #78 #74)",
821
"de": "aktualisierung von zustandsdefinitionen, (lösungen #77 #58)\nupdate-Verbindungshandling, Verbindungsfehler nur einmal anzeigen (Solves #99 #78 #74)",

lib/state_attr.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,12 @@ const state_attrb = {
819819
'name': 'RFID',
820820
'type': 'number',
821821
'role': 'state'
822-
}
822+
},
823+
'doorOpen': {
824+
'name': 'Door indicator',
825+
'type': 'boolean',
826+
'role': 'indicator'
827+
},
823828
};
824829

825830

main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,13 @@ class Bambulab extends utils.Adapter {
248248
}
249249
}
250250

251+
// Translate home_flag to door state
252+
if (message.print.home_flag === 14796168) {
253+
message.print.doorOpen = true;
254+
} else if (message.print.home_flag === 6407560) {
255+
message.print.doorOpen = false;
256+
}
257+
251258
// Explore JSON & create states
252259
const returnJONexplorer = await jsonExplorer.traverseJson(message.print, this.config.serial, false, false, 0);
253260
this.log.debug(`Response of JSONexploer: ${JSON.stringify(returnJONexplorer)}`);

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iobroker.bambulab",
3-
"version": "0.3.3",
3+
"version": "0.3.4",
44
"description": "Connects to Bambulab 3d printers to retrieve data of current print and control main aspects",
55
"author": {
66
"name": "DutchmanNL",

0 commit comments

Comments
 (0)