ottopaulsen / node-red-contrib-power-saver

A Node-RED node to saver money by turning off when the power is most expensive
Other
70 stars 17 forks source link

Forcing Max Price as the absolute max price, still no values from lowest price (schedule) #193

Open europer opened 7 months ago

europer commented 7 months ago

Hei Otto, nice Nodes and using it for charging my 2x16kWh batt storage when the prices in tibber is on a min. I also did programm a manuell maxprice and I did test it when I was mile away from the max price in tibber, still it did not take all prices. I had 12 time serial from the array from tiber, did put the 8hrsOn (less then 12hrs) and maxprice was above the highest price from tibber and still did not pic 8 prices...

do I have a missunderstanding of the node or is a calculation error?

Best regards Per

#################################################################

a function node afront the lowest price here the output: {"maxPrice":0.579,"hoursOn":8,"doNotSplit":false}

and can also be find in the output of the lowes price node.

{ "payload": { "schedule": [{ "time": "2023-12-07T00:00:00.000+01:00", "value": false, "countHours": 1 }, { "time": "2023-12-07T01:00:00.000+01:00", "value": true, "countHours": 5 }, { "time": "2023-12-07T06:00:00.000+01:00", "value": false, "countHours": 15 }, { "time": "2023-12-07T21:00:00.000+01:00", "value": true, "countHours": 3 }], "hours": [{ "start": "2023-12-07T00:00:00.000+01:00", "price": 0.2708, "onOff": false, "saving": null }, { "start": "2023-12-07T01:00:00.000+01:00", "price": 0.2692, "onOff": true, "saving": null }, { "start": "2023-12-07T02:00:00.000+01:00", "price": 0.268, "onOff": true, "saving": null }, { "start": "2023-12-07T03:00:00.000+01:00", "price": 0.262, "onOff": true, "saving": null }, { "start": "2023-12-07T04:00:00.000+01:00", "price": 0.2598, "onOff": true, "saving": null }, { "start": "2023-12-07T05:00:00.000+01:00", "price": 0.2653, "onOff": true, "saving": null }, { "start": "2023-12-07T06:00:00.000+01:00", "price": 0.2915, "onOff": false, "saving": null }, { "start": "2023-12-07T07:00:00.000+01:00", "price": 0.3089, "onOff": false, "saving": null }, { "start": "2023-12-07T08:00:00.000+01:00", "price": 0.3313, "onOff": false, "saving": null }, { "start": "2023-12-07T09:00:00.000+01:00", "price": 0.3166, "onOff": false, "saving": null }, { "start": "2023-12-07T10:00:00.000+01:00", "price": 0.3127, "onOff": false, "saving": null }, { "start": "2023-12-07T11:00:00.000+01:00", "price": 0.3172, "onOff": false, "saving": null }, { "start": "2023-12-07T12:00:00.000+01:00", "price": 0.317, "onOff": false, "saving": null }, { "start": "2023-12-07T13:00:00.000+01:00", "price": 0.3174, "onOff": false, "saving": null }, { "start": "2023-12-07T14:00:00.000+01:00", "price": 0.3171, "onOff": false, "saving": null }, { "start": "2023-12-07T15:00:00.000+01:00", "price": 0.317, "onOff": false, "saving": null }, { "start": "2023-12-07T16:00:00.000+01:00", "price": 0.3121, "onOff": false, "saving": null }, { "start": "2023-12-07T17:00:00.000+01:00", "price": 0.3058, "onOff": false, "saving": null }, { "start": "2023-12-07T18:00:00.000+01:00", "price": 0.296, "onOff": false, "saving": null }, { "start": "2023-12-07T19:00:00.000+01:00", "price": 0.2767, "onOff": false, "saving": null }, { "start": "2023-12-07T20:00:00.000+01:00", "price": 0.2722, "onOff": false, "saving": null }, { "start": "2023-12-07T21:00:00.000+01:00", "price": 0.2682, "onOff": true, "saving": null }, { "start": "2023-12-07T22:00:00.000+01:00", "price": 0.2675, "onOff": true, "saving": null }, { "start": "2023-12-07T23:00:00.000+01:00", "price": 0.2564, "onOff": true, "saving": null }], "source": "Tibber", "config": { "fromTime": "00", "toTime": "00", "hoursOn": 8, "maxPrice": 0.579, "doNotSplit": false, "sendCurrentValueWhenRescheduling": false, "outputIfNoSchedule": true, "outputOutsidePeriod": false, "outputValueForOn": true, "outputValueForOff": false, "outputValueForOntype": "bool", "outputValueForOfftype": "bool", "override": "auto", "contextStorage": "memoryOnly", "hasChanged": false }, "time": "2023-12-07T12:08:19.659+01:00", "version": "4.1.5", "strategyNodeId": "53eafad0eaa1f1a3", "current": false }, "_msgid": "e734f74c2aba4fea" }

btw, here the price array and all prices are below 0.579

[{ "start": "2023-12-07T00:00:00.000+01:00", "price": 0.2708, "onOff": false, "saving": null }, { "start": "2023-12-07T01:00:00.000+01:00", "price": 0.2692, "onOff": true, "saving": null }, { "start": "2023-12-07T02:00:00.000+01:00", "price": 0.268, "onOff": true, "saving": null }, { "start": "2023-12-07T03:00:00.000+01:00", "price": 0.262, "onOff": true, "saving": null }, { "start": "2023-12-07T04:00:00.000+01:00", "price": 0.2598, "onOff": true, "saving": null }, { "start": "2023-12-07T05:00:00.000+01:00", "price": 0.2653, "onOff": true, "saving": null }, { "start": "2023-12-07T06:00:00.000+01:00", "price": 0.2915, "onOff": false, "saving": null }, { "start": "2023-12-07T07:00:00.000+01:00", "price": 0.3089, "onOff": false, "saving": null }, { "start": "2023-12-07T08:00:00.000+01:00", "price": 0.3313, "onOff": false, "saving": null }, { "start": "2023-12-07T09:00:00.000+01:00", "price": 0.3166, "onOff": false, "saving": null }, { "start": "2023-12-07T10:00:00.000+01:00", "price": 0.3127, "onOff": false, "saving": null }, { "start": "2023-12-07T11:00:00.000+01:00", "price": 0.3172, "onOff": false, "saving": null }, { "start": "2023-12-07T12:00:00.000+01:00", "price": 0.317, "onOff": false, "saving": null }, { "start": "2023-12-07T13:00:00.000+01:00", "price": 0.3174, "onOff": false, "saving": null }, { "start": "2023-12-07T14:00:00.000+01:00", "price": 0.3171, "onOff": false, "saving": null }, { "start": "2023-12-07T15:00:00.000+01:00", "price": 0.317, "onOff": false, "saving": null }, { "start": "2023-12-07T16:00:00.000+01:00", "price": 0.3121, "onOff": false, "saving": null }, { "start": "2023-12-07T17:00:00.000+01:00", "price": 0.3058, "onOff": false, "saving": null }, { "start": "2023-12-07T18:00:00.000+01:00", "price": 0.296, "onOff": false, "saving": null }, { "start": "2023-12-07T19:00:00.000+01:00", "price": 0.2767, "onOff": false, "saving": null }, { "start": "2023-12-07T20:00:00.000+01:00", "price": 0.2722, "onOff": false, "saving": null }, { "start": "2023-12-07T21:00:00.000+01:00", "price": 0.2682, "onOff": true, "saving": null }, { "start": "2023-12-07T22:00:00.000+01:00", "price": 0.2675, "onOff": true, "saving": null }, { "start": "2023-12-07T23:00:00.000+01:00", "price": 0.2564, "onOff": true, "saving": null }]

ottopaulsen commented 6 months ago

Not sure I understand what you mean. Your schedule looks fine. It has 8 hours on, split on two periods, one for 5 hours and one for 3 hours.

europer commented 6 months ago

If I config a max price what is higher then the max price from Tibber i should get all time series as potential "true" but dont get it

europer commented 6 months ago

Screenshot_20231210-222606~2.png

Screenshot_20231210-222606.png

europer commented 6 months ago

Screenshot_20231210-222526~2.png

europer commented 6 months ago

As you see my forced price is higher the the highest Tibber price, time 24 and should get a schedule from now +24hrs.