Any solution for measuring energy (gas/water/electricity)

For energy meter you can use Youless (at the IR interface) I think.

For gas meter you could use a reed sensor. Many meters have a magnet at one of the numbers (the one with a blank mirroring part).