The doorbell is a magnetic solenoid that draws real current when it rings- like 200 mA or more. The doorbell camera has a small battery in it and draws less that 50 mA to trickle charge its battery. This trickle current isn't enough to pull in the doorbell. When the doorbell button is pushed, full current goes though the switch and rings the bell. In normal mode, the camera keeps it battery topped off and when it senses motion, it turns on, does it thing, talks over wifi etc. It then replenisheds it charge and sits idle.
LCD thermostats often work in a similar way. They need a little bit of power (very little). They have a small battery internally, in the past nicads but today more likely an alkaline (non rechargeable)- cadmium is a heavy metal and it didn't make sense to have 100 milliion thermostats entering the waste stream. They generally draw some current out of the signal loop (like the camera). They draw low enough power that they can rob some without activating the relay in the furnace. When they want to call for heat, they short out the lines and the relay closes. They use their battery while the thermostat is closed to stay litup, etc. With nest thermostats, etc, this has gotten less common but is still done.
There are a lot of industrial sensors that measure pressure, temps, etc and return data over an analog two wire current loops, usually 4-20 mA for zero to full scale. Their circuits run on the 4 ma and they shunt more current as the measured parameter changes. In industrial, its called "loop powered". In consumer, it usually called "phantom power". Just one of the many clever things you can do.