NEWS
Jarvis 3.1.8 - zukünftige Strompreise - Skalierung, Farben
-
@MCU keine Ahnung, ob der Fehler in der Konsole damit zu tun hat
-
@mike42 Fehler gefunden, muss ihn nur noch beheben. Weiß noch nicht wie. Dauert ein wenig.
Hängt mit dem ersten Farbelement zusammen., wenn lte kleiner als max-Wert (15) definiert ist, läuft es. Bei dir ist jetzt 0.17 eingetragen. -
habe jetzt auf 0.15 gewechselt:
[ { "gt": 0, "lte": 0.15, "color": "palegreen" }, { "gt": 0.15, "lte": 0.22, "color": "mediumseagreen" }, { "gt": 0.22, "lte": 0.29, "color": "khaki" }, { "gt": 0.29, "lte": 0.33, "color": "orange" }, { "gt": 0.33, "color": "red" } ]
funktioniert aber immer noch nicht....
Korrektur, Script neu gestartet... geht doch -
@mike42 v1.0.23, sollte jetzt auch mit 0.17 funktionieren.
-
-
@mike42 v1.0.24 -< Umstellung auf Linie Problem behoben
-
@MCU
Moin MCU, ich hoffe das Thema passt hier rein:
Ich habe von deiner Homepage das Script "tibberNext2Cheapest v1.0.1" entdeckt.
Leider spuckt dieses zwei Fehler aus sobald ich "Startcalc" drücke und die erstellten DPs werden nicht gefüllt.Kannst du dein Script mal aktualisieren oder mir Fehler aufzeigen?
// ****************************** // tibberNext2Cheapest v1.0.1 // ****************************** // Copyright ©MCU // v1.0.1 - numHours - Anzahl der zusammenhängenden Stunden eingeführt let tibberdataDP = '0_userdata.0.Meine_Datenpunkte.Tibber' let cheapestNext2HoursDP = tibberdataDP + '.cheapestNext2Hours'; let cheapestNext2StartTSDP = tibberdataDP + '.cheapestNext2StartTS'; let cheapestNext2StartDP = tibberdataDP + '.cheapestNext2Start'; let cheapestSearchAreaDP = tibberdataDP + '.cheapestArea'; let startDP = tibberdataDP + '.startCalc'; let numHoursDP = tibberdataDP + '.numHours'; createStateAsync(cheapestNext2HoursDP, {read: true, write: false, name: "Günstigsten 2 Stunden im gewählten Bereich", desc:"Günstige-Stunden-DP", type: "string", role: "", def: "[]" }); createStateAsync(cheapestNext2StartTSDP, {read: true, write: false, name: "Start [TS] der nächsten günstigen 2 Stunden", desc:"Start-DP", type: "number", role: "", def: 0 }); createStateAsync(cheapestNext2StartDP, {read: true, write: false, name: "Start [Text] der nächsten günstigen 2 Stunden", desc:"Start-DP", type: "string", role: "", def: 0 }); createStateAsync(cheapestSearchAreaDP, {read: true, write: true, name: "Bereich für Suche in [h]", desc:"Bereich-DP", type: "number", role: "",unit:"Std.", def: 10 }); createStateAsync(startDP, {read: true, write: true, name: "Berechnung starten", desc:"Start-DP", type: "boolean", role: "button", def: false }); createStateAsync(numHoursDP, {read: true, write: true, name: "Anzahl der zusammenhängenden Stunde [h]", desc:"Anzahl Stunden-DP", type: "number", role: "",unit:"Std.", def: 2 }); let nowHour = new Date().getHours(); let tibberInst = '0'; let scheduleId ; if(getState(startDP).val){ scheduleId = schedule('00 * * * *', () => { getCheapest(); }) } on({id: cheapestSearchAreaDP, change: "any"}, function (obj) { getCheapest(); }); on({id: numHoursDP, change: "any"}, function (obj) { getCheapest(); }); on({id: startDP, change: "any"}, function (obj) { let value = obj.state.val; if(value){ getCheapest(); setState(startDP,false) } }); function getCheapest(){ let priceArr = ['PricesToday','PricesTomorrow']; let tibberData = []; let searchHours = getState(cheapestSearchAreaDP).val; for(let x=0;x< priceArr.length;x++){ let tibberLink = $('tibberlink.'+tibberInst+'.Homes.*.'+priceArr[x]+'.json') if(tibberLink[0] != undefined){ let tblLevel = levelObject(tibberLink[0]); let dpLeveltbl = getDPLevel(tblLevel,4); let tibberJSON = JSON.parse(getState(dpLeveltbl+'.json').val); // tibberJSON for(let i=0;i<tibberJSON.length;i++){ let obj = {}; obj.hour = parseInt(tibberJSON[i].startsAt.substring(11,13)); obj.start = tibberJSON[i].startsAt obj.startTS = new Date(obj.start).getTime(); obj.value = tibberJSON[i].total; tibberData.push(obj); } } } // log(tibberData) let cheapest = findCheapestHoursChange(tibberData.slice(nowHour+1,nowHour+1+searchHours),getState(numHoursDP).val); // log(cheapest) setState(cheapestNext2HoursDP,JSON.stringify(cheapest)); setState(cheapestNext2StartTSDP,cheapest[0].startTS); setState(cheapestNext2StartDP,formatDate(cheapest[0].startTS,'DD.MM.YYYY hh:mm:ss')); } function findCheapestHoursChange(data, numHours) { if (numHours < 1 || numHours > data.length) { console.error("Invalid number of hours"); return []; } let minPrice = Infinity; let result = []; for (let i = 0; i < data.length - numHours + 1; i++) { let priceSum = 0; const currentHours = data.slice(i, i + numHours); for (const hour of currentHours) { priceSum += hour.value; } if (priceSum < minPrice) { minPrice = priceSum; result = currentHours; } } return result; } function findCheapestHours(data) { let minPrice = Infinity; let result = []; for (let i = 0; i < data.length - 1; i++) { const priceSum = data[i].value + data[i + 1].value; if (priceSum < minPrice) { minPrice = priceSum; result = [data[i], data[i + 1]]; } } return result; }
17:32:53.574 info javascript.0 (8885) Start javascript script.js.common.Energie.Tibber_Guenstigste_Stunden 17:32:53.606 info javascript.0 (8885) script.js.common.Energie.Tibber_Guenstigste_Stunden: registered 3 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions 17:33:12.309 info javascript.0 (8885) Stop script script.js.common.Energie.Tibber_Guenstigste_Stunden 17:33:12.411 info javascript.0 (8885) Start javascript script.js.common.Energie.Tibber_Guenstigste_Stunden 17:33:12.428 info javascript.0 (8885) script.js.common.Energie.Tibber_Guenstigste_Stunden: registered 3 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions 17:34:34.678 error javascript.0 (8885) at getCheapest (script.js.common.Energie.Tibber_Guenstigste_Stunden:56:28) 17:34:34.678 error javascript.0 (8885) at Object.<anonymous> (script.js.common.Energie.Tibber_Guenstigste_Stunden:42:9)
Besten Dank
-
@maas-meister Stell mal bitte die aktuellen Tibber-Daten rein. Ich habe kein Tibber.
Was steht bei Dir in zeile 56?Zeig mal Deine Objekte
-
Zeile 56:
let tblLevel = levelObject(tibberLink[0]);Daten sind zu viele um diese zu einzufügen
[{"total":0.1331,"energy":0,"tax":0.1331,"startsAt":"2023-12-26T00:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1331,"energy":0,"tax":0.1331,"startsAt":"2023-12-26T01:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.133,"energy":-0.0001,"tax":0.1331,"startsAt":"2023-12-26T02:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.13,"energy":-0.0027,"tax":0.1327,"startsAt":"2023-12-26T03:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1287,"energy":-0.0037,"tax":0.1324,"startsAt":"2023-12-26T04:00:00.000+01:00","currency":"EUR","level":"CHEAP"},{"total":0.1309,"energy":-0.0018,"tax":0.1327,"startsAt":"2023-12-26T05:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1315,"energy":-0.0013,"tax":0.1328,"startsAt":"2023-12-26T06:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.132,"energy":-0.0009,"tax":0.1329,"startsAt":"2023-12-26T07:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1319,"energy":-0.001,"tax":0.1329,"startsAt":"2023-12-26T08:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.133,"energy":-0.0001,"tax":0.1331,"startsAt":"2023-12-26T09:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1331,"energy":-0.0001,"tax":0.1332,"startsAt":"2023-12-26T10:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1331,"energy":0,"tax":0.1331,"startsAt":"2023-12-26T11:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1331,"energy":0,"tax":0.1331,"startsAt":"2023-12-26T12:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1331,"energy":0,"tax":0.1331,"startsAt":"2023-12-26T13:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1338,"energy":0.0006,"tax":0.1332,"startsAt":"2023-12-26T14:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1451,"energy":0.01,"tax":0.1351,"startsAt":"2023-12-26T15:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1895,"energy":0.0473,"tax":0.1422,"startsAt":"2023-12-26T16:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1962,"energy":0.053,"tax":0.1432,"startsAt":"2023-12-26T17:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.197,"energy":0.0537,"tax":0.1433,"startsAt":"2023-12-26T18:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.1963,"energy":0.053,"tax":0.1433,"startsAt":"2023-12-26T19:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.1918,"energy":0.0493,"tax":0.1425,"startsAt":"2023-12-26T20:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1854,"energy":0.044,"tax":0.1414,"startsAt":"2023-12-26T21:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1886,"energy":0.0466,"tax":0.142,"startsAt":"2023-12-26T22:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1965,"energy":0.0533,"tax":0.1432,"startsAt":"2023-12-26T23:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"}]
[{"total":0.1823,"energy":0.0414,"tax":0.1409,"startsAt":"2023-12-27T00:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1951,"energy":0.0521,"tax":0.143,"startsAt":"2023-12-27T01:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.2017,"energy":0.0576,"tax":0.1441,"startsAt":"2023-12-27T02:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.1946,"energy":0.0516,"tax":0.143,"startsAt":"2023-12-27T03:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1924,"energy":0.0498,"tax":0.1426,"startsAt":"2023-12-27T04:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1998,"energy":0.056,"tax":0.1438,"startsAt":"2023-12-27T05:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.2106,"energy":0.0651,"tax":0.1455,"startsAt":"2023-12-27T06:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2253,"energy":0.0774,"tax":0.1479,"startsAt":"2023-12-27T07:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2316,"energy":0.0827,"tax":0.1489,"startsAt":"2023-12-27T08:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.229,"energy":0.0806,"tax":0.1484,"startsAt":"2023-12-27T09:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2226,"energy":0.0752,"tax":0.1474,"startsAt":"2023-12-27T10:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.222,"energy":0.0747,"tax":0.1473,"startsAt":"2023-12-27T11:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2209,"energy":0.0738,"tax":0.1471,"startsAt":"2023-12-27T12:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2187,"energy":0.0719,"tax":0.1468,"startsAt":"2023-12-27T13:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2208,"energy":0.0736,"tax":0.1472,"startsAt":"2023-12-27T14:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2283,"energy":0.08,"tax":0.1483,"startsAt":"2023-12-27T15:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2281,"energy":0.0798,"tax":0.1483,"startsAt":"2023-12-27T16:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2287,"energy":0.0803,"tax":0.1484,"startsAt":"2023-12-27T17:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2216,"energy":0.0744,"tax":0.1472,"startsAt":"2023-12-27T18:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.2103,"energy":0.0648,"tax":0.1455,"startsAt":"2023-12-27T19:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1983,"energy":0.0547,"tax":0.1436,"startsAt":"2023-12-27T20:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1626,"energy":0.0247,"tax":0.1379,"startsAt":"2023-12-27T21:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1534,"energy":0.017,"tax":0.1364,"startsAt":"2023-12-27T22:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1331,"energy":0,"tax":0.1331,"startsAt":"2023-12-27T23:00:00.000+01:00","currency":"EUR","level":"CHEAP"}]
-
@maas-meister Da kommt bei mir kein Fehler.
Welche javascript Version?
Tibberlink ist so aufgebaut?
Instanz 0?
-
Version:
v7.1.6Kann es sein dass ich das "xyz" mit meiner ID ersetzen muss? Würde ja Sinn ergeben.
Finde aber leider im Script nicht wo das hinterlegt ist -
@maas-meister Das sucht er sich automatisch. Du nutzt aber Instanz 0?
Setz mal ein log dazwischen
-
-
@maas-meister Sieht korrekt aus
-
@mcu sagte in Jarvis 3.1.8 - zukünftige Strompreise - Skalierung, Farben:
@maas-meister Das sucht er sich automatisch. Du nutzt aber Instanz 0?
Setz mal ein log dazwischen
mit Log der selbe Fehler .. sehr komisch
Edit:
Gerade gesehen das die ID drin stand .. mist! -
@maas-meister Raus nehmen
Post bearbeiten und das LOG raus. Sofort.
Hast du schon mal das System neu gestartet?
Irgendwas stimmt nicht, da er ja tibberLink[0] hat und der Wert stimmt.
Es könnte auch am javascript liegen, glaube ich aber weniger. -
Ohne Erfolg
Es gibt auch noch diese Datenpunkte bei Today und Tomorrow:
tibberlink.0.Homes.XXX.PricesToday.jsonBYpriceASC
[{"total":0.1287,"energy":-0.0037,"tax":0.1324,"startsAt":"2023-12-26T04:00:00.000+01:00","currency":"EUR","level":"CHEAP"},{"total":0.13,"energy":-0.0027,"tax":0.1327,"startsAt":"2023-12-26T03:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1309,"energy":-0.0018,"tax":0.1327,"startsAt":"2023-12-26T05:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1315,"energy":-0.0013,"tax":0.1328,"startsAt":"2023-12-26T06:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1319,"energy":-0.001,"tax":0.1329,"startsAt":"2023-12-26T08:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.132,"energy":-0.0009,"tax":0.1329,"startsAt":"2023-12-26T07:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.133,"energy":-0.0001,"tax":0.1331,"startsAt":"2023-12-26T02:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.133,"energy":-0.0001,"tax":0.1331,"startsAt":"2023-12-26T09:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1331,"energy":0,"tax":0.1331,"startsAt":"2023-12-26T00:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1331,"energy":0,"tax":0.1331,"startsAt":"2023-12-26T01:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1331,"energy":-0.0001,"tax":0.1332,"startsAt":"2023-12-26T10:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1331,"energy":0,"tax":0.1331,"startsAt":"2023-12-26T11:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1331,"energy":0,"tax":0.1331,"startsAt":"2023-12-26T12:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1331,"energy":0,"tax":0.1331,"startsAt":"2023-12-26T13:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1338,"energy":0.0006,"tax":0.1332,"startsAt":"2023-12-26T14:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1451,"energy":0.01,"tax":0.1351,"startsAt":"2023-12-26T15:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1854,"energy":0.044,"tax":0.1414,"startsAt":"2023-12-26T21:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1886,"energy":0.0466,"tax":0.142,"startsAt":"2023-12-26T22:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1895,"energy":0.0473,"tax":0.1422,"startsAt":"2023-12-26T16:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1918,"energy":0.0493,"tax":0.1425,"startsAt":"2023-12-26T20:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1962,"energy":0.053,"tax":0.1432,"startsAt":"2023-12-26T17:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.1963,"energy":0.053,"tax":0.1433,"startsAt":"2023-12-26T19:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.1965,"energy":0.0533,"tax":0.1432,"startsAt":"2023-12-26T23:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.197,"energy":0.0537,"tax":0.1433,"startsAt":"2023-12-26T18:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"}]
tibberlink.0.Homes.XXX.PricesTomorrow.jsonBYpriceASC
[{"total":0.1331,"energy":0,"tax":0.1331,"startsAt":"2023-12-27T23:00:00.000+01:00","currency":"EUR","level":"CHEAP"},{"total":0.1534,"energy":0.017,"tax":0.1364,"startsAt":"2023-12-27T22:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1626,"energy":0.0247,"tax":0.1379,"startsAt":"2023-12-27T21:00:00.000+01:00","currency":"EUR","level":"NORMAL"},{"total":0.1823,"energy":0.0414,"tax":0.1409,"startsAt":"2023-12-27T00:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1924,"energy":0.0498,"tax":0.1426,"startsAt":"2023-12-27T04:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1946,"energy":0.0516,"tax":0.143,"startsAt":"2023-12-27T03:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1951,"energy":0.0521,"tax":0.143,"startsAt":"2023-12-27T01:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1983,"energy":0.0547,"tax":0.1436,"startsAt":"2023-12-27T20:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.1998,"energy":0.056,"tax":0.1438,"startsAt":"2023-12-27T05:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.2017,"energy":0.0576,"tax":0.1441,"startsAt":"2023-12-27T02:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2103,"energy":0.0648,"tax":0.1455,"startsAt":"2023-12-27T19:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.2106,"energy":0.0651,"tax":0.1455,"startsAt":"2023-12-27T06:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2187,"energy":0.0719,"tax":0.1468,"startsAt":"2023-12-27T13:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2208,"energy":0.0736,"tax":0.1472,"startsAt":"2023-12-27T14:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2209,"energy":0.0738,"tax":0.1471,"startsAt":"2023-12-27T12:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2216,"energy":0.0744,"tax":0.1472,"startsAt":"2023-12-27T18:00:00.000+01:00","currency":"EUR","level":"EXPENSIVE"},{"total":0.222,"energy":0.0747,"tax":0.1473,"startsAt":"2023-12-27T11:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2226,"energy":0.0752,"tax":0.1474,"startsAt":"2023-12-27T10:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2253,"energy":0.0774,"tax":0.1479,"startsAt":"2023-12-27T07:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2281,"energy":0.0798,"tax":0.1483,"startsAt":"2023-12-27T16:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2283,"energy":0.08,"tax":0.1483,"startsAt":"2023-12-27T15:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2287,"energy":0.0803,"tax":0.1484,"startsAt":"2023-12-27T17:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.229,"energy":0.0806,"tax":0.1484,"startsAt":"2023-12-27T09:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"},{"total":0.2316,"energy":0.0827,"tax":0.1489,"startsAt":"2023-12-27T08:00:00.000+01:00","currency":"EUR","level":"VERY_EXPENSIVE"}]
Hilft dir das?
Ansonsten klappt es leider nicht bei mir und ich muss ohne Leben
-
@maas-meister Die DPs werden gar nicht genutzt. Haben den gleichen Aufbau. Sind nur nach Preis sortiert.
javascript-Adapter updaten? -
LÄUFT!
Hab dein Script mal ohne meine DP Zuweisung genommen .. läuft
Kann es sein, dass die "tibberdataDP" in meine ID ändern muss?let tibberdataDP = '0_userdata.0.Meine_Datenpunkte.Tibber' let cheapestNext2HoursDP = tibberdataDP + '.cheapestNext2Hours'; let cheapestNext2StartTSDP = tibberdataDP + '.cheapestNext2StartTS'; let cheapestNext2StartDP = tibberdataDP + '.cheapestNext2Start'; let cheapestSearchAreaDP = tibberdataDP + '.cheapestArea'; let startDP = tibberdataDP + '.startCalc'; let numHoursDP = tibberdataDP + '.numHours';
Dankeschön für deine Zeit, Hilfe und Einsatz !!!!!!!!!!!!!!!!!!!!!!!!!-
-
hat evtl jemand eine vorlage die so in der Art ist wie diese?