Any news on this topic? As far as I can see, the DPT ist still delivered as decimal (x.0)…
I was trying to play around with some workarounds, but neither worked…maybe I have errors in the syntax?
var Scene_Value = (Scene.state as DecimalType).intValue
//guessing that Scene_Value can't be used as a trigger first...
rule "Szene 1 Guten Morgen"
when
Item Scene received update
then
if {Scene_Value.state == 0}
HueColorCandle1Color.sendCommand ("30,64,80")
HueColorCandle2Color.sendCommand ("30,64,80")
HueColorCandle5Color.sendCommand ("30,64,80")
end
//Trying to use the Scene_Value directly...
rule "Szene 2 Gute Nacht"
when
Item Scene_Value received command 1
then
HueLightstripPlus1Dimmer.sendCommand (OFF)
HueColorCandle1Dimmer.sendCommand (OFF)
HueColorCandle2Dimmer.sendCommand (OFF)
HueColorCandle5Dimmer.sendCommand (OFF)
//SteckdoseTreppenhausOben.sendCommand (OFF)
SteckdoseFP1.sendCommand (OFF)
end
//Tried to use the floating point decimal the binding delivers (in this case I would have simply had two rules, depending on what triggered the rule
rule "Szene 3 Chillen"
when
Item Scene received command 2.0
then
HueColorCandle1Color.sendCommand ("29,80,70")
HueColorCandle2Color.sendCommand ("29,80,70")
HueColorCandle5Color.sendCommand ("29,80,70")
end
All three versions did not work… any ideas ?