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.satel.internal.types;
16 * Available partition states.
18 * @author Krzysztof Goworek - Initial contribution
20 public enum PartitionState implements StateType {
25 FIRST_CODE_ENTERED(0x0d),
27 EXIT_TIME_GT_10(0x0f),
28 EXIT_TIME_LT_10(0x10),
29 TEMPORARY_BLOCKED(0x11),
30 BLOCKED_FOR_GUARD(0x12),
34 FIRE_ALARM_MEMORY(0x16),
36 VERIFIED_ALARMS(0x27),
40 private byte refreshCommand;
42 PartitionState(int refreshCommand) {
43 this.refreshCommand = (byte) refreshCommand;
47 public byte getRefreshCommand() {
48 return refreshCommand;
52 public int getPayloadLength(boolean extendedCmd) {
57 public ObjectType getObjectType() {
58 return ObjectType.PARTITION;
62 public int getStartByte() {
67 public int getBytesCount(boolean extendedCmd) {
68 return getPayloadLength(extendedCmd);