.evaluateXPath("/Response/Parameters//Parameter[@name='Status']/text()", xmlResponse)
.get(0);
- if (!(status.equals("0"))) {
+ if (!("0".equals(status))) {
logger.trace("Hayward getAlarm XML response: {}", xmlResponse);
return false;
}
status = evaluateXPath("/Response/Parameters//Parameter[@name='Status']/text()", xmlResponse).get(0);
- if (!(status.equals("0"))) {
+ if (!("0".equals(status))) {
logger.debug("Hayward Connection thing: Login XML response: {}", xmlResponse);
return false;
}
status = evaluateXPath("/Response/Parameters//Parameter[@name='Status']/text()", xmlResponse).get(0);
- if (!(status.equals("0"))) {
+ if (!("0".equals(status))) {
logger.debug("Hayward Connection thing: getSiteList XML response: {}", xmlResponse);
return false;
}
try {
switch (channelUID.getId()) {
case HaywardBindingConstants.CHANNEL_CHLORINATOR_ENABLE:
- if (cmdString.equals("1")) {
+ if ("1".equals(cmdString)) {
chlorCfgState = "3";
chlorTimedPercent = this.chlorTimedPercent;
} else {
String status = bridgehandler.evaluateXPath("//Parameter[@name='Status']/text()", xmlResponse)
.get(0);
- if (!(status.equals("0"))) {
+ if (!("0".equals(status))) {
logger.debug("haywardCommand XML response: {}", xmlResponse);
return;
}
String status = bridgehandler.evaluateXPath("//Parameter[@name='Status']/text()", xmlResponse)
.get(0);
- if (!(status.equals("0"))) {
+ if (!("0".equals(status))) {
logger.debug("haywardCommand XML response: {}", xmlResponse);
return;
}
String status = bridgehandler.evaluateXPath("//Parameter[@name='Status']/text()", xmlResponse)
.get(0);
- if (!(status.equals("0"))) {
+ if (!("0".equals(status))) {
logger.debug("haywardCommand XML response: {}", xmlResponse);
return;
}
String status = bridgehandler.evaluateXPath("//Parameter[@name='Status']/text()", xmlResponse)
.get(0);
- if (!(status.equals("0"))) {
+ if (!("0".equals(status))) {
logger.debug("haywardCommand XML response: {}", xmlResponse);
return;
}
String status = bridgehandler.evaluateXPath("//Parameter[@name='Status']/text()", xmlResponse)
.get(0);
- if (!(status.equals("0"))) {
+ if (!("0".equals(status))) {
logger.debug("haywardCommand XML response: {}", xmlResponse);
return;
}
<item-type>Number:Temperature</item-type>
<label>Air Temp</label>
<description>Air Temp</description>
- <state pattern="%1f %unit%" readOnly="true"/>
+ <state pattern="%d %unit%" readOnly="true"/>
</channel-type>
<channel-type id="backyardstatus">
<item-type>Number:Temperature</item-type>
<label>Water Temp</label>
<description>Water Temp</description>
- <state pattern="%1f %unit%" readOnly="true"/>
+ <state pattern="%d %unit%" readOnly="true"/>
</channel-type>
</thing:thing-descriptions>
<item-type>Number:Dimensionless</item-type>
<label>Salt Output (%)</label>
<description>Current salt output setting for the chlorinator (%).</description>
- <state min="0" max="100" step="1.0" pattern="%1f %unit%" readOnly="false"/>
+ <state min="0" max="100" step="1.0" pattern="%d %unit%" readOnly="false"/>
</channel-type>
<channel-type id="scMode">
<item-type>Number:Dimensionless</item-type>
<label>Average Salt Level</label>
<description>Average Salt Level</description>
- <state pattern="%1f %unit%" readOnly="true"/>
+ <state pattern="%d %unit%" readOnly="true"/>
</channel-type>
<channel-type id="instantSaltLevel">
<item-type>Number:Dimensionless</item-type>
<label>Instant Salt Level</label>
<description>Instant Salt Level</description>
- <state pattern="%1f %unit%" readOnly="true"/>
+ <state pattern="%d %unit%" readOnly="true"/>
</channel-type>
<channel-type id="status">
<item-type>Number</item-type>
<label>Status</label>
<description>Status</description>
- <state pattern="%1f" readOnly="true"/>
+ <state pattern="%d" readOnly="true"/>
</channel-type>
</thing:thing-descriptions>
<item-type>Number:Dimensionless</item-type>
<label>Filter Speed</label>
<description>Filter Speed in %</description>
- <state min="0" max="100" step="1.0" pattern="%1f %unit%" readOnly="false"/>
+ <state min="0" max="100" step="1.0" pattern="%d %unit%" readOnly="false"/>
</channel-type>
<channel-type id="filterState">
<item-type>Number:Dimensionless</item-type>
<label>Last Speed</label>
<description>Last Speed</description>
- <state pattern="%1f %unit%" readOnly="true"/>
+ <state pattern="%d %unit%" readOnly="true"/>
</channel-type>
</thing:thing-descriptions>
<item-type>Number:Dimensionless</item-type>
<label>Pump Speed in %</label>
<description>Pump Speed</description>
- <state min="0" max="100" step="1.0" pattern="%1f %unit%" readOnly="false"/>
+ <state min="0" max="100" step="1.0" pattern="%d %unit%" readOnly="false"/>
</channel-type>
</thing:thing-descriptions>
<label>Current Setpoint</label>
<description>Current Setpoint</description>
<category>Temperature</category>
- <state min="65" max="90" step="1.0" pattern="%1f %unit%" readOnly="false"/>
+ <state min="65" max="90" step="1.0" pattern="%d %unit%" readOnly="false"/>
</channel-type>
</thing:thing-descriptions>