-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
[FEATURE REQUEST] Add a graph display screen #90
Comments
|
I support the idea! What about multiple graphs? The identifiers for the difference are already there. As an example, show different sensors under different conditions. |
I think it is also not difficult to realize, not to bind one chart ID in ehmtxv2 configuration, but to declare in ESPHome the necessary charts, and when calling a service or API to specify the necessary chart ID.
It is also possible to output it with an icon, but then it will be necessary to define the graph as 8x24 and pass the icon name when calling it.
Like:
|
|
@lubeda In case I have time and make changes for Pull Request, which branch is the best to do it based on? |
Hi, But I think drawing only charts from internal sensors is the wrong way. Sensors from the host should also be possible. I'm happy about every pull request, but I still will follow my "unwritten" design ideas. |
In the example above, the sensor is from HA.
It's understandable, if my ideas are bad, I don't have many options, go the parallel way, or use it personally. |
Hi @andrewjswan, your ideas aren't! You an trip5 are very creative in extending ehmtx to the next level. But e.g. in my use cases I like to display the rain forecast as graph. This data is only available on the host not on the ESP. Showing graphs "only" from the ESP is a step in the right direction, even perhaps the easiest way. Keep your creative up and share your ideas. |
Hi @lubeda !
You can do it, no problem. Declare the graph in the Esp, specify your sensor from HA in it, and display it. This is a simple way and it is not difficult to implement. I'm interested in deriving a barometric trend from the HA, and perhaps a temperature trend over a couple days. As it is done in the graph above (screenshot). |
PS: I have more ideas, but I'm nurturing them for now. |
See the 2023.9.0 branch and the wiki. The line color isn't working yet |
@lubeda @andrewjswan Is it possible to split the graph into parts by colors? And is it possible to add a dim fill parameter of the display below the line? As an example in the screenshot |
I moved the config, initially there was an error about "'duration' is a required option for [0].", the error disappeared when I added the parameter to graph. the sensor was taken from ha, after a while the graph begins to draw. But it feels like there is a void on the left (icon?) Is it possible to have multiple graphs with different displays? |
Not with the esphome graph, this looks nice but is quite complex to implement |
For the moment, only the esphome |
there is a display_graph parameter in the config: ehmtx_graph, is it possible to exclude it and create several ehmtx_graph graphs, then call the desired service by the graph id? |
It's a simple implementation, but it's still better to give the option to output multiple charts and graphs with an icon, but as an initial step, great!
ESPHome doesn't allow this yet, you have to open Issue in ESPHome, so far only one color per line. |
It is necessary to pass to the function the identifier of the chart, and by this identifier to set the screen identifier, if you also pass the icon identifier, it will be a universal variant, the icon identifier is passed, display it, no, do not display it. |
@lubeda break; missing in Graph - andrewjswan@f592629 |
For the full operation of the graph, it is not enough to get historical data from HA, at least for sensors from HA, internal sensors will be accumulative since it will be difficult to get history from HA. The simplest implementation is the last one, i.e. add an icon, everything else requires modernization of EspHoMaTriXv2 and ESPHome. |
@malinovsku Can you check? #108 |
I called the graph_screen service and as soon as it reaches the graph display, the esp restarts and the initial logo appears |
Hmmm, any Debug log? |
@lubeda @malinovsku To display more than one graph, it is necessary to make a mechanism similar to Icon, i.e. transfer the graph declaration to EspHoMaTriXv2 component, limit the number of graphs to 5 graphs, and display them according to the need, similar to Icon. This can be solved in this Issue, and we can open a new one. |
I'll probably close the Issue for now, and when we move to a new mechanism for creating screens, I'll open a new one. Or when I'm ready to make changes similar to Icons. |
Feature Request
Describe the solution / feature you'd like
Add a graph display screen, in the configuration we specify the graph, pass the graph ID to the EspHoMaTriXv2 component, and when needed, the user will call the graph screen display service, indicating its lifecycle and indicating the rebound time, perhaps another color.
The graph will be displayed on the screen from time to time.
Additional context
API:
Service
The text was updated successfully, but these errors were encountered: