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

[tibber] Add time series support for Tibber prices #16275

Merged
merged 12 commits into from Jan 15, 2024

Conversation

soenkekueper
Copy link
Contributor

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.

Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
@soenkekueper soenkekueper added the enhancement An enhancement or new feature for an existing add-on label Jan 13, 2024
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Copy link
Contributor

@jlaur jlaur left a 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.

- 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>
Copy link
Contributor

@jlaur jlaur left a 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.

@jlaur jlaur changed the title [tibber] Added timeseries support for tibber prices. [tibber] Add time series support for Tibber prices Jan 14, 2024
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>
Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM.

Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
@soenkekueper
Copy link
Contributor Author

I've rasied a PR to add the tibber icon in docs, as it is missing:
openhab/openhab-docs#2212

Copy link
Contributor

@jlaur jlaur left a 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.

@kjoglum
Copy link
Contributor

kjoglum commented Jan 15, 2024

Looks ok to me.

@jlaur
Copy link
Contributor

jlaur commented Jan 15, 2024

Looks ok to me.

Thanks for checking, let's merge then.

@jlaur jlaur merged commit deb423e into openhab:main Jan 15, 2024
3 checks passed
@jlaur jlaur added this to the 4.2 milestone Jan 15, 2024
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Jan 27, 2024
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants