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

Change to use Helpers in v1.4.4 #19

Open
TonyM1958 opened this issue Mar 20, 2024 · 0 comments
Open

Change to use Helpers in v1.4.4 #19

TonyM1958 opened this issue Mar 20, 2024 · 0 comments

Comments

@TonyM1958
Copy link
Owner

TonyM1958 commented Mar 20, 2024

Previous configurations required you to edit 'template.yaml' after installation to set values for 'Install Date', 'Battery Size' and optionally 'CT2 Handling' and 'Load Correction'.

This caused problems when the integration was updated through HACS as the values were over-written and set back to the default values.

From v1.4.4, these input values have been moved to Helpers. This requires the following lines to added to 'configuration.yaml':

# input values for configuring integration:
input_datetime:
  install_date:
    # install date for battery life calculation.
    name: Install Date
    has_date: true
    has_time: false
input_number:
  battery_size:
    # rated size of 1 battery for SoH calcuation.
    name: Battery Size
    mode: box
    max: 10
    min: 2
    step: 0.01
  ct2_handling:
    # how to use CT2
    name: CT2 Handling
    mode: box
    max: 3
    min: 0
  load_correction:
    # fix out of bounds load energy values
    name: Load Correction
    mode: box
    max: 429_496_729.5
    min: 0
    step: 0.1

After this change has been made and HA has restarted, the values can be configured through Helpers as described here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant