You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: configuration/rules-dsl.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -955,6 +955,18 @@ then
955
955
end
956
956
```
957
957
958
+
### Disable Thing
959
+
960
+
Disable things with UID `enocean:bridge:e` and `mqtt:topic:m` using [`ThingManager.setEnabled()`](https://www.openhab.org/javadoc/latest/org/openhab/core/thing/thingmanager#setEnabled(org.openhab.core.thing.ThingUID,boolean)):
961
+
962
+
```java
963
+
val thingManagerBundleContext =org.osgi.framework.FrameworkUtil.getBundle(org.openhab.core.thing.ThingManager).bundleContext
964
+
val thingManagerServiceReference = thingManagerBundleContext.getServiceReference(org.openhab.core.thing.ThingManager)
965
+
val thingManager = thingManagerBundleContext.getService(thingManagerServiceReference)
0 commit comments