@GoTVm ,
-
You might want to look at
heater_generic.py
-
Example to get access to the heater bed, then you can get temperature from it.
printer.objects['heater_bed'].heater.smoothed_temp # can use .target_temp to get target
-
I wrote a Klippy extra tutorial that you might find helpful.
Keep in mind that Klippy extras are unsupported officially, hence the lack of official docs around them.