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

Manual meter readings (non-smart meters) #1060

Open
2 tasks done
andrewpwade opened this issue Nov 4, 2024 · 2 comments
Open
2 tasks done

Manual meter readings (non-smart meters) #1060

andrewpwade opened this issue Nov 4, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request external contributions welcome The feature has been accepted and the criteria has been defined More demand needed A feature that will be considered if there is more demand

Comments

@andrewpwade
Copy link

Describe the feature

The API appears to provide access to meter readings that you submit manually. This could be useful just to track and graph in HomeAssistant.

I'm an experienced developer proficient in Python and could develop this feature if it's desired.

Expected behaviour

Manual meter readings tracked by this software

Use Case

I do not have a smart meter, but I would still like to track and graph my usage.

Confirmation

  • By submitting this feature request, you agree that you have read the documentation and confirmed it does not already exist
  • I am willing/able to help contribute to the solution of this feature
@andrewpwade andrewpwade added the enhancement New feature or request label Nov 4, 2024
@BottlecapDave
Copy link
Owner

BottlecapDave commented Nov 8, 2024

Hello and thanks for the feature request. This hasn't been a high priority as most people that use this integration have a smart meter. I'm not sure when I'll get to it, but you're more than welcome to submit a pull request if you'd like to contribute a solution. The requirements I'd expect would be

  • Update to API client to get latest reading for electricity/gas
  • Integration test for the above call
  • Coordinator per electricity/gas meter to obtain the latest reading and return the results. This should follow the current pattern with retries/fallbacks if the information cannot be retrieved. Data should be retrieved at a rate of once every 6 hours (as the data doesn't change too often)
  • New sensor, disabled by default, which displays the latest reading with correct unit of measurement. Unique id should be octopus_energy_electricity_{self._serial_number}_{self._mpan}_last_manual_reading. For gas, there should be one in m3 and one in kwh which should be calculated where appropriate (similar to accumulative consumption). Sensors should include an attribute with the timestamp that the meter reading was captured (as this would probably be useful for automations/reminders).
  • Unit tests for coordinator and any new functions required for above sensor to function
  • Update to docs to include information on new sensor(s).

@BottlecapDave BottlecapDave added external contributions welcome The feature has been accepted and the criteria has been defined More demand needed A feature that will be considered if there is more demand labels Nov 8, 2024
@strodgers
Copy link

@andrewpwade I'd also love this feature and happy to work on it, has anything been done yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request external contributions welcome The feature has been accepted and the criteria has been defined More demand needed A feature that will be considered if there is more demand
Projects
None yet
Development

No branches or pull requests

3 participants