Controlling boiler from valve position

To expand, this Group has no type or function to give it a state
So, in the rule,
if(HeaterValveGroup.state > 0)
no meaning.

As @H102 says, give type and function. MIN would do as well, here.

Weeeee it works, im so thankfull, hope I can contribute some day :slight_smile:

Ill save a lot of KW and m3 gas, because of theese lines :slight_smile:

rule "Boiler Start/Stop"
when
  Member of HeaterValveGroup changed
then
  if(HeaterValveGroup.state > 0) {
    BoilerAndCirculation.sendCommand(ON)
  }
else {
   BoilerAndCirculation.sendCommand(OFF)
}
end
Group:Number:AVG   HeaterValveGroup       "Radiator Ventil Position"        (HeaterValveGroup)

Weeeee it works, im so thankfull, hope I can contribute some day :slight_smile:

Ill save a lot of KW and m3 gas, because of theese lines :slight_smile:

rule "Boiler Start/Stop"
when
  Member of HeaterValveGroup changed
then
  if(HeaterValveGroup.state > 0) {
    BoilerAndCirculation.sendCommand(ON)
  }
else {
   BoilerAndCirculation.sendCommand(OFF)
}
end
Group:Number:AVG   HeaterValveGroup       "Radiator Ventil Position"        (HeaterValveGroup)

Glad you have it working and look forward to some future community contributions. :+1:

Please click the square box on post that provided the solution to mark the topic as solved.

Thanks