Skip to content

Commit

Permalink
Create channel
Browse files Browse the repository at this point in the history
  • Loading branch information
MyHomeMyData committed Nov 14, 2023
1 parent ebe998d commit f5cee17
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ class E3oncan extends utils.Adapter {
native: {},
});

await this.setObjectNotExistsAsync('E380', {
type: 'channel',
common: {
name: 'E380',
role: 'device'
},
native: {},
});

// In order to get state updates, you need to subscribe to them. The following line adds a subscription for our variable we have created above.
this.subscribeStates('testVariable');
// You can also add a subscription for multiple states. The following line watches all states starting with "lights."
Expand Down

0 comments on commit f5cee17

Please sign in to comment.