I have 3 energy identities that I want to combine. For this I created a sensor template in the configuration.yaml. This usually works, but sometimes a value (state) is created that is incorrect. You can’t see this in the normal dashboard but the energy dashboard is going crazy.
The dips are when your sources go unavailable or unknown, which typically happen when HA restarts or if the sensor(s) drop off your network momentarily. You should account for this by making an availability template for your template entity.
availability: >
{{ 'sensor.shellypmminig3_ecda3bc46ae0_energy' | has_value and 'sensor.shellypmmini_543204a97e18_energy' | has_value and 'sensor.shellypmminig3_ecda3bc46afc_energy' | has_value }}