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