-
Notifications
You must be signed in to change notification settings - Fork 27
Add state roles documentation to generated adapter templates #1216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
3071d6d
170095b
5ef2798
c82ef6b
d4aa7b3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,6 +75,11 @@ ${adapterSettings.map(s => `\t\tthis.log.debug(${quote}config ${s.key}: \${this. | |
| native: {}, | ||
| }); | ||
|
|
||
| // ************************************************************************************************** | ||
|
||
| // In order to use the correct role for state objects, please refer to the state roles documentation | ||
| // https://www.iobroker.net/#en/documentation/dev/stateroles.md | ||
| // ************************************************************************************************** | ||
|
|
||
| // 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(${quote}testVariable${quote}); | ||
| // You can also add a subscription for multiple states. The following line watches all states starting with "lights." | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.