Electricity prices for today and tomorrow with Nordpool #494
Replies: 5 comments 6 replies
-
Thanks for sharing! Let me only suggest using math instead of big ms numbers. It's easier to read if you ever need to tweak it:
|
Beta Was this translation helpful? Give feedback.
-
Hi.
The data ist correctly transmitted to home assistant. In home assistant the sensor state has the value of hour 00
any chance to manage this or can i change the data to achive this? |
Beta Was this translation helpful? Give feedback.
-
Hello. Thank you for the reply.
I have not found any suitable information in the Plotly Graph Card on GitHub "dbuezas/lovelace-plotly-graph-card". I want to be able to do that too. Unfortunately, my project is somewhat more complex as previously described. I control my Victron inverters via Node-RED. Among other things, I also use the Tibber data from the last few weeks. These processed Tibber data are then combined with the solar forecasts, which then lead to certain automatic control commands. I then prepare the Node-RED data separately for Home Assistant to then transfer them to Home Assistant via an "HTTP in" node. node-red function node:
home assistant tibber.yaml:
The "state" is unimportant, the important things are the attributes, "total", "time" and "category" which should influence the color of the "bar graph". I am now faced with the task of making this data accessible for the Plotly graph, which I am unable to do. This is partly due to the lack of documentation and I can't really interpret the numerous examples. To be honest, I don't really want a ready-made solution presented here - I want to understand how it works and how I can do things more easily and efficiently. Several small hints on how to achieve the graph would be very useful. If it's not a problem, we can stay in touch here and exchange ideas, if that's okay. Thank you for the support and best regards from Germany |
Beta Was this translation helpful? Give feedback.
-
This looks awesome! |
Beta Was this translation helpful? Give feedback.
-
Data produced with that integration is like this: I just left some out from the middle.. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was previously using ApexCharts and getting annoyed by bugs and performance issues, so I have decided to migrate to Plotly and I am very satisfied with how these came out.
I use Nordpool integration to obtain hourly electricity prices for today and tomorrow. I have two entities: one with buying prices (in which I add distribution fees, etc) and another with selling prices (basically the nordpool price minus a margin I pay to sell). I also wanted to plot the forecasted solar production during those days (which I obtain with a REST template sensor and Solar Forecast API).
My requirements for the graph were:
Obs: the solar forecast is barely visible in the image since it is now November in Finland 😅 . I wanted to keep the y scale fixed to the maximum capacity of my solar panels system.
The prices for the following day (tomorrow) are usually published only in the afternoon of the current day, so I have a visibility condition to hide tomorrow's card until the prices become available.
Here are the yamls:
Today's prices yaml
Tomorrow's prices yaml
For anyone wanting to integrate Solar Forecast in a graph and curious about how I integrated with the API, here's the REST template sensor configuration:
REST template sensor yaml
Beta Was this translation helpful? Give feedback.
All reactions