Ps-strategy-lowest-price

ich möchte den preis ändern per dropdown menü in der config des ps-strategy-lowest-price bekomme es nicht hin

[
    {
        "id": "6b85ac2a45f5b274",
        "type": "ps-strategy-lowest-price",
        "z": "256762ae5b1d8149",
        "name": "Lowest Price State True/ False",
        "fromTime": "23",
        "toTime": "23",
        "hoursOn": "1",
        "maxPrice": "0.22",
        "doNotSplit": true,
        "sendCurrentValueWhenRescheduling": false,
        "outputValueForOn": "true",
        "outputValueForOff": "false",
        "outputValueForOntype": "bool",
        "outputValueForOfftype": "bool",
        "outputIfNoSchedule": "false",
        "outputOutsidePeriod": "false",
        "contextStorage": "memory",
        "x": 1050,
        "y": 520,
        "wires": [
            [
                "1de77c91b17843e0",
                "eb1f83e3983e2ff0",
                "1c37ebfa2d9f05a8"
            ],
            [
                "858ba706295c8433",
                "7905e77fbf5b9fb5"
            ],
            [
                "bae0920ada255394"
            ]
        ]
    },
    {
        "id": "3820a29d5734de01",
        "type": "ui_dropdown",
        "z": "256762ae5b1d8149",
        "name": "Preise",
        "label": "Preise",
        "tooltip": "€",
        "place": "Select option",
        "group": "67ee9ca41db4f5bb",
        "order": 2,
        "width": 0,
        "height": 0,
        "passthru": false,
        "multiple": false,
        "options": [
            {
                "label": "0.15 €",
                "value": 15,
                "type": "num"
            },
            {
                "label": "0.16€",
                "value": 16,
                "type": "num"
            },
            {
                "label": "0.17€",
                "value": 17,
                "type": "num"
            },
            {
                "label": "0.18€",
                "value": 18,
                "type": "num"
            },
            {
                "label": "0.19€",
                "value": 19,
                "type": "num"
            },
            {
                "label": "0.20€",
                "value": "0.20€",
                "type": "str"
            },
            {
                "label": "0.21€",
                "value": "0.21€",
                "type": "str"
            },
            {
                "label": "0.22€",
                "value": "0.22€",
                "type": "str"
            },
            {
                "label": "0.23€",
                "value": "0.23€",
                "type": "str"
            },
            {
                "label": "0.24€",
                "value": "0.24€",
                "type": "str"
            },
            {
                "label": "0.25€",
                "value": "0.25€",
                "type": "str"
            }
        ],
        "payload": "",
        "topic": "prise",
        "topicType": "msg",
        "className": "",
        "x": 790,
        "y": 400,
        "wires": [
            [
                "6b85ac2a45f5b274"
            ]
        ]
    },
    {
        "id": "cd867e24eb2decea",
        "type": "ui_dropdown",
        "z": "256762ae5b1d8149",
        "name": "fromTime",
        "label": "fromTime",
        "tooltip": "",
        "place": "Select option",
        "group": "67ee9ca41db4f5bb",
        "order": 3,
        "width": 0,
        "height": 0,
        "passthru": true,
        "multiple": false,
        "options": [
            {
                "label": "00:00",
                "value": null,
                "type": "num"
            },
            {
                "label": "01:00",
                "value": "01:00",
                "type": "str"
            },
            {
                "label": "02:00",
                "value": "02:00",
                "type": "str"
            },
            {
                "label": "03:00",
                "value": "03:00",
                "type": "str"
            },
            {
                "label": "04:00",
                "value": "04:00",
                "type": "str"
            },
            {
                "label": "05:00",
                "value": "05:00",
                "type": "str"
            },
            {
                "label": "06:00",
                "value": "06:00",
                "type": "str"
            },
            {
                "label": "07:00",
                "value": "07:00",
                "type": "str"
            },
            {
                "label": "08:00",
                "value": "08:00",
                "type": "str"
            },
            {
                "label": "09:00",
                "value": "09:00",
                "type": "str"
            },
            {
                "label": "10:00",
                "value": "10:00",
                "type": "str"
            },
            {
                "label": "11:00",
                "value": "11:00",
                "type": "str"
            },
            {
                "label": "12:00",
                "value": "12:00",
                "type": "str"
            },
            {
                "label": "13:00",
                "value": "13:00",
                "type": "str"
            },
            {
                "label": "14:00",
                "value": "14:00",
                "type": "str"
            },
            {
                "label": "15:00",
                "value": "15:00",
                "type": "str"
            },
            {
                "label": "16:00",
                "value": "16:00",
                "type": "str"
            },
            {
                "label": "17:00",
                "value": "17:00",
                "type": "str"
            },
            {
                "label": "18:00",
                "value": "18:00",
                "type": "str"
            },
            {
                "label": "19:00",
                "value": "19:00",
                "type": "str"
            },
            {
                "label": "20:00",
                "value": 20,
                "type": "num"
            },
            {
                "label": "21:00",
                "value": 21,
                "type": "num"
            },
            {
                "label": "22:00",
                "value": 22,
                "type": "num"
            },
            {
                "label": "23:00",
                "value": 23,
                "type": "num"
            }
        ],
        "payload": "",
        "topic": "topic",
        "topicType": "msg",
        "className": "",
        "x": 780,
        "y": 480,
        "wires": [
            [
                "6b85ac2a45f5b274"
            ]
        ]
    },
    {
        "id": "81beab35ae9a2f22",
        "type": "ui_dropdown",
        "z": "256762ae5b1d8149",
        "name": "toTime",
        "label": "toTime",
        "tooltip": "",
        "place": "Select option",
        "group": "67ee9ca41db4f5bb",
        "order": 3,
        "width": 0,
        "height": 0,
        "passthru": true,
        "multiple": false,
        "options": [
            {
                "label": "00:00",
                "value": 0,
                "type": "num"
            },
            {
                "label": "01:00",
                "value": "01:00",
                "type": "str"
            },
            {
                "label": "02:00",
                "value": "02:00",
                "type": "str"
            },
            {
                "label": "03:00",
                "value": "03:00",
                "type": "str"
            },
            {
                "label": "04:00",
                "value": "04:00",
                "type": "str"
            },
            {
                "label": "05:00",
                "value": "05:00",
                "type": "str"
            },
            {
                "label": "06:00",
                "value": "06:00",
                "type": "str"
            },
            {
                "label": "07:00",
                "value": "07:00",
                "type": "str"
            },
            {
                "label": "08:00",
                "value": "08:00",
                "type": "str"
            },
            {
                "label": "09:00",
                "value": "09:00",
                "type": "str"
            },
            {
                "label": "10:00",
                "value": "10:00",
                "type": "str"
            },
            {
                "label": "11:00",
                "value": "11:00",
                "type": "str"
            },
            {
                "label": "12:00",
                "value": "12:00",
                "type": "str"
            },
            {
                "label": "13:00",
                "value": "13:00",
                "type": "str"
            },
            {
                "label": "14:00",
                "value": "14:00",
                "type": "str"
            },
            {
                "label": "15:00",
                "value": "15:00",
                "type": "str"
            },
            {
                "label": "16:00",
                "value": "16:00",
                "type": "str"
            },
            {
                "label": "17:00",
                "value": "17:00",
                "type": "str"
            },
            {
                "label": "18:00",
                "value": "18:00",
                "type": "str"
            },
            {
                "label": "19:00",
                "value": "19:00",
                "type": "str"
            },
            {
                "label": "20:00",
                "value": 20,
                "type": "num"
            },
            {
                "label": "21:00",
                "value": 21,
                "type": "num"
            },
            {
                "label": "22:00",
                "value": 22,
                "type": "num"
            },
            {
                "label": "23:00",
                "value": 23,
                "type": "num"
            }
        ],
        "payload": "",
        "topic": "topic",
        "topicType": "msg",
        "className": "",
        "x": 790,
        "y": 440,
        "wires": [
            [
                "6b85ac2a45f5b274"
            ]
        ]
    },
    {
        "id": "67ee9ca41db4f5bb",
        "type": "ui_group",
        "name": " ! Deaktivert !Ladeleistung",
        "tab": "9ff7a679.802ce",
        "order": 2,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "9ff7a679.802ce",
        "type": "ui_tab",
        "name": "Batteriesteuerung",
        "icon": "fa-battery-empty",
        "order": 11,
        "disabled": false,
        "hidden": false
    }
]

Hallo Jan,
Du beschreibt Dein Problem sehr kurz - wahrscheinlich zu kurz. Daher ist Dein Post auch nach "dashboard" verschoben worden - obwohl das Thema (nach meinem Verständnis) nicht mit dem dashboard zusammenhängt.

Ich versuche mich mal an einer Unterstützung:

Der ps-strategy-lowest-price benötigt eine Tabelle mit Preisinformationen, um daraus seine Strategie ableiten zu können. Diese Preisinformationen müssen in einem bestimmten Format bei ihm ankommen. Die Preisinformationen können von

Tibber or Nord Pool

über den ps-receive-price abgerufen werden, müssen ansonsten aus anderen Quellen zusammengestellt werden. In Deinem Flow gibt es diese Tabelle nicht.

Auch wenn wahrscheinlich nicht ursächlich: Die Konfiguration der von Dir eingesetzten ui_dropdowns wird Dir mMn auch irgendwann Probleme bereiten, z.B.

Das Formt der Daten ist nicht konsistent - mal str, mal num; damit gibt der Node, in Abhängigkeit des ausgewählten Eintrages, mal das Eine, mal das Andere, aus...

Hi, If you are trying to use dynamic config then the docs are here.
Here is an example of how you might set it up using the dashboard

[{"id":"f5953f3a196b6c64","type":"ui_dropdown","z":"d1395164b4eec73e","name":"Preise","label":"Preise","tooltip":"€","place":"Select option","group":"bf506e46da02e6ff","order":2,"width":0,"height":0,"passthru":false,"multiple":false,"options":[{"label":"0.15 €","value":15,"type":"num"},{"label":"0.16€","value":16,"type":"num"},{"label":"0.17€","value":17,"type":"num"},{"label":"0.18€","value":18,"type":"num"},{"label":"0.19€","value":19,"type":"num"},{"label":"0.20€","value":20,"type":"num"},{"label":"0.21€","value":21,"type":"num"},{"label":"0.22€","value":22,"type":"num"},{"label":"0.23€","value":23,"type":"num"},{"label":"0.24€","value":24,"type":"num"},{"label":"0.25€","value":25,"type":"num"}],"payload":"","topic":"MaxPrice","topicType":"str","className":"","x":190,"y":2160,"wires":[["2a5713e8266ef598"]]},{"id":"2a5713e8266ef598","type":"join","z":"d1395164b4eec73e","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"4","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":380,"y":2180,"wires":[["abb5f4728b6f61af"]]},{"id":"f5906b7fd58b7b49","type":"ui_dropdown","z":"d1395164b4eec73e","name":"toTime","label":"toTime","tooltip":"","place":"Select option","group":"bf506e46da02e6ff","order":3,"width":0,"height":0,"passthru":true,"multiple":false,"options":[{"label":"00:00","value":0,"type":"num"},{"label":"01:00","value":"01:00","type":"str"},{"label":"02:00","value":"02:00","type":"str"},{"label":"03:00","value":"03:00","type":"str"},{"label":"04:00","value":"04:00","type":"str"},{"label":"05:00","value":"05:00","type":"str"},{"label":"06:00","value":"06:00","type":"str"},{"label":"07:00","value":"07:00","type":"str"},{"label":"08:00","value":"08:00","type":"str"},{"label":"09:00","value":"09:00","type":"str"},{"label":"10:00","value":"10:00","type":"str"},{"label":"11:00","value":"11:00","type":"str"},{"label":"12:00","value":"12:00","type":"str"},{"label":"13:00","value":"13:00","type":"str"},{"label":"14:00","value":"14:00","type":"str"},{"label":"15:00","value":"15:00","type":"str"},{"label":"16:00","value":"16:00","type":"str"},{"label":"17:00","value":"17:00","type":"str"},{"label":"18:00","value":"18:00","type":"str"},{"label":"19:00","value":"19:00","type":"str"},{"label":"20:00","value":"20.00","type":"str"},{"label":"21:00","value":"21.00","type":"str"},{"label":"22:00","value":"22,.00","type":"str"},{"label":"23:00","value":"23.00","type":"str"}],"payload":"","topic":"totime","topicType":"str","className":"","x":190,"y":2200,"wires":[["2a5713e8266ef598"]]},{"id":"3eb9e4186895af47","type":"ui_dropdown","z":"d1395164b4eec73e","name":"fromTime","label":"fromTime","tooltip":"","place":"Select option","group":"bf506e46da02e6ff","order":3,"width":0,"height":0,"passthru":true,"multiple":false,"options":[{"label":"00:00","value":0,"type":"num"},{"label":"01:00","value":"01:00","type":"str"},{"label":"02:00","value":"02:00","type":"str"},{"label":"03:00","value":"03:00","type":"str"},{"label":"04:00","value":"04:00","type":"str"},{"label":"05:00","value":"05:00","type":"str"},{"label":"06:00","value":"06:00","type":"str"},{"label":"07:00","value":"07:00","type":"str"},{"label":"08:00","value":"08:00","type":"str"},{"label":"09:00","value":"09:00","type":"str"},{"label":"10:00","value":"10:00","type":"str"},{"label":"11:00","value":"11:00","type":"str"},{"label":"12:00","value":"12:00","type":"str"},{"label":"13:00","value":"13:00","type":"str"},{"label":"14:00","value":"14:00","type":"str"},{"label":"15:00","value":"15:00","type":"str"},{"label":"16:00","value":"16:00","type":"str"},{"label":"17:00","value":"17:00","type":"str"},{"label":"18:00","value":"18:00","type":"str"},{"label":"19:00","value":"19:00","type":"str"},{"label":"20:00","value":"20.00","type":"str"},{"label":"21:00","value":"21.00","type":"str"},{"label":"22:00","value":"22,.00","type":"str"},{"label":"23:00","value":"23.00","type":"str"}],"payload":"","topic":"fromTime","topicType":"str","className":"","x":180,"y":2240,"wires":[["2a5713e8266ef598"]]},{"id":"55bc3a68a7ee6c5b","type":"ui_button","z":"d1395164b4eec73e","name":"","group":"bf506e46da02e6ff","order":3,"width":0,"height":0,"passthru":false,"label":"Submit","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"1","payloadType":"str","topic":"submit","topicType":"str","x":190,"y":2280,"wires":[["2a5713e8266ef598"]]},{"id":"abb5f4728b6f61af","type":"switch","z":"d1395164b4eec73e","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"submit","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":500,"y":2180,"wires":[["f41c78b772dfab56"]]},{"id":"f41c78b772dfab56","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"delete","p":"payload,submit","pt":"msg"},{"t":"set","p":"temp","pt":"msg","to":"{\"name\":\"Best Save\"}","tot":"json"},{"t":"set","p":"temp.config","pt":"msg","to":"payload","tot":"msg"},{"t":"move","p":"temp","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":2220,"wires":[["1f2808c57f19a3e2"]]},{"id":"1f2808c57f19a3e2","type":"ps-strategy-lowest-price","z":"d1395164b4eec73e","name":"Lowest Price State True/ False","fromTime":"23","toTime":"23","hoursOn":"1","maxPrice":"0.22","doNotSplit":true,"sendCurrentValueWhenRescheduling":false,"outputValueForOn":"true","outputValueForOff":"false","outputValueForOntype":"bool","outputValueForOfftype":"bool","outputIfNoSchedule":"false","outputOutsidePeriod":"false","contextStorage":"memory","x":610,"y":2280,"wires":[[],[],[]]},{"id":"bf506e46da02e6ff","type":"ui_group","name":" ! Deaktivert !Ladeleistung","tab":"9ff7a679.802ce","order":2,"disp":true,"width":"6","collapse":false,"className":""},{"id":"9ff7a679.802ce","type":"ui_tab","name":"Batteriesteuerung","icon":"fa-battery-empty","order":11,"disabled":false,"hidden":false}]

[edit fixed dropdown options]

Genau ich möchte den "Max preis" ändern üder eine dropdown menü

i dont work .. why temp ?

Temp is used to construct object and not overwrite payload.

Try setting to and from times as "00" - "23" not "00:00"

As shown here ps-strategy-lowest-price

[{"id":"285e3d4bd3fe88b3","type":"ui_dropdown","z":"d1395164b4eec73e","name":"Preise","label":"Preise","tooltip":"€","place":"Select option","group":"d17dcf3ea4499545","order":2,"width":0,"height":0,"passthru":false,"multiple":false,"options":[{"label":"0.15 €","value":15,"type":"num"},{"label":"0.16€","value":16,"type":"num"},{"label":"0.17€","value":17,"type":"num"},{"label":"0.18€","value":18,"type":"num"},{"label":"0.19€","value":19,"type":"num"},{"label":"0.20€","value":20,"type":"num"},{"label":"0.21€","value":21,"type":"num"},{"label":"0.22€","value":22,"type":"num"},{"label":"0.23€","value":23,"type":"num"},{"label":"0.24€","value":24,"type":"num"},{"label":"0.25€","value":25,"type":"num"}],"payload":"","topic":"MaxPrice","topicType":"str","className":"","x":170,"y":2160,"wires":[["63b37a6a0eeff0b4"]]},{"id":"63b37a6a0eeff0b4","type":"join","z":"d1395164b4eec73e","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"4","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":360,"y":2180,"wires":[["8b1ec6bbc9e29c31"]]},{"id":"e373391e31d9dabc","type":"ui_dropdown","z":"d1395164b4eec73e","name":"toTime","label":"toTime","tooltip":"","place":"Select option","group":"d17dcf3ea4499545","order":3,"width":0,"height":0,"passthru":false,"multiple":false,"options":[{"label":"00:00","value":0,"type":"num"},{"label":"01:00","value":"01","type":"str"},{"label":"02:00","value":"02","type":"str"},{"label":"03:00","value":"03","type":"str"},{"label":"04:00","value":"04","type":"str"},{"label":"05:00","value":"05","type":"str"},{"label":"06:00","value":"06","type":"str"},{"label":"07:00","value":"07","type":"str"},{"label":"08:00","value":"08","type":"str"},{"label":"09:00","value":"09","type":"str"},{"label":"10:00","value":"10","type":"str"},{"label":"11:00","value":"11","type":"str"},{"label":"12:00","value":"12","type":"str"},{"label":"13:00","value":"13","type":"str"},{"label":"14:00","value":"14","type":"str"},{"label":"15:00","value":"15","type":"str"},{"label":"16:00","value":"16","type":"str"},{"label":"17:00","value":"17","type":"str"},{"label":"18:00","value":"18","type":"str"},{"label":"19:00","value":"19","type":"str"},{"label":"20:00","value":"20.","type":"str"},{"label":"21:00","value":"21","type":"str"},{"label":"22:00","value":"22","type":"str"},{"label":"23:00","value":"23","type":"str"}],"payload":"","topic":"totime","topicType":"str","className":"","x":170,"y":2200,"wires":[["63b37a6a0eeff0b4"]]},{"id":"16c721ca683d8a01","type":"ui_button","z":"d1395164b4eec73e","name":"","group":"d17dcf3ea4499545","order":3,"width":0,"height":0,"passthru":false,"label":"Submit","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"1","payloadType":"str","topic":"submit","topicType":"str","x":170,"y":2280,"wires":[["63b37a6a0eeff0b4"]]},{"id":"2393eae4145885ab","type":"ui_dropdown","z":"d1395164b4eec73e","name":"fromTime","label":"fromTime","tooltip":"","place":"Select option","group":"d17dcf3ea4499545","order":3,"width":0,"height":0,"passthru":false,"multiple":false,"options":[{"label":"00:00","value":0,"type":"num"},{"label":"01:00","value":"01","type":"str"},{"label":"02:00","value":"02","type":"str"},{"label":"03:00","value":"03","type":"str"},{"label":"04:00","value":"04","type":"str"},{"label":"05:00","value":"05","type":"str"},{"label":"06:00","value":"06","type":"str"},{"label":"07:00","value":"07","type":"str"},{"label":"08:00","value":"08","type":"str"},{"label":"09:00","value":"09","type":"str"},{"label":"10:00","value":"10","type":"str"},{"label":"11:00","value":"11","type":"str"},{"label":"12:00","value":"12","type":"str"},{"label":"13:00","value":"13","type":"str"},{"label":"14:00","value":"14","type":"str"},{"label":"15:00","value":"15","type":"str"},{"label":"16:00","value":"16","type":"str"},{"label":"17:00","value":"17","type":"str"},{"label":"18:00","value":"18","type":"str"},{"label":"19:00","value":"19","type":"str"},{"label":"20:00","value":"20.","type":"str"},{"label":"21:00","value":"21","type":"str"},{"label":"22:00","value":"22","type":"str"},{"label":"23:00","value":"23","type":"str"}],"payload":"","topic":"fromtime","topicType":"str","className":"","x":180,"y":2240,"wires":[["63b37a6a0eeff0b4"]]},{"id":"8b1ec6bbc9e29c31","type":"switch","z":"d1395164b4eec73e","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"submit","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":480,"y":2180,"wires":[["06f857860da01918"]]},{"id":"06f857860da01918","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"delete","p":"payload,submit","pt":"msg"},{"t":"set","p":"temp","pt":"msg","to":"{\"name\":\"Best Save\"}","tot":"json"},{"t":"set","p":"temp.config","pt":"msg","to":"payload","tot":"msg"},{"t":"move","p":"temp","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":2220,"wires":[["c967c1818b4d8df6"]]},{"id":"c967c1818b4d8df6","type":"debug","z":"d1395164b4eec73e","name":"debug 2460","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":690,"y":2160,"wires":[]},{"id":"d17dcf3ea4499545","type":"ui_group","name":" ! Deaktivert !Ladeleistung","tab":"9ff7a679.802ce","order":2,"disp":true,"width":"6","collapse":false,"className":""}]

Leider wird dabei der Preis nicht geändert.

ich habe ein andres Playload gefunden.. Evl hilft das .

var adaptedsoc = msg.payload;
msg.payload =
{
  "config": {
    "outputValueForOn": Number(adaptedsoc),
    "outputValueForOntype": "num"
  }

};
return msg;

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.