Giter Site home page Giter Site logo

dykanddk / home-assistant-config Goto Github PK

View Code? Open in Web Editor NEW
56.0 56.0 7.0 50.69 MB

🏠 Home Assistant Configuration & Documentation for my smart home using Node-RED for automations. Press ⭐ for notification of updates.

License: MIT License

Python 35.54% JavaScript 64.46%
automation home-assistant home-assistant-config home-automation homeassistant node-red smart-home

home-assistant-config's People

Contributors

dykanddk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

home-assistant-config's Issues

energy_predictions.yaml | entity duplicate

Hey

As promised.

in energy_prediction.yaml on GH you are showing carnot & nordpool but you're referencing the same entity twice. (sensor.elpriser_excl_afgifter)

furthermore you reference nordpool which is configured to show inclusive of VAT but 'grønnere elforbrug' and carnot (which is energi data service as far as i can tell) are both without VAT etc.

another thing.. how are you getting nordpool & EDS/carnot to show data from today & tomorrow.. for me it shows as attached image.
I've added EDS with VAT which is why 'grønnere ..' is quite different in the chart.

Why have you decided to show without VAT etc?

image

energy predictions | carnot

hey

energy_predictions.yaml
I had to change the code to match langauge (I use english)

but more importantly the data generator didn't fit:

  var data = entity.attributes.prognose.map((start, index) => {
    return [new Date(start["date"]).getTime(), entity.attributes.prognose[index]["value"]/1000];

I had to change the above to

  var data = entity.attributes.predictions.map((start, index) => {
    return [new Date(start["dktime"]).getTime(), entity.attributes.predictions[index]["prediction"]/1000];

because the rest-sensor returns dktime, utctime as the time placeholder and predition holds the price.
my rest sensor looks like this:

- platform: rest resource: https://whale-app-dquqw.ondigitalocean.app/openapi/get_predict name: elprognose_carnotdk scan_interval: 3600 headers: Accept: application/json apikey: !secret carnotdk_token username: !secret carnotdk_username params: daysahead: 7 energysource: spotprice region: dk1 json_attributes: - predictions value_template: "{% if value_json is not none %}OK {{value_json.predictions[0].addedtime}}{% else %}Unavailable{% endif %}"

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.