Skip to content

Commit

Permalink
[amazonechocontrol] fix thermostat handler (openhab#9812)
Browse files Browse the repository at this point in the history
* fix thermostat handler
* fix spotless

Signed-off-by: Jan N. Klug <[email protected]>
  • Loading branch information
J-N-K authored and thinkingstone committed Nov 7, 2021
1 parent 4befa60 commit 27b7aac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 27b7aac

Please sign in to comment.