]> git.basschouten.com Git - openhab-addons.git/blob
4d8a84628c76820f0af7b2ad929729edf8283882
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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 import org.slf4j.Logger;
22 import org.slf4j.LoggerFactory;
23
24 /**
25  * Command used to reset the Clean Filter Indicator timer
26  *
27  * @author Benjamin Lafois - Initial contribution
28  *
29  */
30 @NonNullByDefault
31 public class ResetCleanFilterTimerCommand extends BRC1HCommand {
32
33     private final Logger logger = LoggerFactory.getLogger(ResetCleanFilterTimerCommand.class);
34
35     @Override
36     public void handleResponse(Executor executor, ResponseListener listener, MadokaMessage mm)
37             throws MadokaParsingException {
38         setState(State.SUCCEEDED);
39     }
40
41     @Override
42     public byte[][] getRequest() {
43         MadokaValue mv = new MadokaValue(0xFE, 1, new byte[] { (byte) 0x01 });
44         return MadokaMessage.createRequest(this, mv);
45     }
46
47     @Override
48     public int getCommandId() {
49         return 16928;
50     }
51 }