OH3: number of lights turned on (badge)

That’s actually “by design”.
See Item - Equipment or Point - #7 by ysc (and 2 posts above).
If you have properties directly under the location, they will be considered exclusively, so that you can exclude certain points from being considered. If you have no candidates at the room level, the ones under equipment groups will be considered. What you could do is take the Wohnzimmer Tischlampe 1/2 (Switch/Light points) and them to the location group too as explained in Item - Equipment or Point - #5 by ysc.