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.nobohub.internal.model;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The status of the {@link WeekProfile}. What the value is in the week profile. Status OFF is matched both to value 3
19 * and 4, while the documentation says 3, Hub with Hardware version 11123610_rev._1 and production date 20180305
20 * will send value 4 for OFF.
23 * @author Jørgen Austvik - Initial contribution
24 * @author Espen Fossen - Initial contribution
27 public enum WeekProfileStatus {
34 private final int numValue;
36 private WeekProfileStatus(int numValue) {
37 this.numValue = numValue;
40 public static WeekProfileStatus getByNumber(int value) throws NoboDataException {
52 throw new NoboDataException(String.format("Unknown week profile status %d", value));
56 public int getNumValue() {