Adding energy intergrations in HA

https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

Also if all your rest sensors use the same resource you should use the REST integration rather than the sensor platform.

Ignore the crappy example and use the value_templates, not attributes.