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

Enphase: support for sparse production.json #17948

Merged
merged 2 commits into from
Dec 29, 2024
Merged

Conversation

ivoks
Copy link
Contributor

@ivoks ivoks commented Dec 29, 2024

In some cases production.json does not list CT meters, not even as a disabled resource. To support that use case, we need to check the length of array before iterating on, potentially non-existing, keys.

Fix #17817

In some cases production.json does not list CT meters, not even as a disabled resource. To support that use case, we need to check the length of array before iterating on, potentially non-existing, keys.
@andig andig merged commit 4010d31 into evcc-io:master Dec 29, 2024
6 checks passed
@schtoiffe
Copy link

schtoiffe commented Jan 1, 2025

hello; I still have this error. Is it normal? should I do something?

[site ] DEBUG 2025/01/01 18:27:34 ----
[site ] DEBUG 2025/01/01 18:27:35 grid power: 761W
[site ] DEBUG 2025/01/01 18:27:35 grid currents: [3.7 2.96 0.82]A
[site ] ERROR 2025/01/01 18:27:36 pv 1 power: jq: empty result
[site ] DEBUG 2025/01/01 18:27:36 pv power: 0W
[site ] DEBUG 2025/01/01 18:27:36 site power: 761W

meters:

  • name: Ores
    type: template
    template: homewizard
    usage: grid
    host: 192------
    - name: Envoy
    type: template
    template: enphase
    usage: pv
    host: 192.--------
    token: eyJ---------

@ivoks
Copy link
Contributor Author

ivoks commented Jan 1, 2025

There was no release yet with the fix. Fix landed recently in master branch. Once there is a new release of evcc you'll get the fix.

@ivoks ivoks deleted the enphase-update branch January 3, 2025 09:44
jonilala796 pushed a commit to jonilala796/evcc that referenced this pull request Jan 3, 2025
In some cases production.json does not list CT meters, not even as a disabled resource. To support that use case, we need to check the length of array before iterating on, potentially non-existing, keys.
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

Successfully merging this pull request may close these issues.

enphase: energy and power empty
3 participants