Skip to content

Commit

Permalink
Merge branch 'openhab:main' into 11639-gas-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-42 authored Dec 1, 2021
2 parents 19ab729 + 7fbcd71 commit ad49ce6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<category>Lightbulb</category>

<channels>
<channel id="brightness" typeId="system.brightness"/>
<channel id="color" typeId="system.color"/>
<channel id="colorTemperature" typeId="system.color-temperature"/>
<channel id="colorTemperatureAbs" typeId="colorTemperatureAbs3"/>
<channel id="power" typeId="power"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<category>Lightbulb</category>

<channels>
<channel id="brightness" typeId="system.brightness"/>
<channel id="color" typeId="system.color"/>
<channel id="colorTemperature" typeId="system.color-temperature"/>
<channel id="colorTemperatureAbs" typeId="colorTemperatureAbs3"/>
<channel id="power" typeId="power"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,10 @@ protected void updateWemoState() {
} else {
value = substringBetween(wemoCallResponse, "<BinaryState>", "</BinaryState>");
}
logger.trace("New state '{}' for device '{}' received", value, getThing().getUID());
this.onValueReceived(variable, value, actionService + "1");
if (value.length() != 0) {
logger.trace("New state '{}' for device '{}' received", value, getThing().getUID());
this.onValueReceived(variable, value, actionService + "1");
}
}
}
} catch (Exception e) {
Expand Down

0 comments on commit ad49ce6

Please sign in to comment.