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

Initial Import of Historical Data #101

Merged
merged 60 commits into from
Apr 23, 2023
Merged

Initial Import of Historical Data #101

merged 60 commits into from
Apr 23, 2023

Commits on Dec 31, 2022

  1. Proof of Concept for importing hourly consumption

    This imports the hourly consumption into the statistics entity.
    If the integration is set-up for the first time, the current meter
    reading is fetched and used as a baseline.
    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    cc5ce39 View commit details
    Browse the repository at this point in the history
  2. fix crash for non-aware datetime

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    6b524f7 View commit details
    Browse the repository at this point in the history
  3. fix another crash for non-aware datetime

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    9c5eb88 View commit details
    Browse the repository at this point in the history
  4. ignore dates from before the start date

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    543a594 View commit details
    Browse the repository at this point in the history
  5. some improvements, remove initial meter reading for now

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    39acebb View commit details
    Browse the repository at this point in the history
  6. logger does not support format style (yet)

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    afece42 View commit details
    Browse the repository at this point in the history
  7. improve the timezone handling

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    9bd0078 View commit details
    Browse the repository at this point in the history
  8. for good measure, lets fetch more data

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    928e55c View commit details
    Browse the repository at this point in the history
  9. check if opt-in was given for data

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    9db9b89 View commit details
    Browse the repository at this point in the history
  10. typo

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    4310a80 View commit details
    Browse the repository at this point in the history
  11. increase the iterations to fetch a full month

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    5734988 View commit details
    Browse the repository at this point in the history
  12. use format strings

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    e54c590 View commit details
    Browse the repository at this point in the history
  13. simplify the API functions for collecting one day of data

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    bb4d28a View commit details
    Browse the repository at this point in the history
  14. reflect change in changed API

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    aed1fd9 View commit details
    Browse the repository at this point in the history
  15. more thoughts on None values

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    8771422 View commit details
    Browse the repository at this point in the history
  16. makes setting the state a difference?

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    ae8ecab View commit details
    Browse the repository at this point in the history
  17. check for exception when accessing zählpunkte

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    0ef1e29 View commit details
    Browse the repository at this point in the history
  18. use translate_dict to parse verbrauch

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    c978b20 View commit details
    Browse the repository at this point in the history
  19. optimize loop

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    2cc0515 View commit details
    Browse the repository at this point in the history
  20. small optimization to not parse all entries

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    69fee5d View commit details
    Browse the repository at this point in the history
  21. generate entity_id in a proper way

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    98e3b38 View commit details
    Browse the repository at this point in the history
  22. simplify date lookup

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    ee41db1 View commit details
    Browse the repository at this point in the history
  23. bit of cleanup

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    7c6f354 View commit details
    Browse the repository at this point in the history
  24. datetime check has to be there

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    c899428 View commit details
    Browse the repository at this point in the history
  25. fix for core 2022.12

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    a10763c View commit details
    Browse the repository at this point in the history
  26. more fixes for 2022.12

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    e83d908 View commit details
    Browse the repository at this point in the history
  27. error handling, cosmetic changes

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    c882e5d View commit details
    Browse the repository at this point in the history
  28. use current date instead of start for sensor update

    Sebastian Bachmann authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    3b32b66 View commit details
    Browse the repository at this point in the history
  29. adding extra debug line

    reox authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    f389b45 View commit details
    Browse the repository at this point in the history
  30. add dependency to recorder

    reox authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    8f3fec1 View commit details
    Browse the repository at this point in the history
  31. document requirements

    reox authored and DarwinsBuddy committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    e3b109b View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2023

  1. remove some obsolete functions

    Sebastian Bachmann committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    2078f59 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2023

  1. Merge branch 'main' into f/statistics

    Sebastian Bachmann committed Jan 21, 2023
    Configuration menu
    Copy the full SHA
    6f59b71 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'origin/main' into f/statistics

    Sebastian Bachmann committed Jan 21, 2023
    Configuration menu
    Copy the full SHA
    52f5cc8 View commit details
    Browse the repository at this point in the history
  3. variable rename

    Sebastian Bachmann committed Jan 21, 2023
    Configuration menu
    Copy the full SHA
    54d364e View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2023

  1. Configuration menu
    Copy the full SHA
    17e9051 View commit details
    Browse the repository at this point in the history
  2. print the next expected update

    Sebastian Bachmann committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    342f4d1 View commit details
    Browse the repository at this point in the history
  3. subtract the right stuff

    Sebastian Bachmann committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    6dbecda View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2023

  1. correcting delta_t check

    Sebastian Bachmann committed Jan 28, 2023
    Configuration menu
    Copy the full SHA
    885450d View commit details
    Browse the repository at this point in the history
  2. oops that was actually the wrong function

    Sebastian Bachmann committed Jan 28, 2023
    Configuration menu
    Copy the full SHA
    6009670 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2023

  1. work around fuzzy return type

    Sebastian Bachmann committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    721c503 View commit details
    Browse the repository at this point in the history
  2. add debug line

    Sebastian Bachmann committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    94ea7f8 View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/main' into f/statistics

    Sebastian Bachmann committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    33757ba View commit details
    Browse the repository at this point in the history
  4. import was changed

    Sebastian Bachmann committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    05365db View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2023

  1. enhancement(statistics-sensor): Move statistics sensor to separate en…

    …tity
    
    Increase scan interval to 60 minutes
    DarwinsBuddy committed Apr 1, 2023
    Configuration menu
    Copy the full SHA
    4701938 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2023

  1. remove unused code

    Sebastian Bachmann committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    1fb330c View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2023

  1. Implementing fetching of historical data

    This queries the API to get all historical results of the past three
    years when the sensor is first setup.
    reox committed Apr 8, 2023
    Configuration menu
    Copy the full SHA
    15014e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fb64777 View commit details
    Browse the repository at this point in the history
  3. slightly faster key loading

    reox committed Apr 8, 2023
    Configuration menu
    Copy the full SHA
    17e7968 View commit details
    Browse the repository at this point in the history
  4. chore(timeout-handling): Add warning to log when request to API times…

    … out
    
    Replace f-formatting by lazy formatting in various debug msgs
    DarwinsBuddy committed Apr 8, 2023
    Configuration menu
    Copy the full SHA
    bc3d2d9 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2023

  1. Configuration menu
    Copy the full SHA
    59bd6df View commit details
    Browse the repository at this point in the history
  2. Merge branch 'f/initial_import' of github.com:DarwinsBuddy/WienerNetz…

    …eSmartmeter into f/initial_import
    reox committed Apr 9, 2023
    Configuration menu
    Copy the full SHA
    f1c0b86 View commit details
    Browse the repository at this point in the history
  3. resolve most flake8 warnings

    reox committed Apr 9, 2023
    Configuration menu
    Copy the full SHA
    e5fe5f8 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'main' into f/initial_import

    # Conflicts:
    #	custom_components/wnsm/api/client.py
    #	custom_components/wnsm/sensor.py
    DarwinsBuddy committed Apr 9, 2023
    Configuration menu
    Copy the full SHA
    1e7628b View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2023

  1. Configuration menu
    Copy the full SHA
    9928872 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f94a68f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    141f06e View commit details
    Browse the repository at this point in the history
  4. Merge branch 'f/initial_import' of github.com:DarwinsBuddy/WienerNetz…

    …eSmartmeter into f/initial_import
    reox committed Apr 10, 2023
    Configuration menu
    Copy the full SHA
    606f0d4 View commit details
    Browse the repository at this point in the history
  5. merge mistake

    reox committed Apr 10, 2023
    Configuration menu
    Copy the full SHA
    81d7ba5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3f2db14 View commit details
    Browse the repository at this point in the history