Giter Site home page Giter Site logo

Comments (14)

graafish avatar graafish commented on August 18, 2024 1

I added a sensor to my system to fix the gap and it works with the energy dashboard.
But would be nice if it's done within the integration.

- sensor:
    - name: "zonneplan current gas tariff fix"
      unit_of_measurement: "EUR/m³"
      state: >-
        {% if is_state('sensor.zonneplan_current_gas_tariff', 'unknown') or is_state('sensor.zonneplan_current_gas_tariff', '0') %}
          {{ states('sensor.zonneplan_current_gas_tariff_fix') }}
        {% else %}
          {{ states('sensor.zonneplan_current_gas_tariff') }}
        {% endif %}`

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024 1

Released a new version with the feature https://github.com/fsaris/home-assistant-zonneplan-one/releases/tag/0.0.13

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024

Need to check the exact API response for this.

Could be there is no value at all between 0h and 4h.

I'm not buying energy from Zonneplan. But if you are sure what the "rules" are regarding the price and when it's applicable it should be possible to build this in the integration

from home-assistant-zonneplan-one.

loedeman avatar loedeman commented on August 18, 2024

It is the same in the Zonneplan app. The gas price should remain the same until the next day price takes effect. This is not at 12AM but at 6AM CET.

This is an excerpt from the documentation for TTF Day Ahead: The Day-Ahead contract (DA) is a strip of a single gas day from the next weekday at 06:00 (CET) to 06:00 (CET) on the following calendar day.
Source: https://www.theice.com/products/45436633/Dutch-TTF-Natural-Gas-Daily-Futures

from home-assistant-zonneplan-one.

loedeman avatar loedeman commented on August 18, 2024

Nice workaround, thanks!

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024

Do we know if the value is none or 0 during the night?
Looks that this change isn't correct a27ab2a that should have prevented it from going to 0. Or we really got 0 from the api

And only fixing this isn't enough right? It should also update at 6h instead of 4h

from home-assistant-zonneplan-one.

graafish avatar graafish commented on August 18, 2024

My solution was a quick fix. I thought the value was 0 because that's what showing in the graph.
Didn't know the price starts at 6am so if it does it needs a fix too.
Nice you're looking into this.

from home-assistant-zonneplan-one.

wishmaster1984 avatar wishmaster1984 commented on August 18, 2024

Would be great if this can be fixed. Thanks Frans for all your great work.

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024

Okay, in current master the 0 values are gone during 0:00 and +/- 4:00.

Currently looking into only updating the gas tariff once a day at 6:00

from home-assistant-zonneplan-one.

loedeman avatar loedeman commented on August 18, 2024

Wow, sounds great 👍!

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024

Current main version updates the gas tariff once a day at 6

from home-assistant-zonneplan-one.

loedeman avatar loedeman commented on August 18, 2024

Sounds great, thanks. I just changed the HACS repo to main, hope to see the new behavior tomorrow 😀👍!

from home-assistant-zonneplan-one.

loedeman avatar loedeman commented on August 18, 2024

Thanks! I had some trouble reproducing it because I rebooted HA at the wrong time 🤗. But confirming it works indeed, nice!!!

from home-assistant-zonneplan-one.

renslinden avatar renslinden commented on August 18, 2024

Looks good, thank you for the effort @fsaris!

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.