A gas valve for controlling a flow of gas to a burner of a combustion appliance, the gas valve comprising: a valve for controlling a flow of gas along a gas path; a valve actuator for modulating a position of the valve and thus modulating the flow of gas along the gas path ; a flow sensor for sensing a measure related to a flow rate of the flow of gas along the gas path; and a controller configured to: determine the position of the valve ; determine the flow rate of the flow of gas along the gas path based at least in part on the measure related to the flow rate of the flow of gas along the gas path received from the flow sensor ; determine when a desired flow rate of the flow of gas is provided by the valve to meet a current burner load of the combustion appliance, and when so, output a control signal to modulate the position of the valve to meet the current burner load of the combustion appliance; determine when the desired flow rate of the flow of gas is provided by the valve to only partially meet the current burner load of the combustion appliance even with the gas valve in a fully open position while still providing at least a predetermined minimum gas flow rate to the burner, and when so, output a control signal to modulate the position of the valve to partially meet the current burner load of the combustion appliance. a valve for controlling a flow of gas along a gas path; a valve actuator for modulating a position of the valve and thus modulating the flow of gas along the gas path ; a flow sensor for sensing a measure related to a flow rate of the flow of gas along the gas path; and a controller configured to: determine the position of the valve ; determine the flow rate of the flow of gas along the gas path based at least in part on the measure related to the flow rate of the flow of gas along the gas path received from the flow sensor ; determine when a desired flow rate of the flow of gas is provided by the valve to meet a current burner load of the combustion appliance, and when so, output a control signal to modulate the position of the valve to meet the current burner load of the combustion appliance; determine when the desired flow rate of the flow of gas is provided by the valve to only partially meet the current burner load of the combustion appliance even with the gas valve in a fully open position while still providing at least a predetermined minimum gas flow rate to the burner, and when so, output a control signal to modulate the position of the valve to partially meet the current burner load of the combustion appliance. determine the position of the valve ; determine the flow rate of the flow of gas along the gas path based at least in part on the measure related to the flow rate of the flow of gas along the gas path received from the flow sensor ; determine when a desired flow rate of the flow of gas is provided by the valve to meet a current burner load of the combustion appliance, and when so, output a control signal to modulate the position of the valve to meet the current burner load of the combustion appliance; determine when the desired flow rate of the flow of gas is provided by the valve to only partially meet the current burner load of the combustion appliance even with the gas valve in a fully open position while still providing at least a predetermined minimum gas flow rate to the burner, and when so, output a control signal to modulate the position of the valve to partially meet the current burner load of the combustion appliance. <EOS>