2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.mielecloud.internal.webservice.api;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Represents the power status of the device, i.e. whether it is powered on, off or in standby.
20 * @author Björn Lange - Initial contribution
23 public enum PowerStatus {
29 * Corresponding state of the ChannelTypeDefinition
33 PowerStatus(String value) {
38 * Checks whether the given value is the raw state represented by this enum instance.
40 public boolean matches(String passedValue) {
41 return state.equalsIgnoreCase(passedValue);
47 public String getState() {