Skip to content

Commit

Permalink
Interpret more states as appliance being switched on (openhab#15620)
Browse files Browse the repository at this point in the history
Resolves openhab#15619

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: querdenker2k <querdenker2k@gmx.de>
  • Loading branch information
jlaur authored and querdenker2k committed Oct 29, 2023
1 parent 5c87efb commit 420be28
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 420be28

Please sign in to comment.