Help wanted to control Raspberry pi output with Maxcube thermostates and rules

You should read up a bit more on rules first.

Don’t know where you found that but it’s wrong.
You cannot use conditions but need to use triggers in “when” lines. See

so it would need to be something like

when
    Item WallmountedThermostatWoonkamerThermostaat_CurrentTemperature changed
    or
    Item WallmountedThermostatWoonkamerThermostaat_SetpointTemperature changed
then
    if (WallmountedThermostatWoonkamerThermostaat_SetpointTemperature.state >
    WallmountedThermostatWoonkamerThermostaat_CurrentTemperature.state)
         sendCommand(KETEL,ON)
end

But that’s just the basic most point. You’ll better use groups.
Check out this thread