I made a sensor for the output of the shared wind-turbine or windmill from the Windcentrale, also called Winddeler. The wind-turbine is in my case called De Jonge Held, or short ‘djh’ in my code. For this wind turbine there are 10154 shares of which I own 3, hence the 3 * 10154 in the code to calculate the power. When you own shares in one of the other windmills you need to change the URL in the resource. I found mine here: https://github.com/damonnk/windcentrale/blob/0ff9239b2fe5d8ffc05ccbaa9b8bac09cba7796f/molens.xml however I had to change the 21 to 2 for de jonge held.
I would like to add the statistics to this sensor template, the statistics that came with the 2021.8 release (a few days ago when I am writing this). Anyone found out how to do this? I will try to find out, but if anyone knows, I would love to hear it how to add it.
[edit1]According to the docs I need to add “state_class: measurement”. However I get an error that state_class is an invalid option for sensor.template
[edit2] Found it, state_class needs to be inside attribute_templates. See example below.
Thanks for responding. Unfortunately I cant’t seem to get it to work. If I am correct, if configured correctly the item should directly be availiable as entity, you “only” have to wait for the statistics itself. However, whatever I try, I don’t see them as entity for the energy panel. Am I missing something?
Thank you for your good work. I’ve been trying to get the integration working for a while, but I’m running into 2 things.
in the configuration screen (where you enter your login details) it says that you can specify the number of wind parts. However, I don’t see the option to do that anywhere? Or does it automatically take over when you log in?
I would like to add the energy to my energy dashboard as supplied energy. However, I think I miss the sensor day compensation (sensor.de_bonte_hen_energy_compensation).
Am I overlooking something? Hope you can help me. Regards