Entsoe error for Belgium: PT60M slots no longer available
Describe the bug
`site ] WARN 2024/10/06 08:26:28 planner: tariff not available: cannot create tariff type 'entsoe': no data for resolution: PT60M’
I got this error last night and the tariffs are blank in the planner. I assume it is an entsoe api error, as my Home Assistant entsoe is also not working, but in the afternoon it was working.
Question: Entsoe updates the tariffs around 14.00 LT, does EVCC save this values in the database? Is it possible to save the latest values and use them when the api is offline? (Instead of marking as unavailable)
Steps to reproduce
- Entsoe tariffs 2. 3. ...
Configuration details
/
Log details
[site ] WARN 2024/10/06 08:26:28 planner: tariff not available: cannot create tariff type 'entsoe': no data for resolution: PT60M
What type of operating system are you running?
Linux
Nightly build
- [X] I have verified that the issue is reproducible with the latest nightly build
Version
0.130.13
I can confirm I have exactly the same issue today.
Api issue, not evcc.
Yes It is an API error, but why does EVCC not remember the values?
Because its usually not required.
can we get more specific on the issue here so I can contact entsoe support?
I like to reopen the issue, as entsoe has made changes for Belgian users.
See the issue here:
Can you please share an API request (or config) and response for Belgium? Given evcc works in 60m slots right now the next question is how we should handle 15m slots: just take the first? use the average? or the maximum?
I will check tonight.
But there are no 15M slots in Belgium, and I have not read anywhere that this will implemented in the near future.
So we could use the first one (or average) for the time being.
I don't think it's limited to Belgium users. For Germany I also do have problems to get the prices, although with a different error message. Please see https://github.com/evcc-io/evcc/discussions/16539#discussioncomment-10865062
To my understanding EVCC requires an update because of entsoe API changes within the last week.
As a workaround I just switched to Fraunhofer.
This is an example request and response with some 15M data entries:
➜ curl https://web-api.tp.entsoe.eu/api\?securityToken\=<REDACTED>\&documentType\=A44\&out_Domain\=10YBE----------2\&in_Domain\=10YBE----------2\&periodStart\=202410060000\&periodEnd\=202410072300
<?xml version="1.0" encoding="utf-8"?>
<Publication_MarketDocument xmlns="urn:iec62325.351:tc57wg16:451-3:publicationdocument:7:3">
<mRID>64e2af3a87c2404cbea80edc067a1b6f</mRID>
<revisionNumber>1</revisionNumber>
<type>A44</type>
<sender_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</sender_MarketParticipant.mRID>
<sender_MarketParticipant.marketRole.type>A32</sender_MarketParticipant.marketRole.type>
<receiver_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</receiver_MarketParticipant.mRID>
<receiver_MarketParticipant.marketRole.type>A33</receiver_MarketParticipant.marketRole.type>
<createdDateTime>2024-10-07T14:36:40Z</createdDateTime>
<period.timeInterval>
<start>2024-10-05T22:00Z</start>
<end>2024-10-06T22:00Z</end>
</period.timeInterval>
<TimeSeries>
<mRID>1</mRID>
<auction.type>A01</auction.type>
<businessType>A62</businessType>
<in_Domain.mRID codingScheme="A01">10YBE----------2</in_Domain.mRID>
<out_Domain.mRID codingScheme="A01">10YBE----------2</out_Domain.mRID>
<contract_MarketAgreement.type>A01</contract_MarketAgreement.type>
<currency_Unit.name>EUR</currency_Unit.name>
<price_Measure_Unit.name>MWH</price_Measure_Unit.name>
<curveType>A03</curveType>
<Period>
<timeInterval>
<start>2024-10-05T22:00Z</start>
<end>2024-10-06T22:00Z</end>
</timeInterval>
<resolution>PT15M</resolution>
<Point>
<position>1</position>
<price.amount>55.35</price.amount>
</Point>
<Point>
<position>5</position>
<price.amount>44.22</price.amount>
</Point>
<Point>
<position>9</position>
<price.amount>40.32</price.amount>
</Point>
<Point>
<position>13</position>
<price.amount>31.86</price.amount>
</Point>
<Point>
<position>17</position>
<price.amount>28.37</price.amount>
</Point>
<Point>
<position>21</position>
<price.amount>28.71</price.amount>
</Point>
<Point>
<position>25</position>
<price.amount>31.75</price.amount>
</Point>
<Point>
<position>29</position>
<price.amount>35.47</price.amount>
</Point>
<Point>
<position>33</position>
<price.amount>37.8</price.amount>
</Point>
<Point>
<position>37</position>
<price.amount>33.31</price.amount>
</Point>
<Point>
<position>41</position>
<price.amount>33.79</price.amount>
</Point>
<Point>
<position>45</position>
<price.amount>16.68</price.amount>
</Point>
<Point>
<position>49</position>
<price.amount>5.25</price.amount>
</Point>
<Point>
<position>53</position>
<price.amount>-0.01</price.amount>
</Point>
<Point>
<position>61</position>
<price.amount>0.2</price.amount>
</Point>
<Point>
<position>65</position>
<price.amount>48.4</price.amount>
</Point>
<Point>
<position>69</position>
<price.amount>50.01</price.amount>
</Point>
<Point>
<position>73</position>
<price.amount>65.63</price.amount>
</Point>
<Point>
<position>77</position>
<price.amount>77.18</price.amount>
</Point>
<Point>
<position>81</position>
<price.amount>81.92</price.amount>
</Point>
<Point>
<position>85</position>
<price.amount>64.36</price.amount>
</Point>
<Point>
<position>89</position>
<price.amount>60.79</price.amount>
</Point>
<Point>
<position>93</position>
<price.amount>52.33</price.amount>
</Point>
</Period>
<Period>
<timeInterval>
<start>2024-10-06T22:00Z</start>
<end>2024-10-07T22:00Z</end>
</timeInterval>
<resolution>PT15M</resolution>
<Point>
<position>1</position>
<price.amount>34.58</price.amount>
</Point>
<Point>
<position>5</position>
<price.amount>35.34</price.amount>
</Point>
<Point>
<position>9</position>
<price.amount>33.25</price.amount>
</Point>
<Point>
<position>13</position>
<price.amount>29.48</price.amount>
</Point>
<Point>
<position>17</position>
<price.amount>31.88</price.amount>
</Point>
<Point>
<position>21</position>
<price.amount>41.35</price.amount>
</Point>
<Point>
<position>25</position>
<price.amount>57.14</price.amount>
</Point>
<Point>
<position>29</position>
<price.amount>91.84</price.amount>
</Point>
<Point>
<position>33</position>
<price.amount>108.32</price.amount>
</Point>
<Point>
<position>37</position>
<price.amount>91.8</price.amount>
</Point>
<Point>
<position>41</position>
<price.amount>66.05</price.amount>
</Point>
<Point>
<position>45</position>
<price.amount>60.21</price.amount>
</Point>
<Point>
<position>49</position>
<price.amount>56.02</price.amount>
</Point>
<Point>
<position>53</position>
<price.amount>43.29</price.amount>
</Point>
<Point>
<position>57</position>
<price.amount>55</price.amount>
</Point>
<Point>
<position>61</position>
<price.amount>57.6</price.amount>
</Point>
<Point>
<position>65</position>
<price.amount>81.16</price.amount>
</Point>
<Point>
<position>69</position>
<price.amount>104.54</price.amount>
</Point>
<Point>
<position>73</position>
<price.amount>159.2</price.amount>
</Point>
<Point>
<position>77</position>
<price.amount>149.41</price.amount>
</Point>
<Point>
<position>81</position>
<price.amount>121.49</price.amount>
</Point>
<Point>
<position>85</position>
<price.amount>90</price.amount>
</Point>
<Point>
<position>89</position>
<price.amount>90.44</price.amount>
</Point>
<Point>
<position>93</position>
<price.amount>77.18</price.amount>
</Point>
</Period>
<Period>
<timeInterval>
<start>2024-10-07T22:00Z</start>
<end>2024-10-08T22:00Z</end>
</timeInterval>
<resolution>PT60M</resolution>
<Point>
<position>1</position>
<price.amount>64.98</price.amount>
</Point>
<Point>
<position>2</position>
<price.amount>57.86</price.amount>
</Point>
<Point>
<position>3</position>
<price.amount>53.73</price.amount>
</Point>
<Point>
<position>4</position>
<price.amount>47.52</price.amount>
</Point>
<Point>
<position>5</position>
<price.amount>47.05</price.amount>
</Point>
<Point>
<position>6</position>
<price.amount>56.89</price.amount>
</Point>
<Point>
<position>7</position>
<price.amount>77.77</price.amount>
</Point>
<Point>
<position>8</position>
<price.amount>88.24</price.amount>
</Point>
<Point>
<position>9</position>
<price.amount>100</price.amount>
</Point>
<Point>
<position>10</position>
<price.amount>84.92</price.amount>
</Point>
<Point>
<position>11</position>
<price.amount>74.6</price.amount>
</Point>
<Point>
<position>12</position>
<price.amount>68.82</price.amount>
</Point>
<Point>
<position>13</position>
<price.amount>60.56</price.amount>
</Point>
<Point>
<position>14</position>
<price.amount>63.86</price.amount>
</Point>
<Point>
<position>15</position>
<price.amount>68.1</price.amount>
</Point>
<Point>
<position>16</position>
<price.amount>68.37</price.amount>
</Point>
<Point>
<position>17</position>
<price.amount>76.35</price.amount>
</Point>
<Point>
<position>18</position>
<price.amount>54.04</price.amount>
</Point>
<Point>
<position>19</position>
<price.amount>98.97</price.amount>
</Point>
<Point>
<position>20</position>
<price.amount>115.47</price.amount>
</Point>
<Point>
<position>21</position>
<price.amount>86.85</price.amount>
</Point>
<Point>
<position>22</position>
<price.amount>69.59</price.amount>
</Point>
<Point>
<position>23</position>
<price.amount>57.42</price.amount>
</Point>
<Point>
<position>24</position>
<price.amount>50</price.amount>
</Point>
</Period>
</TimeSeries>
</Publication_MarketDocument>
Notice that the 15M time intervals only give an update every 4 blocks, which actually results in "hourly" updates. The API states that if a certain point isn't supplied with CurveType A3, the previous block value is repeated for the missing block.
See page 10 of https://transparency.entsoe.eu/content/static_content/download?path=/Static%20content/knowledge%20base/entso-e-transparency-xml-schema-use-1-0.pdf&loggedUserIsPrivileged=false
Hope this helps.
Repost:
dear all, entsoe-py maintainer dropping in. Sorry to hear you had to build your own implementation due to pandas issue. please note that the SDAC is currently on hourly basis and the 15 min data from Belgium is a bug. For my own datalake I have added a hardcoded exception that resamples the belgium prices.
for the future it is important to note that the SDAC will go to 15 min resolution somewhere Q1 or Q2 2025. This means that you will need the 15 min parser eventually since ALL countries will swap their day ahead prices to that resolution at the same time.
So the belgian data is a bug. But the api response format from entso-e has changed with an update last friday. So a fix to parse the new format is still needed to get it back up and running for other countries.
A few differences with the old format:
- There are now multiple 'period' tags that contain points.
- If the price is the same as the previous point. This point won't be part of the xml. In the example you can see for 2024-10-08 that position 13 is missing. More information on the A3 curve type in this pdf page 14.
This is a valid response for Portugal:
<Publication_MarketDocument xmlns="urn:iec62325.351:tc57wg16:451-3:publicationdocument:7:3">
<mRID>df5f07320f074c369d60428641fed537</mRID>
<revisionNumber>1</revisionNumber>
<type>A44</type>
<sender_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</sender_MarketParticipant.mRID>
<sender_MarketParticipant.marketRole.type>A32</sender_MarketParticipant.marketRole.type>
<receiver_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</receiver_MarketParticipant.mRID>
<receiver_MarketParticipant.marketRole.type>A33</receiver_MarketParticipant.marketRole.type>
<createdDateTime>2024-10-07T16:18:12Z</createdDateTime>
<period.timeInterval>
<start>2024-10-06T22:00Z</start>
<end>2024-10-07T22:00Z</end>
</period.timeInterval>
<TimeSeries>
<mRID>1</mRID>
<auction.type>A01</auction.type>
<businessType>A62</businessType>
<in_Domain.mRID codingScheme="A01">10YPT-REN------W</in_Domain.mRID>
<out_Domain.mRID codingScheme="A01">10YPT-REN------W</out_Domain.mRID>
<contract_MarketAgreement.type>A01</contract_MarketAgreement.type>
<currency_Unit.name>EUR</currency_Unit.name>
<price_Measure_Unit.name>MWH</price_Measure_Unit.name>
<curveType>A03</curveType>
<Period>
<timeInterval>
<start>2024-10-06T22:00Z</start>
<end>2024-10-07T22:00Z</end>
</timeInterval>
<resolution>PT60M</resolution>
<Point>
<position>1</position>
<price.amount>65.08</price.amount>
</Point>
<Point>
<position>2</position>
<price.amount>46.34</price.amount>
</Point>
<Point>
<position>3</position>
<price.amount>40</price.amount>
</Point>
<Point>
<position>4</position>
<price.amount>30.1</price.amount>
</Point>
<Point>
<position>5</position>
<price.amount>29.97</price.amount>
</Point>
<Point>
<position>6</position>
<price.amount>30.1</price.amount>
</Point>
<Point>
<position>7</position>
<price.amount>52.02</price.amount>
</Point>
<Point>
<position>8</position>
<price.amount>84.5</price.amount>
</Point>
<Point>
<position>9</position>
<price.amount>108.32</price.amount>
</Point>
<Point>
<position>10</position>
<price.amount>91.75</price.amount>
</Point>
<Point>
<position>11</position>
<price.amount>65.98</price.amount>
</Point>
<Point>
<position>12</position>
<price.amount>56.01</price.amount>
</Point>
<Point>
<position>13</position>
<price.amount>44.71</price.amount>
</Point>
<Point>
<position>14</position>
<price.amount>30.1</price.amount>
</Point>
<Point>
<position>15</position>
<price.amount>27.08</price.amount>
</Point>
<Point>
<position>16</position>
<price.amount>26.83</price.amount>
</Point>
<Point>
<position>17</position>
<price.amount>30.25</price.amount>
</Point>
<Point>
<position>18</position>
<price.amount>50.24</price.amount>
</Point>
<Point>
<position>19</position>
<price.amount>68</price.amount>
</Point>
<Point>
<position>20</position>
<price.amount>73.61</price.amount>
</Point>
<Point>
<position>21</position>
<price.amount>85.01</price.amount>
</Point>
<Point>
<position>22</position>
<price.amount>67.73</price.amount>
</Point>
<Point>
<position>23</position>
<price.amount>65.8</price.amount>
</Point>
<Point>
<position>24</position>
<price.amount>61.39</price.amount>
</Point>
</Period>
<Period>
<timeInterval>
<start>2024-10-07T22:00Z</start>
<end>2024-10-08T22:00Z</end>
</timeInterval>
<resolution>PT60M</resolution>
<Point>
<position>1</position>
<price.amount>33.1</price.amount>
</Point>
<Point>
<position>2</position>
<price.amount>24.35</price.amount>
</Point>
<Point>
<position>3</position>
<price.amount>19.57</price.amount>
</Point>
<Point>
<position>4</position>
<price.amount>7</price.amount>
</Point>
<Point>
<position>5</position>
<price.amount>4.9</price.amount>
</Point>
<Point>
<position>6</position>
<price.amount>21.54</price.amount>
</Point>
<Point>
<position>7</position>
<price.amount>39.58</price.amount>
</Point>
<Point>
<position>8</position>
<price.amount>52.98</price.amount>
</Point>
<Point>
<position>9</position>
<price.amount>77.71</price.amount>
</Point>
<Point>
<position>10</position>
<price.amount>48.38</price.amount>
</Point>
<Point>
<position>11</position>
<price.amount>30.1</price.amount>
</Point>
<Point>
<position>12</position>
<price.amount>3.32</price.amount>
</Point>
<Point>
<position>14</position>
<price.amount>0.97</price.amount>
</Point>
<Point>
<position>15</position>
<price.amount>0.01</price.amount>
</Point>
<Point>
<position>16</position>
<price.amount>0</price.amount>
</Point>
<Point>
<position>17</position>
<price.amount>0.51</price.amount>
</Point>
<Point>
<position>18</position>
<price.amount>5</price.amount>
</Point>
<Point>
<position>19</position>
<price.amount>48.38</price.amount>
</Point>
<Point>
<position>20</position>
<price.amount>79.9</price.amount>
</Point>
<Point>
<position>21</position>
<price.amount>90</price.amount>
</Point>
<Point>
<position>22</position>
<price.amount>83.19</price.amount>
</Point>
<Point>
<position>23</position>
<price.amount>46.08</price.amount>
</Point>
<Point>
<position>24</position>
<price.amount>33.1</price.amount>
</Point>
</Period>
</TimeSeries>
</Publication_MarketDocument>
But the api response format from entso-e has changed with an update last friday.
Since the linked document s from 2022- is this change documented anywhere?
Maybe this helps: "All XML exports".... https://github.com/JaccoR/hass-entso-e/issues/184#issuecomment-2393716780
Did a quick test. BE is broken as per Ensoe's docs. PT works fine afaikt. So... what's the issue?
For Germany zone, I just switched back to entsoe, restarted the docker container and checked the GUI.
It is showing todays prices for tomorrow und no valid prices for now:
This is the entsoe response in trace log. Is maybe the splitting into 2 periods new, as @Roeland54 mentioned?
<Publication_MarketDocument xmlns="urn:iec62325.351:tc57wg16:451-3:publicationdocument:7:3">
<mRID>938364a9beb64bcb9a7a689d16385b01</mRID>
<revisionNumber>1</revisionNumber>
<type>A44</type>
<sender_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</sender_MarketParticipant.mRID>
<sender_MarketParticipant.marketRole.type>A32</sender_MarketParticipant.marketRole.type>
<receiver_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</receiver_MarketParticipant.mRID>
<receiver_MarketParticipant.marketRole.type>A33</receiver_MarketParticipant.marketRole.type>
<createdDateTime>2024-10-07T17:33:34Z</createdDateTime>
<period.timeInterval>
<start>2024-10-06T22:00Z</start>
<end>2024-10-07T22:00Z</end>
</period.timeInterval>
<TimeSeries>
<mRID>1</mRID>
<auction.type>A01</auction.type>
<businessType>A62</businessType>
<in_Domain.mRID codingScheme="A01">10Y1001A1001A82H</in_Domain.mRID>
<out_Domain.mRID codingScheme="A01">10Y1001A1001A82H</out_Domain.mRID>
<contract_MarketAgreement.type>A01</contract_MarketAgreement.type>
<currency_Unit.name>EUR</currency_Unit.name>
<price_Measure_Unit.name>MWH</price_Measure_Unit.name>
<classificationSequence_AttributeInstanceComponent.position>1</classificationSequence_AttributeInstanceComponent.position>
<curveType>A03</curveType>
<Period>
<timeInterval>
<start>2024-10-06T22:00Z</start>
<end>2024-10-07T22:00Z</end>
</timeInterval>
<resolution>PT60M</resolution>
<Point>
<position>1</position>
<price.amount>34.58</price.amount>
</Point>
<Point>
<position>2</position>
<price.amount>35.34</price.amount>
</Point>
<Point>
<position>3</position>
<price.amount>33.25</price.amount>
</Point>
<Point>
<position>4</position>
<price.amount>30.15</price.amount>
</Point>
<Point>
<position>5</position>
<price.amount>36.09</price.amount>
</Point>
<Point>
<position>6</position>
<price.amount>46.73</price.amount>
</Point>
<Point>
<position>7</position>
<price.amount>67.59</price.amount>
</Point>
<Point>
<position>8</position>
<price.amount>100.92</price.amount>
</Point>
<Point>
<position>9</position>
<price.amount>108.32</price.amount>
</Point>
<Point>
<position>10</position>
<price.amount>91.86</price.amount>
</Point>
<Point>
<position>11</position>
<price.amount>66.09</price.amount>
</Point>
<Point>
<position>12</position>
<price.amount>60.22</price.amount>
</Point>
<Point>
<position>13</position>
<price.amount>54.11</price.amount>
</Point>
<Point>
<position>14</position>
<price.amount>43.29</price.amount>
</Point>
<Point>
<position>15</position>
<price.amount>55</price.amount>
</Point>
<Point>
<position>16</position>
<price.amount>67.01</price.amount>
</Point>
<Point>
<position>17</position>
<price.amount>97.9</price.amount>
</Point>
<Point>
<position>18</position>
<price.amount>120.71</price.amount>
</Point>
<Point>
<position>19</position>
<price.amount>237.65</price.amount>
</Point>
<Point>
<position>20</position>
<price.amount>229.53</price.amount>
</Point>
<Point>
<position>21</position>
<price.amount>121.98</price.amount>
</Point>
<Point>
<position>22</position>
<price.amount>99.93</price.amount>
</Point>
<Point>
<position>23</position>
<price.amount>91.91</price.amount>
</Point>
<Point>
<position>24</position>
<price.amount>79.12</price.amount>
</Point>
</Period>
<Period>
<timeInterval>
<start>2024-10-07T22:00Z</start>
<end>2024-10-08T22:00Z</end>
</timeInterval>
<resolution>PT60M</resolution>
<Point>
<position>1</position>
<price.amount>72.33</price.amount>
</Point>
<Point>
<position>2</position>
<price.amount>67.07</price.amount>
</Point>
<Point>
<position>3</position>
<price.amount>63.99</price.amount>
</Point>
<Point>
<position>4</position>
<price.amount>59.67</price.amount>
</Point>
<Point>
<position>5</position>
<price.amount>59.69</price.amount>
</Point>
<Point>
<position>6</position>
<price.amount>67.43</price.amount>
</Point>
<Point>
<position>7</position>
<price.amount>85.97</price.amount>
</Point>
<Point>
<position>8</position>
<price.amount>110.37</price.amount>
</Point>
<Point>
<position>9</position>
<price.amount>106.24</price.amount>
</Point>
<Point>
<position>10</position>
<price.amount>85</price.amount>
</Point>
<Point>
<position>11</position>
<price.amount>80.33</price.amount>
</Point>
<Point>
<position>12</position>
<price.amount>80.5</price.amount>
</Point>
<Point>
<position>13</position>
<price.amount>76</price.amount>
</Point>
<Point>
<position>14</position>
<price.amount>82.53</price.amount>
</Point>
<Point>
<position>15</position>
<price.amount>88.39</price.amount>
</Point>
<Point>
<position>16</position>
<price.amount>90.08</price.amount>
</Point>
<Point>
<position>17</position>
<price.amount>101.19</price.amount>
</Point>
<Point>
<position>18</position>
<price.amount>126.34</price.amount>
</Point>
<Point>
<position>19</position>
<price.amount>156.77</price.amount>
</Point>
<Point>
<position>20</position>
<price.amount>168.2</price.amount>
</Point>
<Point>
<position>21</position>
<price.amount>114.41</price.amount>
</Point>
<Point>
<position>22</position>
<price.amount>94.9</price.amount>
</Point>```
This is the only official info on the changes which is quite useless because it is lacking an explanation the xml format changes.
But the response is definitely changed.
BZN|DE scheint nur für heute Daten zu haben, auch im XML. Für mich ist kein Fehler erkennbar.
Before the change to the ENTSO-E interface last week, the Day-Ahead prices [12.1.D] were delivered with curveType A01. These contained exactly one Period element per TimerSeries element, although the XML schema already allowed a list of Period elements per TimeSeries for curve type A01 as well.
With the change to curveType A03, the interface now supplies several Period elements per TimeSeries element. As this is not reflected in the entsoe model, only the last Period in a TimeSeries is read out by evcc.
As @Roeland54 already pointed out, curveType A03 only contains Points where price.amount has changed compared to the previous Point, whereas A01 contains all Points even in case the price.amount remains unchanged (see pdf chapter 4.3 page 14).
As this is not reflected in the entsoe model, only the last Period in a TimeSeries is read out by evcc.
I don‘t think so.