[deconz] Set "ontime" option only if thing has got an ONTIME channel (#10829)

* Set "ontime" option only if thing has got an ONTIME channel

Fixes #10774

Signed-off-by: Martin Herbst <develop@mherbst.de>
This commit is contained in:
Martin Herbst
2021-06-14 16:01:30 +02:00
committed by GitHub
parent 793dbf3df5
commit 82dba8d400

View File

@@ -96,7 +96,8 @@ public class LightThingHandler extends DeconzBaseThingHandler {
*/
private LightState lightStateCache = new LightState();
private LightState lastCommand = new LightState();
private int onTime = 0; // in 0.1s
@Nullable
private Integer onTime = null; // in 0.1s
private String colorMode = "";
// set defaults, we can override them later if we receive better values