Add clarification to ThingActionScope (#2413)
Fixes: https://github.com/openhab/openhab-addons/issues/10510 Signed-off-by: lsiepel <leosiepel@gmail.com>pull/2409/head^2
parent
63d71cb5b0
commit
18c62200a9
|
@ -572,6 +572,7 @@ If you implement the `ThingActions` interface, you can tell the framework about
|
|||
Please note that for actions not related to Things you will instead implement an `ActionHandler` as described in the developing [Module Types](../module-types/) chapter.
|
||||
|
||||
You start things off by implementing `ThingActions` and annotate your class with `@ThingActionsScope`.
|
||||
The scope name should be the binding name, but it can also be bindingname-xxx when you need several scopes (for different thing types).
|
||||
Since a new service is required for each thing, the component needs to be a `PROTOTYPE`:
|
||||
|
||||
```java
|
||||
|
|
Loading…
Reference in New Issue