A distributor valve having an integrated flow meter unit, said distributor valve having a main flow channel, through which a medium can flow in a main flow direction, and a secondary flow channel that branches off from said main flow channel, - having a distributor valve housing containing - a main pipe (4.1) with a first pipeline connection (4.11), a second pipeline connection (4.12) and at least one branch (4.13) situated therebetween, the main flow channel running in the main pipe (4.1) from the first pipeline connection (4.11) to the second pipeline connection (4.12), - a first housing part (4.2) for accommodating at least one valve body, the first housing part (4.2) having a wall (4.22) with an opening (4.23), which forms an inlet (4.23) for the medium that can be branched off from the main pipe (4.1) at the branch (4.13), the branch (4.13) opening into the first housing part (4.2) and forming a fluid connection between the main pipe (4.1) and the first housing part (4.2), and the first housing part (4.2) having an outlet (4.21), and - a second housing part (4.3) for accommodating a flow meter body, - having the valve body, - having the flow meter body and - having a third pipeline connection (4.31), - the connection (4.21) of the first housing part (4.2) opening into the second housing part (4.3) and forming a fluid connection between the first housing part (4.2) and the second housing part (4.3), characterised in that - the second housing part (4.3) has an outlet (4.31), which forms the third pipeline connection (4.31), - the secondary flow channel runs from the branch (4.13) of the main pipe (4.1) to the outlet (4.31) of the second housing part (4.3), and - the branch (4.13) of the main pipe (4.1) is formed by an opening (4.13) in the main pipe (4.1), wherein the opening (4.13) in the main pipe (4.1) corresponds with the opening (4.23) of the first housing part (4.2) that forms the inlet, or - the branch (4.13) of the main pipe (4.1) is formed by an opening (4.13) in the main pipe (4.1) together with a pipeline piece, wherein the pipeline piece is provided between the opening (4.23) of the first housing part (4.2) that forms the inlet and the opening (4.13) in the main pipe (4.1) as a connection between the main pipe (4.1) and the first housing part (4.2). - having a distributor valve housing containing - a main pipe (4.1) with a first pipeline connection (4.11), a second pipeline connection (4.12) and at least one branch (4.13) situated therebetween, the main flow channel running in the main pipe (4.1) from the first pipeline connection (4.11) to the second pipeline connection (4.12), - a first housing part (4.2) for accommodating at least one valve body, the first housing part (4.2) having a wall (4.22) with an opening (4.23), which forms an inlet (4.23) for the medium that can be branched off from the main pipe (4.1) at the branch (4.13), the branch (4.13) opening into the first housing part (4.2) and forming a fluid connection between the main pipe (4.1) and the first housing part (4.2), and the first housing part (4.2) having an outlet (4.21), and - a second housing part (4.3) for accommodating a flow meter body, - a main pipe (4.1) with a first pipeline connection (4.11), a second pipeline connection (4.12) and at least one branch (4.13) situated therebetween, the main flow channel running in the main pipe (4.1) from the first pipeline connection (4.11) to the second pipeline connection (4.12), - a first housing part (4.2) for accommodating at least one valve body, the first housing part (4.2) having a wall (4.22) with an opening (4.23), which forms an inlet (4.23) for the medium that can be branched off from the main pipe (4.1) at the branch (4.13), the branch (4.13) opening into the first housing part (4.2) and forming a fluid connection between the main pipe (4.1) and the first housing part (4.2), and the first housing part (4.2) having an outlet (4.21), and - a second housing part (4.3) for accommodating a flow meter body, - having the valve body, - having the flow meter body and - having a third pipeline connection (4.31), - the connection (4.21) of the first housing part (4.2) opening into the second housing part (4.3) and forming a fluid connection between the first housing part (4.2) and the second housing part (4.3), - the second housing part (4.3) has an outlet (4.31), which forms the third pipeline connection (4.31), - the secondary flow channel runs from the branch (4.13) of the main pipe (4.1) to the outlet (4.31) of the second housing part (4.3), and - the branch (4.13) of the main pipe (4.1) is formed by an opening (4.13) in the main pipe (4.1), wherein the opening (4.13) in the main pipe (4.1) corresponds with the opening (4.23) of the first housing part (4.2) that forms the inlet, or - the branch (4.13) of the main pipe (4.1) is formed by an opening (4.13) in the main pipe (4.1) together with a pipeline piece, wherein the pipeline piece is provided between the opening (4.23) of the first housing part (4.2) that forms the inlet and the opening (4.13) in the main pipe (4.1) as a connection between the main pipe (4.1) and the first housing part (4.2).