From 420be28da8b7d91a6c8b401f9f2bc002c0457ed9 Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Sat, 23 Sep 2023 18:47:45 +0200 Subject: [PATCH] Interpret more states as appliance being switched on (#15620) Resolves #15619 Signed-off-by: Jacob Laursen Signed-off-by: querdenker2k --- .../binding/miele/internal/handler/MieleApplianceHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.miele/src/main/java/org/openhab/binding/miele/internal/handler/MieleApplianceHandler.java b/bundles/org.openhab.binding.miele/src/main/java/org/openhab/binding/miele/internal/handler/MieleApplianceHandler.java index 7d29682a5c984..de87fc6bff099 100644 --- a/bundles/org.openhab.binding.miele/src/main/java/org/openhab/binding/miele/internal/handler/MieleApplianceHandler.java +++ b/bundles/org.openhab.binding.miele/src/main/java/org/openhab/binding/miele/internal/handler/MieleApplianceHandler.java @@ -364,7 +364,8 @@ protected void updateSwitchStartStopFromState(DeviceProperty dp) { // Switch is trigger channel, but current state can be deduced from state. ChannelUID channelUid = new ChannelUID(getThing().getUID(), SWITCH_CHANNEL_ID); - State state = OnOffType.from(dp.Value.equals(String.valueOf(STATE_RUNNING))); + State state = OnOffType.from(dp.Value.equals(String.valueOf(STATE_RUNNING)) + || dp.Value.equals(String.valueOf(STATE_END)) || dp.Value.equals(String.valueOf(STATE_RINSE_HOLD))); logger.trace("Update state of {} to {} through '{}'", channelUid, state, dp.Name); updateState(channelUid, state); }