]> git.basschouten.com Git - openhab-addons.git/blob
2bdc21585bdd4f22f4fd48def37e08d687039638
[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.danfossairunit.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link Commands} interface holds the commands which can be send to the air unit to read/write values or trigger
19  * actions.
20  *
21  * @author Robert Bach - Initial contribution
22  */
23
24 @NonNullByDefault
25 public class Commands {
26
27     public static byte[] DISCOVER_SEND = { 0x0c, 0x00, 0x30, 0x00, 0x11, 0x00, 0x12, 0x00, 0x13 };
28     public static byte[] DISCOVER_RECEIVE = { 0x0d, 0x00, 0x07, 0x00, 0x02, 0x02, 0x00 };
29     public static byte[] EMPTY = {};
30     public static byte[] GET_HISTORY = { 0x00, 0x30 };
31     public static byte[] REGISTER_0_READ = { 0x00, 0x04 };
32     public static byte[] REGISTER_1_READ = { 0x01, 0x04 };
33     public static byte[] REGISTER_1_WRITE = { 0x01, 0x06 };
34     public static byte[] REGISTER_2_READ = { 0x02, 0x04 };
35     public static byte[] REGISTER_4_READ = { 0x04, 0x04 };
36     public static byte[] REGISTER_6_READ = { 0x06, 0x04 };
37     public static byte[] MODE = { 0x14, 0x12 };
38     public static byte[] MANUAL_FAN_SPEED_STEP = { 0x15, 0x61 };
39     public static byte[] SUPPLY_FAN_SPEED = { 0x14, 0x50 };
40     public static byte[] EXTRACT_FAN_SPEED = { 0x14, 0x51 };
41     public static byte[] SUPPLY_FAN_STEP = { 0x14, 0x28 };
42     public static byte[] EXTRACT_FAN_STEP = { 0x14, 0x29 };
43     public static byte[] BASE_IN = { 0x14, 0x40 };
44     public static byte[] BASE_OUT = { 0x14, 0x41 };
45     public static byte[] BYPASS = { 0x14, 0x60 };
46     public static byte[] BYPASS_DEACTIVATION = { 0x14, 0x63 };
47     public static byte[] BOOST = { 0x15, 0x30 };
48     public static byte[] NIGHT_COOLING = { 0x15, 0x71 };
49     public static byte[] AUTOMATIC_BYPASS = { 0x17, 0x06 };
50     public static byte[] AUTOMATIC_RUSH_AIRING = { 0x17, 0x02 };
51     public static byte[] HUMIDITY = { 0x14, 0x70 };
52     public static byte[] ROOM_TEMPERATURE = { 0x03, 0x00 };
53     public static byte[] ROOM_TEMPERATURE_CALCULATED = { 0x14, (byte) 0x96 };
54     public static byte[] OUTDOOR_TEMPERATURE = { 0x03, 0x34 };
55     public static byte[] SUPPLY_TEMPERATURE = { 0x14, 0x73 };
56     public static byte[] EXTRACT_TEMPERATURE = { 0x14, 0x74 };
57     public static byte[] EXHAUST_TEMPERATURE = { 0x14, 0x75 };
58     public static byte[] BATTERY_LIFE = { 0x03, 0x0f };
59     public static byte[] FILTER_LIFE = { 0x14, 0x6a };
60     public static byte[] FILTER_PERIOD = { 0x14, 0x69 };
61     public static byte[] CURRENT_TIME = { 0x15, (byte) 0xe0 };
62     public static byte[] AWAY_TO = { 0x15, 0x20 };
63     public static byte[] AWAY_FROM = { 0x15, 0x21 };
64     public static byte[] UNIT_SERIAL = { 0x00, 0x25 }; // endpoint 4
65     public static byte[] UNIT_NAME = { 0x15, (byte) 0xe5 }; // endpoint 1
66     public static byte[] CCM_SERIAL = { 0x14, 0x6a }; // endpoint 0
67 }