Typescript rewrite with colour bubbles, energy_flow_diagramm and threshold
I corrected some bugs, added a few tests and added 3 features:
- Threshold, now there is a config variable to define from which point on W is to be converted in kW
- energy flow diagramm style makes the circles disappear and does not animate the card, the flow is shown with a thicker line
- now you can make the house and appliances have the colour of the generation or battery when they are getting the energy from any of them