Skip to content
Discussion options

You must be logged in to vote

Hi! Thanks for creating a discussion. I think this should do the trick:

import tibber

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

home = account.homes[0]  # Choose a home
subscription = home.subscriptions[0]  # Choose a subscription
price = subscription.price_info.current

The price variable is of type Price, so you can get the total price, tax, energy price without tax etc. like this:

print(price.total)
print(price.tax)
print(price.energy)
print(price.currency)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BeatsuDev
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