question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prices don't include government cap?

See original GitHub issue

Describe the bug

I’ve just switched to Octopus last week, and as a result am on “Flexible Octopus” (for now) which contractually showed as 52p per kWh, but due to the government cap is actually 34.23p per kWh. The Octopus app and website both show as 34.23p per kWh, but obviously the API does not, as this HA integration is showing 0.52074225 GBP/kWh

rate:  
value_exc_vat: 49.5945 
value_inc_vat: 52.074225 
valid_from: '2022-10-17T16:00:00+00:00' 
valid_to: '2022-10-17T16:30:00+00:00' 
tariff_code: E-1R-VAR-22-10-01-H  
is_export: false 
is_smart_meter: true

To Reproduce

Have a government capped tariff. Sorry! I assume this is unlikely to be an issue with the integration and an API issue instead, but I thought I’d check and/or wasn’t sure if you had a contact at Octopus rather than attempting to explain this to the standard customer support.

Expected behavior

The correct price is returned.

Home Assistant Version 2022.10.4

Integration Version v4.5.1

Fresh Install? Fresh install

Let me know if debug logs would help.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
BottlecapDavecommented, Oct 22, 2022

🤦

0reactions
caraar12345commented, Dec 2, 2022

Totally understandable. I’m more than happy to Guinea pig with a “basic” tariff if you need 😃

But by the looks of things - aside from the tariffs with 3 rates (day, night, standing etc) - it should largely match.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Price-Cap Regulation: Definition, How It Works, and Examples
A price-cap regulation is a form of economic regulation that establishes an upper limit on the prices that a utility provider can charge....
Read more >
Should the government control the price of food and gas? - CNN
They argue that capping prices encourages companies to produce less of a product, while making it more attractive to consumers. Supply goes ...
Read more >
Why Price Controls Should Stay in the History Books
If the government caps the price at which a monopolist may sell, it will sell a greater quantity at the lower price.
Read more >
Spike in Inflation Reignites Debate on Price Controls
By instituting temporary and product-specific price caps, the logic goes, the government could ensure that the poor don't end up getting gouged.
Read more >
The Case For Market-Based Price Caps - Health Affairs
Specifically, if the price cap is set high, it will affect only cases of clear excess pricing while allowing markets to function, albeit ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found