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

Graph widget to show historical data #4601

Closed

Conversation

ivorsmorenburg
Copy link
Contributor

Summary

Adds Graph Widget to make possible see historical data

Screenshots

#1529 (comment)

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#

Any other notes

#1529

Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

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

Hi @ivorsmorenburg

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@home-assistant
Copy link

home-assistant bot commented Sep 1, 2024

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@home-assistant home-assistant bot marked this pull request as draft September 1, 2024 20:16
@ivorsmorenburg ivorsmorenburg changed the title Here is a simple Graph to show historical data, which adds a feature … Here is a simple Graph to show historical data Widget Graph Sep 1, 2024
@ivorsmorenburg ivorsmorenburg marked this pull request as ready for review September 1, 2024 20:17
@jpelgrom jpelgrom linked an issue Sep 1, 2024 that may be closed by this pull request
@jpelgrom jpelgrom changed the title Here is a simple Graph to show historical data Widget Graph Graph widget to show historical data Sep 1, 2024
Database Improvements
Database Improvements
…/issue-1529

# Conflicts:
#	app/src/main/java/io/homeassistant/companion/android/settings/widgets/ManageWidgetsViewModel.kt
Database Improvements
@bgoncal
Copy link
Member

bgoncal commented Sep 3, 2024

Hi Ivor, can you add a small video demo the functionality?

Copy link
Member

@bgoncal bgoncal left a comment

Choose a reason for hiding this comment

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

Any tests we could add for it?

@home-assistant home-assistant bot marked this pull request as draft September 3, 2024 12:31
@ivorsmorenburg
Copy link
Contributor Author

Any tests we could add for it?

Yes we could but I didn't see that as an requirement for the 4 hours test. I want to optimise this piece of code before it gets merged.

@ivorsmorenburg
Copy link
Contributor Author

Hi Ivor, can you add a small video demo the functionality?

This is the video example of an MVP for the GraphWidget

graphwidget_mvp_example.mp4

@dshokouhi
Copy link
Member

@ivorsmorenburg can you please add some screenshots of the configuration page so we can see what options the user needs to use? For example I can see the code contains stuff related to entity attributes but I am not sure if those are even used in the graph?

@ivorsmorenburg
Copy link
Contributor Author

@ivorsmorenburg can you please add some screenshots of the configuration page so we can see what options the user needs to use? For example I can see the code contains stuff related to entity attributes but I am not sure if those are even used in the graph?

Yes you are correct, right now is just an MVP, the UI Config Screen is the Entity UI Screen.

I'll work on it no worries : ) I have big plans for the UI

@dshokouhi
Copy link
Member

ok thanks for confirming :) sometimes when a PR is in draft its tough to tell how much to look and comment 🙈 I will go ahead and look at the generated APK for now until you feel the code is ready to look at :)

Copy link
Member

@dshokouhi dshokouhi left a comment

Choose a reason for hiding this comment

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

Thing are coming along well! The updated graph looks well and the axis now shows time as expected. Nice touch to add the steps like the HA graphs!

image

Looks like there are still a few open comments and also there are now 2 different names for the widget? 🙈

common/src/main/res/values/strings.xml Show resolved Hide resolved
@home-assistant home-assistant bot marked this pull request as draft September 10, 2024 16:16
@ivorsmorenburg ivorsmorenburg marked this pull request as ready for review September 12, 2024 09:16
@dshokouhi
Copy link
Member

@ivorsmorenburg this PR has a lot going on with just the logic for Graph Widget alone and I dont think a lot of that we can escape. There are other things done in this PR that are touching other widgets thats making this a bit difficult to not only review but also test and make sure the other widgets are still fine. Can you please split up the refactoring of the other widgets so we can review it separately and make the review of this PR easier? That should help cut down on the amount of files touched and make this PR easier to review. We can review that PR before this one as I think you may have some dependencies on it.

@ivorsmorenburg ivorsmorenburg deleted the feature/issue-1529 branch September 16, 2024 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Widget for sensor history time series
4 participants