dykanddk / home-assistant-config Goto Github PK
View Code? Open in Web Editor NEW🏠 Home Assistant Configuration & Documentation for my smart home using Node-RED for automations. Press ⭐ for notification of updates.
License: MIT License
🏠 Home Assistant Configuration & Documentation for my smart home using Node-RED for automations. Press ⭐ for notification of updates.
License: MIT License
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?
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 %}"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.