[somfytahoma] Improved compatibility with the Somfy Connectivity Kit (#12532)

Signed-off-by: Ondrej Pecta <opecta@gmail.com>
This commit is contained in:
Ondrej Pecta 2022-03-27 20:05:18 +02:00 committed by GitHub
parent c5b6ce97bb
commit c22a33d651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -180,8 +180,9 @@ public class SomfyTahomaItemDiscoveryService extends AbstractDiscoveryService
deviceDiscovered(device, THING_TYPE_GARAGEDOOR, place);
break;
case CLASS_LIGHT:
if ("DimmerLight".equals(device.getWidget())) {
if ("DimmerLight".equals(device.getWidget()) || "DynamicLight".equals(device.getWidget())) {
// widget: DimmerLight
// widget: DynamicLight
deviceDiscovered(device, THING_TYPE_DIMMER_LIGHT, place);
} else {
// widget: TimedOnOffLight