Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[deconz] Added THING_TYPE_SWITCH as supported Thing and correct temperature calculation #4406

Merged
merged 3 commits into from
Dec 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
public class HandlerFactory extends BaseThingHandlerFactory {
private static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Stream
.of(BRIDGE_TYPE, THING_TYPE_PRESENCE_SENSOR, THING_TYPE_DAYLIGHT_SENSOR, THING_TYPE_POWER_SENSOR,
THING_TYPE_LIGHT_SENSOR, THING_TYPE_TEMPERATURE_SENSOR)
THING_TYPE_LIGHT_SENSOR, THING_TYPE_TEMPERATURE_SENSOR, THING_TYPE_SWITCH)
.collect(Collectors.toSet());

private @NonNullByDefault({}) WebSocketFactory webSocketFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public void valueUpdated(String channelID, SensorState state) {
break;
case BindingConstants.CHANNEL_TEMPERATURE:
if (temperature != null) {
updateState(channelID, new QuantityType<Temperature>(temperature, SIUnits.CELSIUS));
updateState(channelID, new QuantityType<Temperature>(temperature / 100, SIUnits.CELSIUS));
}
break;
case BindingConstants.CHANNEL_PRESENCE:
Expand Down