Hi, you need to check what it is said in the error message: Either the names of the passed variables are not correct or days_to_retrieve is larger than the recorded history of your sensor (check your recorder settings).
If that is the case, the system is just not able to fetch the correct data from Home Assistant, so check that to see if it solves the problem. Otherwise you can open a new issue on github so we can treat this there and leave this thread to its original subject