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.somfytahoma.internal.handler;
15 import static org.openhab.binding.somfytahoma.internal.SomfyTahomaBindingConstants.*;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.Thing;
21 * The {@link SomfyTahomaThermostatHandler} is responsible for handling commands,
22 * which are sent to one of the channels of the Somfy thermostat thing.
24 * @author Ondrej Pecta - Initial contribution
27 public class SomfyTahomaThermostatHandler extends SomfyTahomaBaseThingHandler {
29 public SomfyTahomaThermostatHandler(Thing thing) {
31 stateNames.put(TARGET_TEMPERATURE, TARGET_TEMPERATURE_STATE);
32 stateNames.put(BATTERY_LEVEL, BATTERY_LEVEL_STATE);
33 stateNames.put(HEATING_MODE, "somfythermostat:HeatingModeState");
34 stateNames.put(DEROGATION_HEATING_MODE, "somfythermostat:DerogationHeatingModeState");
35 stateNames.put(DEROGATION_ACTIVATION, "core:DerogationActivationState");
36 stateNames.put(DEROGATED_TARGET_TEMPERATURE, "core:DerogatedTargetTemperatureState");