From 7e5e0e2295cf1c1cea00bccb24773a43da986316 Mon Sep 17 00:00:00 2001 From: J-N-K Date: Thu, 14 Jan 2021 01:34:17 +0100 Subject: [PATCH] [amazonechocontrol] fix thermostat handler (#9812) * fix thermostat handler * fix spotless Signed-off-by: Jan N. Klug --- .../binding/amazonechocontrol/internal/smarthome/Constants.java | 2 ++ .../internal/smarthome/HandlerThermostatController.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/smarthome/Constants.java b/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/smarthome/Constants.java index a5a3503689347..a8cb73469349b 100644 --- a/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/smarthome/Constants.java +++ b/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/smarthome/Constants.java @@ -41,6 +41,8 @@ public class Constants { // channel types public static final ChannelTypeUID CHANNEL_TYPE_TEMPERATURE = new ChannelTypeUID( AmazonEchoControlBindingConstants.BINDING_ID, "temperature"); + public static final ChannelTypeUID CHANNEL_TYPE_TARGETSETPOINT = new ChannelTypeUID( + AmazonEchoControlBindingConstants.BINDING_ID, "targetSetpoint"); // List of Item types public static final String ITEM_TYPE_SWITCH = "Switch"; diff --git a/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/smarthome/HandlerThermostatController.java b/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/smarthome/HandlerThermostatController.java index 99a1924d36664..e1532fc1dc0a4 100644 --- a/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/smarthome/HandlerThermostatController.java +++ b/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/smarthome/HandlerThermostatController.java @@ -46,7 +46,7 @@ public class HandlerThermostatController extends HandlerBase { public static final String INTERFACE = "Alexa.ThermostatController"; // Channel definitions private static final ChannelInfo TARGET_SETPOINT = new ChannelInfo("targetSetpoint" /* propertyName */ , - "targetSetpoint" /* ChannelId */, CHANNEL_TYPE_TEMPERATURE /* Channel Type */ , + "targetSetpoint" /* ChannelId */, CHANNEL_TYPE_TARGETSETPOINT /* Channel Type */ , ITEM_TYPE_NUMBER_TEMPERATURE /* Item Type */); public HandlerThermostatController(SmartHomeDeviceHandler smartHomeDeviceHandler) {