Giter Site home page Giter Site logo

Comments (14)

loedeman avatar loedeman commented on August 18, 2024 4

I created a PR for this issue ;-). #28

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024 2

It's released πŸ˜‰

Tnx @loedeman for the fix

from home-assistant-zonneplan-one.

loedeman avatar loedeman commented on August 18, 2024 1

Apologies to hijack this topic but:

@loedeman how did you manage those graphs? I’ve been poking around for weeks to get something like that. Would you mind sharing your yaml?

Hi @lenwar sure, here are the YAMLs for the Lovelace components:

type: custom:apexcharts-card
experimental:
  color_threshold: true
apex_config:
  legend:
    show: false
header:
  show: true
  title: Elektriciteitsprijs komende 8 uur
  standard_format: true
graph_span: 8h
span:
  offset: +8h
yaxis:
  - decimals: 2
series:
  - entity: sensor.zonneplan_forcast_tariff_hour_8
    name: Forecast
    curve: stepline
    float_precision: 2
    offset: '-8h'
    show:
      offset_in_name: false
    color_threshold:
      - value: -1
        color: green
      - value: 0.2
        color: green
      - value: 0.3
        color: orange
      - value: 0.4
        color: red

... and ...

type: custom:apexcharts-card
experimental:
  color_threshold: true
apex_config:
  legend:
    show: false
header:
  show: true
  show_states: true
graph_span: 168h
yaxis:
  - id: elec
    decimals: 2
  - id: gas
    opposite: true
    decimals: 2
series:
  - entity: sensor.zonneplan_current_electricity_tariff
    name: Elektriciteitsprijs
    yaxis_id: elec
    curve: stepline
    stroke_width: 2
    float_precision: 2
    color_threshold:
      - value: -1
        color: green
      - value: 0.2
        color: green
      - value: 0.3
        color: orange
      - value: 0.4
        color: red
    show:
      header_color_threshold: true
  - entity: sensor.zonneplan_current_gas_tariff
    name: Gasprijs
    yaxis_id: gas
    curve: stepline
    opacity: 0.7
    stroke_width: 3
    float_precision: 2
    fill_raw: last
    color_threshold:
      - value: 0
        color: green
      - value: 0.75
        color: green
      - value: 1
        color: blue
      - value: 1.5
        color: gray
    show:
      header_color_threshold: true

from home-assistant-zonneplan-one.

loedeman avatar loedeman commented on August 18, 2024

3C27C6B7-2109-481B-8353-E5BD8A5E98D7
872AEB0C-5853-421F-8E04-A97BA41762B9
CC6FD6C5-BB2B-4269-A8E4-161A41A966BE

from home-assistant-zonneplan-one.

loedeman avatar loedeman commented on August 18, 2024

Dit is de JSON van de uurprijzen API call. Er staan 57 items in de lijst (en hij begint nu idd met 24 uur geleden :-) )...
Zonneplan hourly rates.txt

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024

Tnx for the pr

Can you also verify this gives the expected values in the morning (before 13.00)? See also #22 (comment)

from home-assistant-zonneplan-one.

loedeman avatar loedeman commented on August 18, 2024

I will look into that when I wake up tomorrow πŸ˜‰! Will keep you posted!

from home-assistant-zonneplan-one.

loedeman avatar loedeman commented on August 18, 2024

Just checked, the fix also works for the morning (before 1PM). Have a look at the current price data...
Zonneplan hourly rates (before 1PM).txt

from home-assistant-zonneplan-one.

nl0pvm avatar nl0pvm commented on August 18, 2024

I know this is open source but.... it would be nice if this is released ASAP. As currently all zonneplan API dependent integrations are broken and switching based on yesterday's price data :P

from home-assistant-zonneplan-one.

loedeman avatar loedeman commented on August 18, 2024

I know this is open source but.... it would be nice if this is released ASAP. As currently all zonneplan API dependent integrations are broken and switching based on yesterday's price data :P

I could not agree more - patience is a real virtue though πŸ˜€. It should just be a push of the button, isn’t it?

from home-assistant-zonneplan-one.

lenwar avatar lenwar commented on August 18, 2024

Apologies to hijack this topic but:

@loedeman how did you manage those graphs? I’ve been poking around for weeks to get something like that. Would you mind sharing your yaml?

from home-assistant-zonneplan-one.

lenwar avatar lenwar commented on August 18, 2024

Wow, that simple... Thanks!! :)

from home-assistant-zonneplan-one.

lenwar avatar lenwar commented on August 18, 2024

@loedeman
Just a small FYI: I noticed that I had to change the offset to +7 as the values were one hour off in comparison to the Zonneplan app.

from home-assistant-zonneplan-one.

loedeman avatar loedeman commented on August 18, 2024

@lenwar As far as I can see, not in my install :-) . But happy for you if that fixes things at your end ;-) .

from home-assistant-zonneplan-one.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.