Type switch : switch-wifi "Front Door" [zone=1]
Type actuator : actuator-wifi "Siren" [zone=2, momentary = 50, times = 2, pause = 50]
Type humidity : humidity-wifi "DHT - Humidity" [zone=3]
- Type temperature : temperature-wifi "DHT Temperature" [zone=4, tempsensorType = true, pollinterval = 1]
- Type temperature : temperature-wifi "DS18B20 Temperature" [zone=5, tempsensorType = false, pollinterval = 1, ds18b20_address = "XX:XX:XX:XX:XX:XX:XX"]
+ Type temperature : temperature-wifi "DHT Temperature" [zone=4, dht22 = true, pollInterval = 1]
+ Type temperature : temperature-wifi "DS18B20 Temperature" [zone=5, dht22 = false, pollInterval = 1, ds18b20Address = "XX:XX:XX:XX:XX:XX:XX"]
}
Thing konnected:pro-module:generic "Konnected Module" [baseUrl="http://192.168.30.154:9586", macAddress="1684597"]{
Type switch : switch-pro "Front Door" [zone=1]
Type actuator : actuator-pro "Siren" [zone=2, momentary = 50, times = 2, pause = 50]
Type humidity : humidity-pro "DHT - Humidity" [zone=3]
- Type temperature : temperature-pro "DHT Temperature" [zone=4, tempsensorType = true, pollinterval = 1]
- Type temperature : temperature-pro "DS18B20 Temperature" [zone=5, tempsensorType = false, pollinterval = 1, ds18b20_address = "XX:XX:XX:XX:XX:XX:XX"]
+ Type temperature : temperature-pro "DHT Temperature" [zone=4, dht22 = true, pollInterval = 1]
+ Type temperature : temperature-pro "DS18B20 Temperature" [zone=5, dht22 = false, pollInterval = 1, ds18b20Address = "XX:XX:XX:XX:XX:XX:XX"]
}
```
public static final Map<Integer, String> ESP8266_PIN_TO_ZONE = ESP8266_ZONE_TO_PIN.entrySet().stream()
.collect(Collectors.toMap(Map.Entry::getValue, Map.Entry::getKey));
- public static final String CHANNEL_ZONE = "zone";
-
// channeltypeids
public static final String CHANNEL_SWITCH = "konnected:switch";
public static final String CHANNEL_ACTUATOR = "konnected:actuator";
public static final String CHANNEL_TEMPERATURE = "konnected:temperature";
public static final String CHANNEL_HUMIDITY = "konnected:humidity";
-
- public static final String CHANNEL_TEMPERATURE_TYPE = "tempsensorType";
- public static final String CHANNEL_TEMPERATURE_DS18B20_ADDRESS = "ds18b20_address";
- public static final String CHANNEL_TEMPERATRUE_POLL = "pollinterval";
-
- public static final String CHANNEL_ACTUATOR_TIMES = "times";
- public static final String CHANNEL_ACTUATOR_MOMENTARY = "momentary";
- public static final String CHANNEL_ACTUATOR_PAUSE = "pause";
-
- public static final String CHANNEL_ONVALUE = "onvalue";
}
--- /dev/null
+/**
+ * Copyright (c) 2010-2022 Contributors to the openHAB project
+ *
+ * See the NOTICE file(s) distributed with this work for additional
+ * information.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License 2.0 which is available at
+ * http://www.eclipse.org/legal/epl-2.0
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
+package org.openhab.binding.konnected.internal;
+
+import org.eclipse.jdt.annotation.NonNullByDefault;
+import org.eclipse.jdt.annotation.Nullable;
+
+/**
+ * The {@link ZoneConfiguration} class contains the configuration parameters for the zone.
+ *
+ * @author Haavar Valeur
+ */
+@NonNullByDefault
+public class ZoneConfiguration {
+ public String zone = "";
+ public boolean dht22 = true;
+ @Nullable
+ public String ds18b20Address;
+ public int pollInterval = 3;
+ @Nullable
+ public Integer times;
+ @Nullable
+ public Integer momentary;
+ @Nullable
+ public Integer pause;
+ public int onValue = 1;
+}
private Integer state;
@SerializedName("Auth_Token")
private String authToken;
- private String momentary;
- private String pause;
- private String times;
+ private Integer momentary;
+ private Integer pause;
+ private Integer times;
@SerializedName("poll_interval")
private Integer pollInterval;
private String addr;
return authToken;
}
- public String getMomentary() {
+ public Integer getMomentary() {
return momentary;
}
- public void setMomentary(String setMomentary) {
+ public void setMomentary(Integer setMomentary) {
this.momentary = setMomentary;
}
- public String getPause() {
+ public Integer getPause() {
return pause;
}
- public void setPause(String setPause) {
+ public void setPause(Integer setPause) {
this.pause = setPause;
}
- public String getTimes() {
+ public Integer getTimes() {
return times;
}
- public void setTimes(String setTimes) {
+ public void setTimes(Integer setTimes) {
this.times = setTimes;
}
import static org.openhab.binding.konnected.internal.KonnectedBindingConstants.*;
-import java.math.BigDecimal;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.TimeUnit;
import org.openhab.binding.konnected.internal.KonnectedConfiguration;
import org.openhab.binding.konnected.internal.KonnectedHTTPUtils;
import org.openhab.binding.konnected.internal.KonnectedHttpRetryExceeded;
+import org.openhab.binding.konnected.internal.ZoneConfiguration;
import org.openhab.binding.konnected.internal.gson.KonnectedModuleGson;
import org.openhab.binding.konnected.internal.gson.KonnectedModulePayload;
import org.openhab.core.config.core.Configuration;
// get the zone number in integer form
Channel channel = this.getThing().getChannel(channelUID.getId());
String channelType = channel.getChannelTypeUID().getAsString();
- String zone = (String) channel.getConfiguration().get(CHANNEL_ZONE);
+ ZoneConfiguration zoneConfig = channel.getConfiguration().as(ZoneConfiguration.class);
+ String zone = zoneConfig.zone;
logger.debug("The channelUID is: {} and the zone is : {}", channelUID.getAsString(), zone);
// if the command is OnOfftype
if (command instanceof OnOffType) {
zone);
getThing().getChannels().forEach(channel -> {
ChannelUID channelId = channel.getUID();
- String zoneNumber = (String) channel.getConfiguration().get(CHANNEL_ZONE);
+ ZoneConfiguration zoneConfig = channel.getConfiguration().as(ZoneConfiguration.class);
// if the string zone that was sent equals the last digit of the channelId found process it as the
// channelId else do nothing
- if (zone.equalsIgnoreCase(zoneNumber)) {
+ if (zone.equalsIgnoreCase(zoneConfig.zone)) {
logger.debug(
"The configrued zone of channelID: {} was a match for the zone sent by the alarm panel: {} on thing: {}",
channelId, zone, this.getThing().getUID().getId());
Integer state = event.getState();
logger.debug("The event state is: {}", state);
if (state != null) {
- OnOffType onOffType = state == getOnState(channel) ? OnOffType.ON : OnOffType.OFF;
+ OnOffType onOffType = state == zoneConfig.onValue ? OnOffType.ON : OnOffType.OFF;
updateState(channelId, onOffType);
}
} else if (channelType.contains(CHANNEL_HUMIDITY)) {
// if the state is of type number then this means it is the humidity channel of the dht22
updateState(channelId, new QuantityType<>(Double.parseDouble(event.getHumi()), Units.PERCENT));
} else if (channelType.contains(CHANNEL_TEMPERATURE)) {
- Configuration configuration = channel.getConfiguration();
- if (((Boolean) configuration.get(CHANNEL_TEMPERATURE_TYPE))) {
+ if (zoneConfig.dht22) {
updateState(channelId,
new QuantityType<>(Double.parseDouble(event.getTemp()), SIUnits.CELSIUS));
} else {
// need to check to make sure right dsb1820 address
- logger.debug("The address of the DSB1820 sensor received from modeule {} is: {}",
+ logger.debug("The address of the DSB1820 sensor received from module {} is: {}",
this.thing.getUID(), event.getAddr());
- if (event.getAddr()
- .equalsIgnoreCase((String) (configuration.get(CHANNEL_TEMPERATURE_DS18B20_ADDRESS)))) {
+
+ if (event.getAddr().equalsIgnoreCase(zoneConfig.ds18b20Address)) {
updateState(channelId,
new QuantityType<>(Double.parseDouble(event.getTemp()), SIUnits.CELSIUS));
} else {
logger.debug("The address of {} does not match {} not updating this channel",
- event.getAddr(), (configuration.get(CHANNEL_TEMPERATURE_DS18B20_ADDRESS)));
+ event.getAddr(), zoneConfig.ds18b20Address);
}
}
}
} else {
logger.trace(
"The zone number sent by the alarm panel: {} was not a match the configured zone for channelId: {} for thing {}",
- zone, channelId, getThing().getThingTypeUID().toString());
+ zone, channelId, getThing().getThingTypeUID());
}
});
}
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR, e.getMessage());
}
});
- value = false;
} else if (cfg[1].equals("removewifi") && value instanceof Boolean && (Boolean) value) {
scheduler.execute(() -> {
try {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR, e.getMessage());
}
});
- value = false;
} else if (cfg[1].equals("sendConfig") && value instanceof Boolean && (Boolean) value) {
scheduler.execute(() -> {
try {
String response = updateKonnectedModule();
logger.trace("The response from the konnected module with thingID {} was {}",
- getThing().getUID().toString(), response);
+ getThing().getUID(), response);
if (response == null) {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR,
"Unable to communicate with Konnected Module.");
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR, e.getMessage());
}
});
- value = false;
}
}
}
{
String response = updateKonnectedModule();
- logger.trace("The response from the konnected module with thingID {} was {}",
- getThing().getUID().toString(), response);
+ logger.trace("The response from the konnected module with thingID {} was {}", getThing().getUID(),
+ response);
if (response == null) {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR,
"Unable to communicate with Konnected Module confirm settings.");
// adds linked channels to list based on last value of Channel ID
// which is set to a number
// get the zone number in integer form
- String zone = (String) channel.getConfiguration().get(CHANNEL_ZONE);
+ ZoneConfiguration zoneConfig = channel.getConfiguration().as(ZoneConfiguration.class);
// if the pin is an actuator add to actuator string
// else add to sensor string
// This is determined based off of the accepted item type, contact types are sensors
String channelType = channel.getChannelTypeUID().getAsString();
logger.debug("The channeltypeID is: {}", channelType);
KonnectedModuleGson module = new KonnectedModuleGson();
- module.setZone(thingID, zone);
+ module.setZone(thingID, zoneConfig.zone);
if (channelType.contains(CHANNEL_SWITCH)) {
payload.addSensor(module);
- logger.trace("Channel {} will be configured on the konnected alarm panel as a switch",
- channel.toString());
+ logger.trace("Channel {} will be configured on the konnected alarm panel as a switch", channel);
} else if (channelType.contains(CHANNEL_ACTUATOR)) {
payload.addActuators(module);
- logger.trace("Channel {} will be configured on the konnected alarm panel as an actuator",
- channel.toString());
+ logger.trace("Channel {} will be configured on the konnected alarm panel as an actuator", channel);
} else if (channelType.contains(CHANNEL_HUMIDITY)) {
// the humidity channels do not need to be added because the supported sensor (dht22) is added under
// the temp sensor
- logger.trace("Channel {} is a humidity channel.", channel.toString());
+ logger.trace("Channel {} is a humidity channel.", channel);
} else if (channelType.contains(CHANNEL_TEMPERATURE)) {
logger.trace("Channel {} will be configured on the konnected alarm panel as a temperature sensor",
- channel.toString());
- Configuration configuration = channel.getConfiguration();
- if (configuration.get(CHANNEL_TEMPERATRUE_POLL) == null) {
- module.setPollInterval(3);
- } else {
- module.setPollInterval(((BigDecimal) configuration.get(CHANNEL_TEMPERATRUE_POLL)).intValue());
- }
- logger.trace("The Temperature Sensor Type is: {} ",
- configuration.get(CHANNEL_TEMPERATURE_TYPE).toString());
- if ((boolean) configuration.get(CHANNEL_TEMPERATURE_TYPE)) {
+ channel);
+ module.setPollInterval(zoneConfig.pollInterval);
+ logger.trace("The Temperature Sensor Type is: {} ", zoneConfig.dht22);
+ if (zoneConfig.dht22) {
// add it as a dht22 module
payload.addDht22(module);
logger.trace(
"Channel {} will be configured on the konnected alarm panel as a DHT22 temperature sensor",
- channel.toString());
+ channel);
} else {
// add to payload as a DS18B20 module if the parameter is false
payload.addDs18b20(module);
logger.trace(
"Channel {} will be configured on the konnected alarm panel as a DS18B20 temperature sensor",
- channel.toString());
+ channel);
}
} else {
- logger.debug("Channel {} is of type {} which is not supported by the konnected binding",
- channel.toString(), channelType);
+ logger.debug("Channel {} is of type {} which is not supported by the konnected binding", channel,
+ channelType);
}
} else {
logger.debug("The Channel {} is not linked to an item", channel.getUID());
private void sendActuatorCommand(Integer scommand, String zone, ChannelUID channelId) {
try {
Channel channel = getThing().getChannel(channelId.getId());
- if (!(channel == null)) {
+ if (channel != null) {
logger.debug("getasstring: {} getID: {} getGroupId: {} toString:{}", channelId.getAsString(),
- channelId.getId(), channelId.getGroupId(), channelId.toString());
- Configuration configuration = channel.getConfiguration();
+ channelId.getId(), channelId.getGroupId(), channelId);
+ ZoneConfiguration zoneConfig = channel.getConfiguration().as(ZoneConfiguration.class);
KonnectedModuleGson payload = new KonnectedModuleGson();
payload.setState(scommand);
// check to see if this is an On Command type, if so add the momentary, pause, times to the payload if
// they exist on the configuration.
- if (scommand == getOnState(channel)) {
- if (configuration.get(CHANNEL_ACTUATOR_TIMES) == null) {
- logger.debug(
- "The times configuration was not set for channelID: {}, not adding it to the payload.",
- channelId.toString());
- } else {
- payload.setTimes(configuration.get(CHANNEL_ACTUATOR_TIMES).toString());
- logger.debug("The times configuration was set to: {} for channelID: {}.",
- configuration.get(CHANNEL_ACTUATOR_TIMES).toString(), channelId.toString());
- }
- if (configuration.get(CHANNEL_ACTUATOR_MOMENTARY) == null) {
- logger.debug(
- "The momentary configuration was not set for channelID: {}, not adding it to the payload.",
- channelId.toString());
- } else {
- payload.setMomentary(configuration.get(CHANNEL_ACTUATOR_MOMENTARY).toString());
- logger.debug("The momentary configuration set to: {} channelID: {}.",
- configuration.get(CHANNEL_ACTUATOR_MOMENTARY).toString(), channelId.toString());
- }
- if (configuration.get(CHANNEL_ACTUATOR_PAUSE) == null) {
- logger.debug(
- "The pause configuration was not set for channelID: {}, not adding it to the payload.",
- channelId.toString());
- } else {
- payload.setPause(configuration.get(CHANNEL_ACTUATOR_PAUSE).toString());
- logger.debug("The pause configuration was set to: {} for channelID: {}.",
- configuration.get(CHANNEL_ACTUATOR_PAUSE).toString(), channelId.toString());
- }
+ if (scommand == zoneConfig.onValue) {
+ payload.setTimes(zoneConfig.times);
+ logger.debug("The times configuration was set to: {} for channelID: {}.", zoneConfig.times,
+ channelId);
+ payload.setMomentary(zoneConfig.momentary);
+ logger.debug("The momentary configuration set to: {} channelID: {}.", zoneConfig.momentary,
+ channelId);
+ payload.setPause(zoneConfig.pause);
+ logger.debug("The pause configuration was set to: {} for channelID: {}.", zoneConfig.pause,
+ channelId);
}
String payloadString = gson.toJson(payload);
logger.debug("The command payload is: {}", payloadString);
}
http.doPut(baseUrl + path, payloadString, retryCount);
} else {
- logger.debug("The channel {} returned null for channelId.getID(): {}", channelId.toString(),
- channelId.getId());
+ logger.debug("The channel {} returned null for channelId.getID(): {}", channelId, channelId.getId());
}
} catch (KonnectedHttpRetryExceeded e) {
logger.debug("Attempting to set the state of the actuator on thing {} failed: {}",
Channel channel = getThing().getChannel(channelId.getId());
if (!(channel == null)) {
logger.debug("getasstring: {} getID: {} getGroupId: {} toString:{}", channelId.getAsString(),
- channelId.getId(), channelId.getGroupId(), channelId.toString());
+ channelId.getId(), channelId.getGroupId(), channelId);
KonnectedModuleGson payload = new KonnectedModuleGson();
payload.setZone(thingID, zone);
String payloadString = gson.toJson(payload);
}, 2, TimeUnit.MINUTES);
}
} else {
- logger.debug("The channel {} returned null for channelId.getID(): {}", channelId.toString(),
- channelId.getId());
+ logger.debug("The channel {} returned null for channelId.getID(): {}", channelId, channelId.getId());
}
}
this.handleWebHookEvent(event);
}
}
-
- private int getOnState(Channel channel) {
- return ((Number) channel.getConfiguration().get(CHANNEL_ONVALUE)).intValue();
- }
}
channel-type.config.konnected.actuator-pro.momentary.label = Momentary
channel-type.config.konnected.actuator-pro.momentary.description = The duration of the pulse in milliseconds
-channel-type.config.konnected.actuator-pro.onvalue.label = On Value
-channel-type.config.konnected.actuator-pro.onvalue.description = The value that will be treated by the binding as an on command. For actuators that activate with a high command set to 1 and actuators that activate with a low value set to 0.
-channel-type.config.konnected.actuator-pro.onvalue.option.0 = 0
-channel-type.config.konnected.actuator-pro.onvalue.option.1 = 1
+channel-type.config.konnected.actuator-pro.onValue.label = On Value
+channel-type.config.konnected.actuator-pro.onValue.description = The value that will be treated by the binding as an on command. For actuators that activate with a high command set to 1 and actuators that activate with a low value set to 0.
+channel-type.config.konnected.actuator-pro.onValue.option.0 = 0
+channel-type.config.konnected.actuator-pro.onValue.option.1 = 1
channel-type.config.konnected.actuator-pro.pause.label = Pause
channel-type.config.konnected.actuator-pro.pause.description = The time between pulses in milliseconds
channel-type.config.konnected.actuator-pro.times.label = Times
channel-type.config.konnected.actuator-pro.zone.option.alarm2_out2 = Alarm2/Out2
channel-type.config.konnected.actuator-wifi.momentary.label = Momentary
channel-type.config.konnected.actuator-wifi.momentary.description = The duration of the pulse in millisecods
-channel-type.config.konnected.actuator-wifi.onvalue.label = On Value
-channel-type.config.konnected.actuator-wifi.onvalue.description = The value that will be treated by the binding as an on command. For actuators that activate with a high command set to 1 and actuators that activate with a low value set to 0.
-channel-type.config.konnected.actuator-wifi.onvalue.option.0 = 0
-channel-type.config.konnected.actuator-wifi.onvalue.option.1 = 1
+channel-type.config.konnected.actuator-wifi.onValue.label = On Value
+channel-type.config.konnected.actuator-wifi.onValue.description = The value that will be treated by the binding as an on command. For actuators that activate with a high command set to 1 and actuators that activate with a low value set to 0.
+channel-type.config.konnected.actuator-wifi.onValue.option.0 = 0
+channel-type.config.konnected.actuator-wifi.onValue.option.1 = 1
channel-type.config.konnected.actuator-wifi.pause.label = Pause
channel-type.config.konnected.actuator-wifi.pause.description = The time between pulses in millisecods
channel-type.config.konnected.actuator-wifi.times.label = Times
channel-type.config.konnected.humidity-wifi.zone.option.5 = 5
channel-type.config.konnected.humidity-wifi.zone.option.6 = 6
channel-type.config.konnected.humidity-wifi.zone.option.alarm_out = Alarm/Out
-channel-type.config.konnected.switch-pro.onvalue.label = On Value
-channel-type.config.konnected.switch-pro.onvalue.description = The value that will be treated by the binding as the on value. For sensors that activate with a high value, leave at the default of 1 and sensors that activate with a low value set to 0.
-channel-type.config.konnected.switch-pro.onvalue.option.0 = 0
-channel-type.config.konnected.switch-pro.onvalue.option.1 = 1
+channel-type.config.konnected.switch-pro.onValue.label = On Value
+channel-type.config.konnected.switch-pro.onValue.description = The value that will be treated by the binding as the on value. For sensors that activate with a high value, leave at the default of 1 and sensors that activate with a low value set to 0.
+channel-type.config.konnected.switch-pro.onValue.option.0 = 0
+channel-type.config.konnected.switch-pro.onValue.option.1 = 1
channel-type.config.konnected.switch-pro.zone.label = Zone Number
channel-type.config.konnected.switch-pro.zone.description = The zone number of the channel.
channel-type.config.konnected.switch-pro.zone.option.1 = 1
channel-type.config.konnected.switch-pro.zone.option.10 = 10
channel-type.config.konnected.switch-pro.zone.option.11 = 11
channel-type.config.konnected.switch-pro.zone.option.12 = 12
-channel-type.config.konnected.switch-wifi.onvalue.label = On Value
-channel-type.config.konnected.switch-wifi.onvalue.description = The value that will be treated by the binding as the on value. For sensors that activate with a high value leave at the default of 1 and sensors that activate with a low value set to 0.
-channel-type.config.konnected.switch-wifi.onvalue.option.0 = 0
-channel-type.config.konnected.switch-wifi.onvalue.option.1 = 1
+channel-type.config.konnected.switch-wifi.onValue.label = On Value
+channel-type.config.konnected.switch-wifi.onValue.description = The value that will be treated by the binding as the on value. For sensors that activate with a high value leave at the default of 1 and sensors that activate with a low value set to 0.
+channel-type.config.konnected.switch-wifi.onValue.option.0 = 0
+channel-type.config.konnected.switch-wifi.onValue.option.1 = 1
channel-type.config.konnected.switch-wifi.zone.label = Zone Number
channel-type.config.konnected.switch-wifi.zone.description = The Zone Number of the channel.
channel-type.config.konnected.switch-wifi.zone.option.1 = 1
channel-type.config.konnected.switch-wifi.zone.option.5 = 5
channel-type.config.konnected.switch-wifi.zone.option.6 = 6
channel-type.config.konnected.switch-wifi.zone.option.alarm_out = Alarm/Out
-channel-type.config.konnected.temperature-pro.ds18b20_address.label = DS18b20 Address
-channel-type.config.konnected.temperature-pro.ds18b20_address.description = This is the unique address of the sensor on the one wire bus.
-channel-type.config.konnected.temperature-pro.pollinterval.label = Poll Interval
-channel-type.config.konnected.temperature-pro.pollinterval.description = The interval in minutes to poll the sensor.
-channel-type.config.konnected.temperature-pro.tempsensorType.label = DHT22
-channel-type.config.konnected.temperature-pro.tempsensorType.description = Is the sensor a dht22 or a ds18b20? Set to true for dht22 sensor
+channel-type.config.konnected.temperature-pro.ds18b20Address.label = DS18b20 Address
+channel-type.config.konnected.temperature-pro.ds18b20Address.description = This is the unique address of the sensor on the one wire bus.
+channel-type.config.konnected.temperature-pro.pollInterval.label = Poll Interval
+channel-type.config.konnected.temperature-pro.pollInterval.description = The interval in minutes to poll the sensor.
+channel-type.config.konnected.temperature-pro.v.label = DHT22
+channel-type.config.konnected.temperature-pro.dht22.description = Is the sensor a dht22 or a ds18b20? Set to true for dht22 sensor
channel-type.config.konnected.temperature-pro.zone.label = Zone Number
channel-type.config.konnected.temperature-pro.zone.description = The Zone Number of the channel.
channel-type.config.konnected.temperature-pro.zone.option.1 = 1
channel-type.config.konnected.temperature-pro.zone.option.6 = 6
channel-type.config.konnected.temperature-pro.zone.option.7 = 7
channel-type.config.konnected.temperature-pro.zone.option.8 = 8
-channel-type.config.konnected.temperature-wifi.ds18b20_address.label = DS18b20 Address
-channel-type.config.konnected.temperature-wifi.ds18b20_address.description = This is the unique address of the sensor on the one wire bus.
-channel-type.config.konnected.temperature-wifi.pollinterval.label = Poll Interval
-channel-type.config.konnected.temperature-wifi.pollinterval.description = The interval in minutes to poll the sensor.
-channel-type.config.konnected.temperature-wifi.tempsensorType.label = DHT22
-channel-type.config.konnected.temperature-wifi.tempsensorType.description = Is the sensor a dht22 or a ds18b20? Set to true for dht22 sensor
+channel-type.config.konnected.temperature-wifi.ds18b20Address.label = DS18b20 Address
+channel-type.config.konnected.temperature-wifi.ds18b20Address.description = This is the unique address of the sensor on the one wire bus.
+channel-type.config.konnected.temperature-wifi.pollInterval.label = Poll Interval
+channel-type.config.konnected.temperature-wifi.pollInterval.description = The interval in minutes to poll the sensor.
+channel-type.config.konnected.temperature-wifi.dht22.label = DHT22
+channel-type.config.konnected.temperature-wifi.dht22.description = Is the sensor a dht22 or a ds18b20? Set to true for dht22 sensor
channel-type.config.konnected.temperature-wifi.zone.label = Zone Number
channel-type.config.konnected.temperature-wifi.zone.description = The Zone Number of the channel.
channel-type.config.konnected.temperature-wifi.zone.option.1 = 1
channel-type.config.konnected.actuator.momentary.label = Momentary
channel-type.config.konnected.actuator.momentary.description = The duration of the pulse in millisecods
-channel-type.config.konnected.actuator.onvalue.label = On Value
-channel-type.config.konnected.actuator.onvalue.description = The value that will be treated by the binding as an on command. For actuators that activate with a high command set to 1 and actuators that activate with a low value set to 0.
-channel-type.config.konnected.actuator.onvalue.option.0 = 0
-channel-type.config.konnected.actuator.onvalue.option.1 = 1
+channel-type.config.konnected.actuator.onValue.label = On Value
+channel-type.config.konnected.actuator.onValue.description = The value that will be treated by the binding as an on command. For actuators that activate with a high command set to 1 and actuators that activate with a low value set to 0.
+channel-type.config.konnected.actuator.onValue.option.0 = 0
+channel-type.config.konnected.actuator.onValue.option.1 = 1
channel-type.config.konnected.actuator.pause.label = Pause
channel-type.config.konnected.actuator.pause.description = The time between pulses in millisecods
channel-type.config.konnected.actuator.times.label = Times
channel-type.config.konnected.humidity.zone.option.5 = 5
channel-type.config.konnected.humidity.zone.option.6 = 6
channel-type.config.konnected.humidity.zone.option.7 = Out
-channel-type.config.konnected.switch.onvalue.label = On Value
-channel-type.config.konnected.switch.onvalue.description = The value that will be treated by the binding as the on value. For sensors that activate with a high value leave at the default of 1 and sensors that activate with a low value set to 0.
-channel-type.config.konnected.switch.onvalue.option.0 = 0
-channel-type.config.konnected.switch.onvalue.option.1 = 1
+channel-type.config.konnected.switch.onValue.label = On Value
+channel-type.config.konnected.switch.onValue.description = The value that will be treated by the binding as the on value. For sensors that activate with a high value leave at the default of 1 and sensors that activate with a low value set to 0.
+channel-type.config.konnected.switch.onValue.option.0 = 0
+channel-type.config.konnected.switch.onValue.option.1 = 1
channel-type.config.konnected.switch.zone.label = Zone Number
channel-type.config.konnected.switch.zone.description = The Zone Number of the channel.
channel-type.config.konnected.switch.zone.option.1 = 1
channel-type.config.konnected.switch.zone.option.5 = 5
channel-type.config.konnected.switch.zone.option.6 = 6
channel-type.config.konnected.switch.zone.option.7 = Out
-channel-type.config.konnected.temperature.ds18b20_address.label = DS18b20 Address
-channel-type.config.konnected.temperature.ds18b20_address.description = This is the unique address of the sensor on the one wire bus.
-channel-type.config.konnected.temperature.pollinterval.label = Poll Interval
-channel-type.config.konnected.temperature.pollinterval.description = The interval in minutes to poll the sensor.
-channel-type.config.konnected.temperature.tempsensorType.label = DHT22
-channel-type.config.konnected.temperature.tempsensorType.description = Is the sensor a dht22 or a ds18b20? Set to true for dht22 sensor
+channel-type.config.konnected.temperature.ds18b20Address.label = DS18b20 Address
+channel-type.config.konnected.temperature.ds18b20Address.description = This is the unique address of the sensor on the one wire bus.
+channel-type.config.konnected.temperature.pollInterval.label = Poll Interval
+channel-type.config.konnected.temperature.pollInterval.description = The interval in minutes to poll the sensor.
+channel-type.config.konnected.temperature.dht22.label = DHT22
+channel-type.config.konnected.temperature.dht22.description = Is the sensor a dht22 or a ds18b20? Set to true for dht22 sensor
channel-type.config.konnected.temperature.zone.label = Zone Number
channel-type.config.konnected.temperature.zone.description = The Zone Number of the channel.
channel-type.config.konnected.temperature.zone.option.1 = 1
<option value="alarm_out">Alarm/Out</option>
</options>
</parameter>
- <parameter name="onvalue" type="integer">
+ <parameter name="onValue" type="integer">
<label>On Value</label>
<description>The value that will be treated by the binding as the on value. For sensors that activate with a high
value leave at the default of 1 and sensors that activate with a low value set to 0.</description>
<option value="alarm_out">Alarm/Out</option>
</options>
</parameter>
- <parameter name="tempsensorType" type="boolean">
+ <parameter name="dht22" type="boolean">
<label>DHT22</label>
<description>Is the sensor a dht22 or a ds18b20? Set to true for dht22 sensor</description>
+ <default>true</default>
</parameter>
- <parameter name="pollinterval" type="integer">
+ <parameter name="pollInterval" type="integer">
<label>Poll Interval</label>
<description>The interval in minutes to poll the sensor.</description>
+ <default>3</default>
</parameter>
- <parameter name="ds18b20_address" type="text">
+ <parameter name="ds18b20Address" type="text">
<label>DS18b20 Address</label>
<description>This is the unique address of the sensor on the one wire bus.</description>
</parameter>
<option value="alarm_out">Alarm/Out</option>
</options>
</parameter>
- <parameter name="onvalue" type="integer">
+ <parameter name="onValue" type="integer">
<label>On Value</label>
<description>The value that will be treated by the binding as an on command. For actuators that activate with a high
command set to 1 and actuators that activate with a low value set to 0.</description>
<option value="12">12</option>
</options>
</parameter>
- <parameter name="onvalue" type="integer">
+ <parameter name="onValue" type="integer">
<label>On Value</label>
<description>The value that will be treated by the binding as the on value. For sensors that activate with a high
value, leave at the default of 1 and sensors that activate with a low value set to 0.</description>
<option value="alarm2_out2">Alarm2/Out2</option>
</options>
</parameter>
- <parameter name="onvalue" type="integer">
+ <parameter name="onValue" type="integer">
<label>On Value</label>
<description>The value that will be treated by the binding as an on command. For actuators that activate with a high
command set to 1 and actuators that activate with a low value set to 0.</description>
<option value="8">8</option>
</options>
</parameter>
- <parameter name="tempsensorType" type="boolean">
+ <parameter name="dht22" type="boolean">
<label>DHT22</label>
<description>Is the sensor a dht22 or a ds18b20? Set to true for dht22 sensor</description>
+ <default>true</default>
</parameter>
- <parameter name="pollinterval" type="integer">
+ <parameter name="pollInterval" type="integer">
<label>Poll Interval</label>
<description>The interval in minutes to poll the sensor.</description>
+ <default>3</default>
</parameter>
- <parameter name="ds18b20_address" type="text">
+ <parameter name="ds18b20Address" type="text">
<label>DS18b20 Address</label>
<description>This is the unique address of the sensor on the one wire bus.</description>
</parameter>