Skip to content

Commit

Permalink
Merge pull request #23 from hacki11/bf-object-subscription
Browse files Browse the repository at this point in the history
Add object subscription
  • Loading branch information
hacki11 committed Jan 20, 2020
2 parents 758b14b + e347ca5 commit 10955a4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ Connects your Vallox Air Ventilation system into your ioBroker home automation.
* Read and write states as usual

## Changelog
### 1.0.2
* Added subscriptions of own objects to allow write values

### 1.0.1
* Fixed resetting custom configuration of objects
* Removed subscription of own objects
Expand Down
6 changes: 5 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"common": {
"name": "valloxmv",
"version": "1.0.1",
"version": "1.0.2",
"news": {
"1.0.2": {
"en": "Fixed issue writing objects",
"de": "Problem beim Schreiben von Objekten behoben"
},
"1.0.1": {
"en": "Fixed resetting custom configuration of objects",
"de": "Überschreiben manuell veränderter Objekt-Konfiguration behoben"
Expand Down
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class Valloxmv extends utils.Adapter {
await this.setObjectNotExistsAsync(key, val.obj);
}

this.subscribeStates("*");

// setup timer
this.interval = this.config.interval || 60;
this.interval *= 1000;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.valloxmv",
"version": "1.0.1",
"version": "1.0.2",
"description": "valloxmv",
"author": {
"name": "hacki11",
Expand Down

0 comments on commit 10955a4

Please sign in to comment.