Template sensor to estimate power consumption of all Shellys

I would like to identify my shelly devices within a template sensor and add up the shellys own power consumption (not the power measured by the shelly!).

  • use the parent to identify all shellys
  • use the hardware to differentiate between gen1 / gen2 devices.
  • add up a basic power value of 1 Watt for ex.
  • for each relay, check if it’s active to increase the power consumption

I know this will be rough, but I have around 60 shellys in my house. Using this, I could get a roughly power usage of them.