I've got a proof of concept of this working:
https://i.imgur.com/nFpnxdh.png
I will try to make it a separate mod but I've not done any modding before so bear with me.
From factorissmo2 I have read that updating constant combinators from scripts is expensive, so instead I have a hidden chest inside the circuit depot, that gets connected to the connection point on the depot when the depot is placed down.
On update_contents I write the sum of all the items into the hidden chest, which then outputs to the circuit network as normal.
Is there a way to hide the chest -> depot wire? I am going to change the chest so its connection point is directly on top of the depot's but I don't know if there is a better way?
Absolutely any tips/criticism/advice is more than welcome, please.