Hy to everyone!
i createt my first rule
rule "Change all Dimmers" when Item Master_Volume_Slider changed then var previousValue = Master_Volume_Slider.previousState as Number var newValue = Master_Volume_Slider.state as Number var Difference = newValue - previousValue Master_Volume.forEach( i | i.sendCommand((i.state as Number) + Difference)) end
when the rule is triggered by sliding the Master Volume slider, i get this error in the Log.
2018-02-17 23:13:36.097 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule ‘Change all Dimmers’: Could not cast org.openhab.core.persistence.internal.QueryablePersistenceServiceDelegate$1@2abd16 to java.lang.Number; line 5, column 25, length 44
Could someone tell me, what this error is meaning?
Is there an error in my code or in my configuration of openhab?