]> git.basschouten.com Git - openhab-addons.git/blob
c3c5c1e81e7c2afabe39419bd5632aa00e8738f8
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.somfytahoma.internal.handler;
14
15 import static org.openhab.binding.somfytahoma.internal.SomfyTahomaBindingConstants.*;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.Thing;
19
20 /**
21  * The {@link SomfyTahomaPodHandler} is responsible for handling commands,
22  * which are sent to one of the channels of the pod thing.
23  *
24  * @author Ondrej Pecta - Initial contribution
25  */
26 @NonNullByDefault
27 public class SomfyTahomaPodHandler extends SomfyTahomaBaseThingHandler {
28
29     public SomfyTahomaPodHandler(Thing thing) {
30         super(thing);
31         stateNames.put(CYCLIC_BUTTON, CYCLIC_BUTTON_STATE);
32         stateNames.put(BATTERY_STATUS, BATTERY_STATUS_STATE);
33         stateNames.put(LIGHTING_LED_POD_MODE, "internal:LightingLedPodModeState");
34     }
35 }