mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[insteon] Fix scene channel state updates (#18050)
Signed-off-by: Jeremy Setton <jeremy.setton@gmail.com>
This commit is contained in:
parent
cac757ae81
commit
2a4fea2c1a
@ -78,7 +78,7 @@ public class InsteonBindingConstants {
|
||||
public static final String FEATURE_ON_LEVEL = "onLevel";
|
||||
public static final String FEATURE_PING = "ping";
|
||||
public static final String FEATURE_RAMP_RATE = "rampRate";
|
||||
public static final String FEATURE_SCENE_ON_OFF = "sceneOnOff";
|
||||
public static final String FEATURE_SCENE = "scene";
|
||||
public static final String FEATURE_STAY_AWAKE = "stayAwake";
|
||||
public static final String FEATURE_TEMPERATURE_SCALE = "temperatureScale";
|
||||
public static final String FEATURE_TWO_GROUPS = "2Groups";
|
||||
|
@ -184,7 +184,7 @@ public class InsteonSceneHandler extends InsteonBaseThingHandler {
|
||||
|
||||
public void updateState(State state) {
|
||||
getThing().getChannels().stream().map(Channel::getUID)
|
||||
.filter(channelUID -> FEATURE_SCENE_ON_OFF.equals(channelUID.getId())).findFirst()
|
||||
.filter(channelUID -> FEATURE_SCENE.equals(channelUID.getId())).findFirst()
|
||||
.ifPresent(channelUID -> updateState(channelUID, state));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user