Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom tariff support #77

Closed
nyordanov opened this issue Apr 19, 2024 · 3 comments
Closed

Custom tariff support #77

nyordanov opened this issue Apr 19, 2024 · 3 comments
Assignees
Labels
api-limitation Not possible due to Ohme API limitations enhancement New feature or request

Comments

@nyordanov
Copy link

Is your feature request related to a problem? Please describe.

Ohme doesn't support Octopus Tracker, only their other tariffs, which means that I can't use the price cap feature.

Describe the solution you'd like

The Octopus integration already provides the current rate (octopus_energy_electricity_***_***_current_rate). Would it be possible to have the Ohme integration pull these values at midnight and update the £/kWh value in a custom tariff?

Describe alternatives you've considered

I have tried asking Ohme to add Octopus Tracker to their list of tariffs and they refused.

@nyordanov nyordanov added the enhancement New feature or request label Apr 19, 2024
@dan-r
Copy link
Owner

dan-r commented Apr 19, 2024

Unfortunately I don't think this would be possible without some cooperation from Ohme, as there doesn't seem to be a way to feed live information in for a custom tarrif.

My approach for automating it would be to delete all schedules so the charger is effectively always offering power, then make the following automations:

  1. Pause the charge as soon as you plug your car in
  2. Unpause the charge if the rate drops below your desired rate
  3. Pause the charge if the rate goes back above your 'cap'

Its not the most elegant solution but with the current state of the API, I can't see any other way.

@dan-r dan-r added the api-limitation Not possible due to Ohme API limitations label Apr 19, 2024
@andysmithfal
Copy link

My solution to this was to create a new custom tariff in the Ohme app, with two rates - one for 12:00-00:00, and another rate for 00:00-12:00. At 12:00, I would set the 00:00-12:00 rate to tomorrow's price, and the 12:00-00:00 rate to today's rate. That way when I plugged my car in (generally in the evening), it would start charging immediately if today's rate was cheaper, or wait til midnight if tomorrow was cheaper.

I did this using my own code, but the API calls were fairly straight forward - you just need to create a custom tariff (I did this in the Ohme app), then a call to /v1/users/me/currentTariffInfo to get the tariff IDs etc, then /v1/userDefinedElectricityTariffs?link=true to update it.

@jonathanadams
Copy link

My solution to this was to create a new custom tariff in the Ohme app, with two rates - one for 12:00-00:00, and another rate for 00:00-12:00. At 12:00, I would set the 00:00-12:00 rate to tomorrow's price, and the 12:00-00:00 rate to today's rate. That way when I plugged my car in (generally in the evening), it would start charging immediately if today's rate was cheaper, or wait til midnight if tomorrow was cheaper.

I did this using my own code, but the API calls were fairly straight forward - you just need to create a custom tariff (I did this in the Ohme app), then a call to /v1/users/me/currentTariffInfo to get the tariff IDs etc, then /v1/userDefinedElectricityTariffs?link=true to update it.

Are you willing to share your code for this?

@dan-r dan-r closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-limitation Not possible due to Ohme API limitations enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants