Currently I am running an „old“ OH2 server and a new „OH3“ server to take over. On the old server, I have a .rules files with some scenes invoked by a four-button-switch for my home-cinema. Not very high tech, but working fine.
For the new server I broke up the .rules file to separate DSL UI-rules for each scene. Everything is working fine in both worlds except the „end of movie“-scene on OH3 which includes an eye-friendly „sun-rise“ of a HUE light.
var i = 0
var hue = 1
var sat = 100
var bright = 0
while ((i=i+4)<60)
{
hue = i/2
sat = 100-i
bright = i
LichtTischKaminzimmer_Farbe.sendCommand (new HSBType(new DecimalType(hue), new PercentType(sat), new PercentType(bright)))
Thread::sleep(3000)
}
gEG_Kaminzimmer_Hue_Play_Color.sendCommand (OFF)
The line with the .sendCommand always gives me an errors like
The extension methods
sendCommand(Item, Command) in BusEvent and
sendCommand(Item, Number) in BusEvent
both match.; line 14, column 302, length 11
I read a lot over the last two days about problems and differences in the handling of HSBType between OH2 and OH3 and tried several different approaches to send the new color-value to the item, but none of them worked.
Any ideas?