]> git.basschouten.com Git - openhab-addons.git/blob
a80fc2169e6b5d11b9d31322d64204056179ca04
[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.bluetooth.daikinmadoka.internal.model.commands;
14
15 import java.util.concurrent.Executor;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.binding.bluetooth.daikinmadoka.internal.model.MadokaMessage;
19 import org.openhab.binding.bluetooth.daikinmadoka.internal.model.MadokaParsingException;
20 import org.openhab.binding.bluetooth.daikinmadoka.internal.model.MadokaValue;
21
22 /**
23  * Command used to reset the Clean Filter Indicator timer
24  *
25  * @author Benjamin Lafois - Initial contribution
26  *
27  */
28 @NonNullByDefault
29 public class ResetCleanFilterTimerCommand extends BRC1HCommand {
30
31     @Override
32     public void handleResponse(Executor executor, ResponseListener listener, MadokaMessage mm)
33             throws MadokaParsingException {
34         setState(State.SUCCEEDED);
35     }
36
37     @Override
38     public byte[][] getRequest() {
39         MadokaValue mv = new MadokaValue(0xFE, 1, new byte[] { (byte) 0x01 });
40         return MadokaMessage.createRequest(this, mv);
41     }
42
43     @Override
44     public int getCommandId() {
45         return 16928;
46     }
47 }