erlendsellie / priceanalyzer

Priceanalyzer for Home Assistant, based on Nordpool Prices.
64 stars 5 forks source link

The Apex chart boost column for PriceAnalyzer Temperature Correction is not showing #23

Closed overas closed 1 year ago

overas commented 1 year ago

I am using the PriceAnalyzer Temperature Correction from the wiki page and the boost column is not showing up any more.

image

The apex chart data generator draw up the column when the attribute "temperature_correction" > 0.

    data_generator: |
      let today =  entity.attributes.raw_today.map((entry) => {
        return [new Date(entry.start), ((entry.temperature_correction > 0 ? 1 : 0) * 10000)];
      });
      if(entity.attributes.tomorrow_valid) {

        let tomorrow = entity.attributes.raw_tomorrow.map((entry) => {
          return [new Date(entry.start), ((entry.temperature_correction > 0 ? 1 : 0) * 10000)];
        });
        return today.concat(tomorrow);
      }
      return today;  

Today the nordpool raw_today and raw_tomorrow data shows every hour with temperature_correction: 0 image

Maybe this is a temporary problem because the price data is not changing enough.

Version of the custom_component

Priceanalyzer 1.2 ## Homeassistant version Home Assistant 2023.1.7 ## Configuration ```yaml Add your logs here. ``` ## Describe the bug A clear and concise description of what the bug is. ## Debug log

Add your logs here.
overas commented 1 year ago

The boost column was generated today. Because of this I close the case.