I tried to use a rule from my oh2 setup in oh3, but nothing happens.
The rule should calculate a average temperature from all my sensors.
var Number C = BathroomFlatIndoor_Temperatur.state as DecimalType
var Number D = HauptIndoorModulFlatIndoor.state as DecimalType
var Number E = LivingareaFlatIndoor_Temperatur.state as DecimalType
var Number Z = C + D + E
var Number Y = Z / 3
postUpdate(home_temp, Y)
sendCommand(home_temp, Y)
also tried to give in the complete rule as a script
when
Item BathroomFlatIndoor_Temperatur received update or
Item HauptIndoorModulFlatIndoor received update or
Item LivingareaFlatIndoor_Temperatur received update or
System started
then
var Number C = BathroomFlatIndoor_Temperatur.state as DecimalType
var Number D = HauptIndoorModulFlatIndoor.state as DecimalType
var Number E = LivingareaFlatIndoor_Temperatur.state as DecimalType
var Number Z = C + D + E
var Number Y = Z / 3
postUpdate(home_temp, Y)
sendCommand(home_temp, Y)
end
What clues doesyour openhab.log give you? (starting with xxx.rules file loading or refreshed)
Please show us a complete rule.
Use logInfo to find out if your rule runs.
Use logInfo to find out what your Item states are.
Expect that binding updates may result in new Item types in use e.g. with units of measurement.