Interpret more states as appliance being switched on (#15620)

Resolves #15619

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
pull/15641/head
Jacob Laursen 2023-09-23 18:47:45 +02:00 committed by GitHub
parent 7a0d05781a
commit a1193d8792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -364,7 +364,8 @@ public abstract class MieleApplianceHandler<E extends Enum<E> & ApplianceChannel
// 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);
}