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
[tibber] Add time series support for Tibber prices #16275
Conversation
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding time series support! I have added a few quick comments.
....binding.tibber/src/main/java/org/openhab/binding/tibber/internal/handler/TibberHandler.java
Outdated
Show resolved
Hide resolved
....binding.tibber/src/main/java/org/openhab/binding/tibber/internal/handler/TibberHandler.java
Outdated
Show resolved
Hide resolved
....binding.tibber/src/main/java/org/openhab/binding/tibber/internal/handler/TibberHandler.java
Outdated
Show resolved
Hide resolved
- extracted method for time series mapping - used ZonedDateTime.parse Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates. I have provided some additional feedback.
....binding.tibber/src/main/java/org/openhab/binding/tibber/internal/handler/TibberHandler.java
Outdated
Show resolved
Hide resolved
....binding.tibber/src/main/java/org/openhab/binding/tibber/internal/handler/TibberHandler.java
Outdated
Show resolved
Hide resolved
....binding.tibber/src/main/java/org/openhab/binding/tibber/internal/handler/TibberHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM.
....binding.tibber/src/main/java/org/openhab/binding/tibber/internal/handler/TibberHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
I've rasied a PR to add the tibber icon in docs, as it is missing: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I'll give @kjoglum a chance to have a look as well.
Looks ok to me. |
Thanks for checking, let's merge then. |
Signed-off-by: Sönke Küper <soenkekueper@gmx.de> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
This PR addeds time series support for future tibber prices to openhab.
The values, that are currenty served as json data, are parsed and served as time series for the current total costs channel.