T3m3z / spotprices2ha

Simple copy-paste approach to fetch data from api.spot-hinta.fi (see https://spot-hinta.fi) to Home Assistant. Includes simple sensors and UI elements to ease automation work.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Negative energy prices + vat

lakofsth opened this issue · comments

It appears that negative energy prices are not calculated correctly. From a quick look negative VAT is calculated so -0,20 becomes -0,25.

Re-opening as the issue still seems present
paste
paste (1)

Hi! The VAT calculations are done on the data source side (https://spot-hinta.fi). I asked from the maintainer of the data source site about this and he had already stumbled upon this question. Based on his research/discussions on other sites, the current calculation method is correct. He explained that the "negative VAT" has to be there or otherwise the "monthly bill" wouldn't match. I have no factual reason to believe otherwise so I'm going to close this issue. If you have some source indicating otherwise, please reopen this issue with a link to this source.