Skip to content
Discussion options

You must be logged in to vote

You can get the price per kWh using tibber.py, but you won't be able to get any information about your car charging status or how much it has charged over the past X hours using tibber.py (or the Tibber API) afaik. If you know the power (Wattage) of your car charger, and it's constant (ish) during charging, you can get the cost of charging by multiplying the current electricity price (in currency/kWh) with the wattage of the car charger (in kW) multiplied with the amount of time charged (in hours).

The current price can be found like this:

import tibber

account = tibber.Account("<tibber token>")

home = account.homes[0]  # Choose a home
subscription = home.subscriptions[0]  # Choose a su…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@fluxxsimon
Comment options

@ericbstie
Comment options

Answer selected by ericbstie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants