Giter Club home page Giter Club logo

Comments (3)

rnovacek avatar rnovacek commented on June 9, 2024

Median can be achieved by using Current Spot Electricity Hour Order. When it's value is <= 12 it's below the median, otherwise it's above it.

Or maybe I just don't understand the question :)

from homeassistant_cz_energy_spot_prices.

hipik634 avatar hipik634 commented on June 9, 2024

thanks, I have had issues with working with the hour order, i cannot correctly formulate the automation rules, because the values are in the attributes and i seem not to understand how to create a condition

  • condition: numeric_state
    entity_id: sensor.current_spot_electricity_price
    below: sensor.current_spot_electricity_hour_order //and here i would need to search for the attribute value //it looks like : "2023-11-02T12:00:00+01:00"

Can you please give an example, how to create one? something like when current spot price is bellow <12 . Sorry to bother you.

from homeassistant_cz_energy_spot_prices.

rnovacek avatar rnovacek commented on June 9, 2024

Sorry for late answer, I missed the notification for this comment.

Try something like this:

description: ""
mode: single
trigger:
  - platform: numeric_state
    entity_id:
      - sensor.current_spot_electricity_hour_order
    below: 12
condition: []
action: []

sensor.current_spot_electricity_hour_order is order of current hour when you sort all hours in a day by the price. So when value of this sensor is below 12, it means the price is below median.

from homeassistant_cz_energy_spot_prices.

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.