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.paradoxalarm.internal.model;
15 import org.slf4j.Logger;
16 import org.slf4j.LoggerFactory;
19 * The {@link Zone} Paradox zone.
20 * ID is always numeric (1-192 for Evo192)
21 * States are taken from cached RAM memory map and parsed.
23 * @author Konstantin Polihronov - Initial contribution
25 public class Zone extends Entity {
27 private final Logger logger = LoggerFactory.getLogger(Zone.class);
29 private ZoneState zoneState;
31 public Zone(ParadoxPanel panel, int id, String label) {
32 super(panel, id, label);
35 public ZoneState getZoneState() {
39 public void setZoneState(ZoneState zoneState) {
40 this.zoneState = zoneState;
41 logger.debug("Zone {} state updated to:\tOpened: {}, Tampered: {}, LowBattery: {}", getLabel(),
42 zoneState.isOpened(), zoneState.isTampered(), zoneState.hasLowBattery());