]> git.basschouten.com Git - openhab-addons.git/blob
bc10213907bdb59b4227419dcd916371236e714f
[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.urtsi.internal.handler;
14
15 /**
16  * The {@code RtsCommand} provides the available commands due to Somfy's RTS protocol.
17  *
18  * @author Oliver Libutzki - Initial contribution
19  *
20  */
21 public enum RtsCommand {
22     UP("U"),
23     DOWN("D"),
24     STOP("S");
25
26     private String actionKey;
27
28     private RtsCommand(String actionKey) {
29         this.actionKey = actionKey;
30     }
31
32     /**
33      * Returns the action key which is used for communicating with the URTSI II device.
34      *
35      * @return the action key
36      */
37     public String getActionKey() {
38         return actionKey;
39     }
40 }