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

[evcc] API change on duration channels #17485

Closed
MikeTheTux opened this issue Sep 29, 2024 · 0 comments · Fixed by #17528
Closed

[evcc] API change on duration channels #17485

MikeTheTux opened this issue Sep 29, 2024 · 0 comments · Fixed by #17528
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@MikeTheTux
Copy link
Contributor

MikeTheTux commented Sep 29, 2024

Since EVCC version 0.127.0 (evcc-io/evcc#13319) the EVCC Rest API duration states are in seconds instead of nanoseconds.

Current EVCC implementation still treats them as Nano-Seconds. E.g.:

        long chargeDuration = loadpoint.getChargeDuration();
        channel = new ChannelUID(uid, channelGroup, CHANNEL_LOADPOINT_CHARGE_DURATION);
        updateState(channel, new QuantityType<>(chargeDuration, MetricPrefix.NANO(Units.SECOND)));
@MikeTheTux MikeTheTux added the bug An unexpected problem or unintended behavior of an add-on label Sep 29, 2024
@jlaur jlaur linked a pull request Oct 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant