]> git.basschouten.com Git - openhab-addons.git/blob
ba551f12da8f446f5ad1924b8d21fb36ed48c439
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.enocean.internal.config;
14
15 import static org.openhab.binding.enocean.internal.EnOceanBindingConstants.EMPTYENOCEANID;
16
17 import java.util.ArrayList;
18 import java.util.List;
19
20 import org.eclipse.jdt.annotation.NonNullByDefault;
21 import org.openhab.core.util.HexUtils;
22
23 /**
24  *
25  * @author Daniel Weber - Initial contribution
26  */
27 @NonNullByDefault
28 public class EnOceanBaseConfig {
29     /**
30      * EnOceanId of the physical device
31      */
32     public String enoceanId;
33
34     /**
35      * EEP used/send by physical device
36      */
37     public List<String> receivingEEPId = new ArrayList<>();
38     public boolean receivingSIGEEP = false;
39
40     public EnOceanBaseConfig() {
41         enoceanId = EMPTYENOCEANID;
42     }
43
44     public byte[] getEnOceanId() {
45         return HexUtils.hexToBytes(enoceanId);
46     }
47 }