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: bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetBridgeHandler.java
Copy file name to clipboardExpand all lines: bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetLightingHandler.java
+25-17Lines changed: 25 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -255,33 +255,43 @@ protected Who getManagedWho() {
255
255
returnWho.LIGHTING;
256
256
}
257
257
258
+
/**
259
+
* Handles incoming OpenWebNet messages for this lighting device.
260
+
* This method processes lighting state changes and propagates APL (Area/Point Light) messages
261
+
* to appropriate group handlers for hierarchical control.
262
+
*
263
+
* @param msg the OpenWebNet message to handle (should be a Lighting message)
264
+
*/
258
265
@Override
259
266
protectedvoidhandleMessage(BaseOpenMessagemsg) {
260
267
logger.debug("handleMessage({}) for thing: {}", msg, thing.getUID());
261
268
super.handleMessage(msg);
262
269
270
+
// Update device state based on thing type - dimmers handle brightness, switches handle on/off
263
271
ThingTypeUIDthingType = thing.getThingTypeUID();
264
272
if (THING_TYPE_ZB_DIMMER.equals(thingType) || THING_TYPE_BUS_DIMMER.equals(thingType)) {
265
273
updateBrightness((Lighting) msg);
266
274
} else {
267
275
updateOnOffState((Lighting) msg);
268
276
}
269
277
278
+
// Handle APL (Area/Point Light) message propagation for BUS gateway devices
279
+
// APL messages need to be forwarded to area and general handlers for group control
0 commit comments