{"id":2630,"date":"2026-04-02T10:15:04","date_gmt":"2026-04-02T08:15:04","guid":{"rendered":"https:\/\/www.thuis-batterij.collem.nl\/?page_id=2630"},"modified":"2026-04-02T23:19:35","modified_gmt":"2026-04-02T21:19:35","slug":"n1a-node-red-zonneplan","status":"publish","type":"page","link":"https:\/\/www.thuis-batterij.collem.nl\/index.php\/n1a-node-red-zonneplan\/","title":{"rendered":"N1A. Node-Red &amp; Zonneplan"},"content":{"rendered":"\n<p>Bij Zonneplan krijg je 2cnt extra wanneer je overdag tussen zonsopkomst en zonsondergang terugkeert.<br>Maar dit is niet in de de dynamische instellingen van de VRM in te stellen.<\/p>\n\n\n\n<p>Ik heb hiervoor het volgende Node-Red script gemaakt, deze berekend op basis van jou GPS positie wat de zonsopkomst en zonsondergang is.<\/p>\n\n\n\n<figure class=\"wp-block-image alignwide size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"560\" src=\"https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-1024x560.png\" alt=\"\" class=\"wp-image-2633\" srcset=\"https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-1024x560.png 1024w, https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-300x164.png 300w, https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-768x420.png 768w, https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image.png 1053w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Als basis locatie heb ik Utrecht gebruikt omdat dit redelijk in het midden van het land light, maar de positie kun je instellen, door op &#8220;Utrecht&#8221; te kikken.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"556\" height=\"342\" src=\"https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-1.png\" alt=\"\" class=\"wp-image-2634\" srcset=\"https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-1.png 556w, https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-1-300x185.png 300w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/figure>\n\n\n\n<p>Vul dan de Lat en Lnk van je locatie in, je kunt deze <a href=\"http:\/\/gps-coordinaten.nl\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">hier<\/a> opzoeken.<\/p>\n\n\n\n<p>De formules kun je aanpassen in de groene blokjes:<\/p>\n\n\n\n<p>Ik gebruik de formule van Harold met de aanpassing van Zonneplan tussen zonsopkomst en zonsondergang van 2cnt p\/kWh. Klik <a href=\"https:\/\/www.youtube.com\/watch?v=JetZZaczals\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">hier<\/a> voor het filmpje.<br>Deze formule stuurt meer aan op zelfconsumptie, er word alleen nog maar elektriciteit verkocht wanneer het echt lonend is.<\/p>\n\n\n\n<p>Voor inkoop is de formule: (p + 0.0165 + 0.0915) * 1.21<br>Voor de verkoop is deze: (p + 0.01653) *1.21 tijdens zonsondergang en tijdens zonsopkomst ((p + 0.01653 ) * 1.10) * 1.21<br>De accu kosten staan op \u20ac:0.01 per kWh.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"752\" height=\"202\" src=\"https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-2.png\" alt=\"\" class=\"wp-image-2637\" srcset=\"https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-2.png 752w, https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-2-300x81.png 300w\" sizes=\"auto, (max-width: 752px) 100vw, 752px\" \/><\/figure>\n\n\n\n<p>Het script word iedere nacht om &#8220;00:00&#8221; uur uitgevoerd.<\/p>\n\n\n\n<p>Je moet alleen nog een API token aanmaken, je doet dat bij de &#8220;Voorkeuren&#8221; en  vervolgens op &#8220;Intregaties&#8221; van de VRM.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"497\" height=\"515\" src=\"https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-5.png\" alt=\"\" class=\"wp-image-2642\" srcset=\"https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-5.png 497w, https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-5-290x300.png 290w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><\/figure>\n\n\n\n<p>Klik dan op &#8220;toevoegen&#8221;.<\/p>\n\n\n\n<p>Geef de token een naam en klik dan op &#8220;Token aanmaken&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"494\" height=\"640\" src=\"https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-6.png\" alt=\"\" class=\"wp-image-2643\" srcset=\"https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-6.png 494w, https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-6-232x300.png 232w\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" \/><\/figure>\n\n\n\n<p>Het Token ID word maar 1x verstrekt dus noteer deze goed.<br>Ik zet deze in mijn notieties.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"325\" height=\"488\" src=\"https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-7.png\" alt=\"\" class=\"wp-image-2645\" srcset=\"https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-7.png 325w, https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-7-200x300.png 200w\" sizes=\"auto, (max-width: 325px) 100vw, 325px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"495\" height=\"601\" src=\"https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-8.png\" alt=\"\" class=\"wp-image-2647\" srcset=\"https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-8.png 495w, https:\/\/www.thuis-batterij.collem.nl\/wp-content\/uploads\/2026\/04\/image-8-247x300.png 247w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/figure>\n\n\n\n<p><strong>Hieronder kun je het script downloaden:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[<br>    {<br>        \"id\": \"31e3713bc9113957\",<br>        \"type\": \"tab\",<br>        \"label\": \"DESS Prijs Zonneplan\",<br>        \"disabled\": false,<br>        \"info\": \"\",<br>        \"env\": []<br>    },<br>    {<br>        \"id\": \"98a6cb70bc3e74b1\",<br>        \"type\": \"function\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Sunrise\",<br>        \"func\": \"\\nvar pl = msg.payload.split(\\\":\\\");\\n\\nvar sunrise_h = parseInt(pl[0]);\\nvar sunrise_m = parseInt(pl[1]);\\n\\nif (msg.payload.kwartier == true) {\\n    if (sunrise_m > 0 &amp;&amp; sunrise_m &lt; 14) sunrise_m = 15;\\n    if (sunrise_m > 15 &amp;&amp; sunrise_m &lt; 30) sunrise_m = 30;\\n    if (sunrise_m > 30 &amp;&amp; sunrise_m &lt; 45) sunrise_m = 45;\\n    if (sunrise_m > 45 &amp;&amp; sunrise_m &lt; 60) {sunrise_m = 0; sunrise_h++;}\\n} else {\\n    if (sunrise_m != 0) {sunrise_m = 0; sunrise_h++;}\\n}\\n\\n\\nvar sunrise_hh = sunrise_h &lt; 10 ? \\\"0\\\" + sunrise_h : sunrise_h;\\nvar sunrise_mm = sunrise_m &lt; 10 ? \\\"0\\\" + sunrise_m : sunrise_m;\\n\\nmsg.payload = sunrise_hh + \\\":\\\" + sunrise_mm\\n\\n\\nreturn msg;\",<br>        \"outputs\": 1,<br>        \"timeout\": 0,<br>        \"noerr\": 0,<br>        \"initialize\": \"\",<br>        \"finalize\": \"\",<br>        \"libs\": [],<br>        \"x\": 340,<br>        \"y\": 340,<br>        \"wires\": [<br>            [<br>                \"7bf2604e0421effa\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"2d7f014d2691def2\",<br>        \"type\": \"function\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Sunset\",<br>        \"func\": \"\\n\\nvar pl = msg.payload.split(\\\":\\\");\\n\\nvar sunset_h = parseInt(pl[0]);\\nvar sunset_m = parseInt(pl[1]);\\n\\nif (msg.payload.kwartier) {\\n    if (sunset_m > 0 &amp;&amp; sunset_m &lt; 14) sunset_m = 0;\\n    if (sunset_m > 15 &amp;&amp; sunset_m &lt; 30) sunset_m = 15;\\n    if (sunset_m > 30 &amp;&amp; sunset_m &lt; 45) sunset_m = 30;\\n    if (sunset_m > 45 &amp;&amp; sunset_m &lt; 60) sunset_m = 45;\\n} else {\\n    if (sunset_m != 0) sunset_m = 0;\\n}\\n\\nvar sunset_hh = sunset_h &lt; 10 ? \\\"0\\\" + sunset_h : sunset_h;\\nvar sunset_mm = sunset_m &lt; 10 ? \\\"0\\\" + sunset_m : sunset_m;\\n\\nmsg.payload = sunset_hh + \\\":\\\" + sunset_mm;\\n\\nreturn msg;\",<br>        \"outputs\": 1,<br>        \"timeout\": 0,<br>        \"noerr\": 0,<br>        \"initialize\": \"\",<br>        \"finalize\": \"\",<br>        \"libs\": [],<br>        \"x\": 340,<br>        \"y\": 400,<br>        \"wires\": [<br>            [<br>                \"f9a8c448e2d264e7\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"7bf2604e0421effa\",<br>        \"type\": \"change\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Set sunrise\",<br>        \"rules\": [<br>            {<br>                \"t\": \"set\",<br>                \"p\": \"sunrise\",<br>                \"pt\": \"global\",<br>                \"to\": \"payload\",<br>                \"tot\": \"msg\"<br>            }<br>        ],<br>        \"action\": \"\",<br>        \"property\": \"\",<br>        \"from\": \"\",<br>        \"to\": \"\",<br>        \"reg\": false,<br>        \"x\": 510,<br>        \"y\": 340,<br>        \"wires\": [<br>            [<br>                \"d11f2fe6ee30e73a\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"f9a8c448e2d264e7\",<br>        \"type\": \"change\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Set sunset\",<br>        \"rules\": [<br>            {<br>                \"t\": \"set\",<br>                \"p\": \"sunset\",<br>                \"pt\": \"global\",<br>                \"to\": \"payload\",<br>                \"tot\": \"msg\"<br>            }<br>        ],<br>        \"action\": \"\",<br>        \"property\": \"\",<br>        \"from\": \"\",<br>        \"to\": \"\",<br>        \"reg\": false,<br>        \"x\": 510,<br>        \"y\": 400,<br>        \"wires\": [<br>            [<br>                \"0fb6760f4a927bdb\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"a1860632f2f4e18d\",<br>        \"type\": \"vrm-api\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"vrm\": \"a2bfb9c74d6d15f8\",<br>        \"name\": \"Get\",<br>        \"api_type\": \"installations\",<br>        \"idUser\": \"\",<br>        \"usersQuery\": \"me\",<br>        \"idSite\": \"0\",<br>        \"installations\": \"dynamic-ess-settings\",<br>        \"attribute\": \"\",<br>        \"stats_interval\": \"\",<br>        \"show_instance\": false,<br>        \"stats_start\": \"\",<br>        \"stats_end\": \"\",<br>        \"use_utc\": false,<br>        \"gps_start\": \"\",<br>        \"gps_end\": \"\",<br>        \"widgets\": \"\",<br>        \"instance\": \"\",<br>        \"store_in_global_context\": false,<br>        \"verbose\": false,<br>        \"transform_price_schedule\": false,<br>        \"outputs\": 1,<br>        \"x\": 250,<br>        \"y\": 680,<br>        \"wires\": [<br>            [<br>                \"87b51d6ba0d53bc6\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"87b51d6ba0d53bc6\",<br>        \"type\": \"debug\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"debug 9\",<br>        \"active\": true,<br>        \"tosidebar\": true,<br>        \"console\": false,<br>        \"tostatus\": true,<br>        \"complete\": \"payload\",<br>        \"targetType\": \"msg\",<br>        \"statusVal\": \"payload\",<br>        \"statusType\": \"auto\",<br>        \"x\": 380,<br>        \"y\": 680,<br>        \"wires\": []<br>    },<br>    {<br>        \"id\": \"d11f2fe6ee30e73a\",<br>        \"type\": \"debug\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"debug 12\",<br>        \"active\": true,<br>        \"tosidebar\": false,<br>        \"console\": false,<br>        \"tostatus\": true,<br>        \"complete\": \"payload\",<br>        \"targetType\": \"msg\",<br>        \"statusVal\": \"payload\",<br>        \"statusType\": \"auto\",<br>        \"x\": 960,<br>        \"y\": 340,<br>        \"wires\": []<br>    },<br>    {<br>        \"id\": \"0fb6760f4a927bdb\",<br>        \"type\": \"debug\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"debug 13\",<br>        \"active\": true,<br>        \"tosidebar\": false,<br>        \"console\": false,<br>        \"tostatus\": true,<br>        \"complete\": \"payload\",<br>        \"targetType\": \"msg\",<br>        \"statusVal\": \"payload\",<br>        \"statusType\": \"auto\",<br>        \"x\": 960,<br>        \"y\": 400,<br>        \"wires\": []<br>    },<br>    {<br>        \"id\": \"9d50c75859134e53\",<br>        \"type\": \"debug\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"debug 5\",<br>        \"active\": true,<br>        \"tosidebar\": true,<br>        \"console\": false,<br>        \"tostatus\": false,<br>        \"complete\": \"false\",<br>        \"statusVal\": \"\",<br>        \"statusType\": \"auto\",<br>        \"x\": 960,<br>        \"y\": 260,<br>        \"wires\": []<br>    },<br>    {<br>        \"id\": \"243721df2cb7e4bb\",<br>        \"type\": \"change\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"\",<br>        \"rules\": [<br>            {<br>                \"t\": \"set\",<br>                \"p\": \"store\",<br>                \"pt\": \"msg\",<br>                \"to\": \"payload\",<br>                \"tot\": \"msg\"<br>            }<br>        ],<br>        \"action\": \"\",<br>        \"property\": \"\",<br>        \"from\": \"\",<br>        \"to\": \"\",<br>        \"reg\": false,<br>        \"x\": 440,<br>        \"y\": 280,<br>        \"wires\": [<br>            [<br>                \"1ef6e48977822311\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"1ef6e48977822311\",<br>        \"type\": \"template\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"create the URL\",<br>        \"field\": \"url\",<br>        \"fieldType\": \"msg\",<br>        \"format\": \"handlebars\",<br>        \"syntax\": \"mustache\",<br>        \"template\": \"https:\/\/api.sunrisesunset.io\/json?time_format=24&amp;lat={{store.lat}}&amp;lng={{store.lng}}\",<br>        \"output\": \"str\",<br>        \"x\": 620,<br>        \"y\": 280,<br>        \"wires\": [<br>            [<br>                \"50d73bb42fd381ba\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"50d73bb42fd381ba\",<br>        \"type\": \"http request\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"\",<br>        \"method\": \"GET\",<br>        \"ret\": \"obj\",<br>        \"paytoqs\": \"ignore\",<br>        \"url\": \"\",<br>        \"tls\": \"\",<br>        \"persist\": false,<br>        \"proxy\": \"\",<br>        \"insecureHTTPParser\": false,<br>        \"authType\": \"\",<br>        \"senderr\": false,<br>        \"headers\": [],<br>        \"x\": 790,<br>        \"y\": 280,<br>        \"wires\": [<br>            [<br>                \"9d50c75859134e53\",<br>                \"aafdd9e69636e5a5\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"9c3db00f4567d165\",<br>        \"type\": \"inject\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Utrecht\",<br>        \"props\": [<br>            {<br>                \"p\": \"payload.city\",<br>                \"v\": \"Utrecht\",<br>                \"vt\": \"str\"<br>            },<br>            {<br>                \"p\": \"payload.lat\",<br>                \"v\": \"52.0907006\",<br>                \"vt\": \"str\"<br>            },<br>            {<br>                \"p\": \"payload.lng\",<br>                \"v\": \"5.1215634\",<br>                \"vt\": \"str\"<br>            },<br>            {<br>                \"p\": \"payload.kwartier\",<br>                \"v\": \"false\",<br>                \"vt\": \"bool\"<br>            }<br>        ],<br>        \"repeat\": \"\",<br>        \"crontab\": \"00 00 * * *\",<br>        \"once\": true,<br>        \"onceDelay\": 0.1,<br>        \"topic\": \"\",<br>        \"x\": 120,<br>        \"y\": 280,<br>        \"wires\": [<br>            [<br>                \"d4544f739ee34bf3\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"e883388f5f6d5db3\",<br>        \"type\": \"change\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Set Sunrise\",<br>        \"rules\": [<br>            {<br>                \"t\": \"set\",<br>                \"p\": \"payload\",<br>                \"pt\": \"msg\",<br>                \"to\": \"payload.results.sunrise\",<br>                \"tot\": \"msg\"<br>            }<br>        ],<br>        \"action\": \"\",<br>        \"property\": \"\",<br>        \"from\": \"\",<br>        \"to\": \"\",<br>        \"reg\": false,<br>        \"x\": 170,<br>        \"y\": 340,<br>        \"wires\": [<br>            [<br>                \"98a6cb70bc3e74b1\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"266d6774107ae6f2\",<br>        \"type\": \"change\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Set Senset\",<br>        \"rules\": [<br>            {<br>                \"t\": \"set\",<br>                \"p\": \"payload\",<br>                \"pt\": \"msg\",<br>                \"to\": \"payload.results.sunset\",<br>                \"tot\": \"msg\"<br>            }<br>        ],<br>        \"action\": \"\",<br>        \"property\": \"\",<br>        \"from\": \"\",<br>        \"to\": \"\",<br>        \"reg\": false,<br>        \"x\": 170,<br>        \"y\": 400,<br>        \"wires\": [<br>            [<br>                \"2d7f014d2691def2\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"e879119c7a4414f0\",<br>        \"type\": \"inject\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"\",<br>        \"props\": [<br>            {<br>                \"p\": \"payload\"<br>            },<br>            {<br>                \"p\": \"topic\",<br>                \"vt\": \"str\"<br>            }<br>        ],<br>        \"repeat\": \"\",<br>        \"crontab\": \"\",<br>        \"once\": false,<br>        \"onceDelay\": 0.1,<br>        \"topic\": \"\",<br>        \"payload\": \"\",<br>        \"payloadType\": \"date\",<br>        \"x\": 120,<br>        \"y\": 680,<br>        \"wires\": [<br>            [<br>                \"a1860632f2f4e18d\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"aafdd9e69636e5a5\",<br>        \"type\": \"link out\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Set Sunrise &amp; Sunset\",<br>        \"mode\": \"link\",<br>        \"links\": [<br>            \"fa5243c343a2a62d\",<br>            \"82ef6f957ad71c4f\",<br>            \"cfb0b92a80922349\",<br>            \"eae9c9ba2cf3ad21\",<br>            \"7015de8a7e4a191c\"<br>        ],<br>        \"x\": 915,<br>        \"y\": 300,<br>        \"wires\": []<br>    },<br>    {<br>        \"id\": \"fa5243c343a2a62d\",<br>        \"type\": \"link in\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"link in 5\",<br>        \"links\": [<br>            \"aafdd9e69636e5a5\"<br>        ],<br>        \"x\": 55,<br>        \"y\": 340,<br>        \"wires\": [<br>            [<br>                \"e883388f5f6d5db3\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"82ef6f957ad71c4f\",<br>        \"type\": \"link in\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"link in 6\",<br>        \"links\": [<br>            \"aafdd9e69636e5a5\"<br>        ],<br>        \"x\": 55,<br>        \"y\": 400,<br>        \"wires\": [<br>            [<br>                \"266d6774107ae6f2\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"d4544f739ee34bf3\",<br>        \"type\": \"link out\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Call\",<br>        \"mode\": \"link\",<br>        \"links\": [<br>            \"6083f8cf7cc1237a\",<br>            \"bfe7c48ecee05609\"<br>        ],<br>        \"x\": 255,<br>        \"y\": 280,<br>        \"wires\": []<br>    },<br>    {<br>        \"id\": \"6083f8cf7cc1237a\",<br>        \"type\": \"link in\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"link in 7\",<br>        \"links\": [<br>            \"d4544f739ee34bf3\"<br>        ],<br>        \"x\": 325,<br>        \"y\": 280,<br>        \"wires\": [<br>            [<br>                \"243721df2cb7e4bb\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"08e441752edf9ea4\",<br>        \"type\": \"comment\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Set the Sell price dynamicaly in de Dynamic ESS settings page.\",<br>        \"info\": \"\",<br>        \"x\": 270,<br>        \"y\": 40,<br>        \"wires\": []<br>    },<br>    {<br>        \"id\": \"5fbbc75225b3334b\",<br>        \"type\": \"comment\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Get\",<br>        \"info\": \"\",<br>        \"x\": 90,<br>        \"y\": 640,<br>        \"wires\": []<br>    },<br>    {<br>        \"id\": \"2b8604854810620b\",<br>        \"type\": \"vrm-api\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"vrm\": \"a2bfb9c74d6d15f8\",<br>        \"name\": \"Set\",<br>        \"api_type\": \"installations\",<br>        \"idUser\": \"\",<br>        \"usersQuery\": \"me\",<br>        \"idSite\": \"789886\",<br>        \"installations\": \"patch-dynamic-ess-settings\",<br>        \"attribute\": \"\",<br>        \"stats_interval\": \"\",<br>        \"show_instance\": false,<br>        \"stats_start\": \"\",<br>        \"stats_end\": \"\",<br>        \"use_utc\": false,<br>        \"gps_start\": \"\",<br>        \"gps_end\": \"\",<br>        \"widgets\": \"\",<br>        \"instance\": \"\",<br>        \"store_in_global_context\": false,<br>        \"verbose\": true,<br>        \"transform_price_schedule\": false,<br>        \"outputs\": 1,<br>        \"x\": 750,<br>        \"y\": 460,<br>        \"wires\": [<br>            [<br>                \"8a85a972e8b93a40\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"9d57867bb05c87c2\",<br>        \"type\": \"debug\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"debug 10\",<br>        \"active\": true,<br>        \"tosidebar\": true,<br>        \"console\": false,<br>        \"tostatus\": false,<br>        \"complete\": \"payload\",<br>        \"targetType\": \"msg\",<br>        \"statusVal\": \"\",<br>        \"statusType\": \"auto\",<br>        \"x\": 580,<br>        \"y\": 680,<br>        \"wires\": []<br>    },<br>    {<br>        \"id\": \"f5b3da5c38dc8405\",<br>        \"type\": \"debug\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"debug 15\",<br>        \"active\": true,<br>        \"tosidebar\": true,<br>        \"console\": false,<br>        \"tostatus\": false,<br>        \"complete\": \"payload\",<br>        \"targetType\": \"msg\",<br>        \"statusVal\": \"\",<br>        \"statusType\": \"auto\",<br>        \"x\": 960,<br>        \"y\": 520,<br>        \"wires\": []<br>    },<br>    {<br>        \"id\": \"cfb0b92a80922349\",<br>        \"type\": \"link in\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"link in 9\",<br>        \"links\": [<br>            \"aafdd9e69636e5a5\"<br>        ],<br>        \"x\": 55,<br>        \"y\": 520,<br>        \"wires\": [<br>            [<br>                \"cfb1ddbd955aea86\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"eae9c9ba2cf3ad21\",<br>        \"type\": \"link in\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"link in 8\",<br>        \"links\": [<br>            \"aafdd9e69636e5a5\"<br>        ],<br>        \"x\": 475,<br>        \"y\": 100,<br>        \"wires\": [<br>            [<br>                \"8d6fdb086225cda5\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"7015de8a7e4a191c\",<br>        \"type\": \"link in\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"link in 10\",<br>        \"links\": [<br>            \"aafdd9e69636e5a5\"<br>        ],<br>        \"x\": 475,<br>        \"y\": 160,<br>        \"wires\": [<br>            [<br>                \"56c36f11cd1329aa\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"8d6fdb086225cda5\",<br>        \"type\": \"change\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Set Formula fsr (SunRise)\",<br>        \"rules\": [<br>            {<br>                \"t\": \"set\",<br>                \"p\": \"fsr\",<br>                \"pt\": \"global\",<br>                \"to\": \"((p+0.01653)*1.10)*1.21\",<br>                \"tot\": \"str\"<br>            }<br>        ],<br>        \"action\": \"\",<br>        \"property\": \"\",<br>        \"from\": \"\",<br>        \"to\": \"\",<br>        \"reg\": false,<br>        \"x\": 630,<br>        \"y\": 100,<br>        \"wires\": [<br>            []<br>        ]<br>    },<br>    {<br>        \"id\": \"56c36f11cd1329aa\",<br>        \"type\": \"change\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Set Formula fss (SunSet)\",<br>        \"rules\": [<br>            {<br>                \"t\": \"set\",<br>                \"p\": \"fss\",<br>                \"pt\": \"global\",<br>                \"to\": \"(p+0.01653)*1.21\",<br>                \"tot\": \"str\"<br>            }<br>        ],<br>        \"action\": \"\",<br>        \"property\": \"\",<br>        \"from\": \"\",<br>        \"to\": \"\",<br>        \"reg\": false,<br>        \"x\": 630,<br>        \"y\": 160,<br>        \"wires\": [<br>            []<br>        ]<br>    },<br>    {<br>        \"id\": \"8a85a972e8b93a40\",<br>        \"type\": \"debug\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"debug 3\",<br>        \"active\": true,<br>        \"tosidebar\": true,<br>        \"console\": false,<br>        \"tostatus\": false,<br>        \"complete\": \"false\",<br>        \"statusVal\": \"\",<br>        \"statusType\": \"auto\",<br>        \"x\": 960,<br>        \"y\": 460,<br>        \"wires\": []<br>    },<br>    {<br>        \"id\": \"cfb1ddbd955aea86\",<br>        \"type\": \"template\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"\",<br>        \"field\": \"payload\",<br>        \"fieldType\": \"msg\",<br>        \"format\": \"json\",<br>        \"syntax\": \"plain\",<br>        \"template\": \"{\\\"###\\\"[{\\\\\\\"days\\\\\\\":[0,1,2,3,4,5,6],\\\\\\\"schedule\\\\\\\":[{\\\\\\\"from\\\\\\\":\\\\\\\"00:00\\\\\\\",\\\\\\\"to\\\\\\\":\\\\\\\"#sunrise#\\\\\\\",\\\\\\\"formula\\\\\\\":\\\\\\\"#fss#\\\\\\\"},{\\\\\\\"from\\\\\\\":\\\\\\\"#sunrise#\\\\\\\",\\\\\\\"to\\\\\\\":\\\\\\\"#sunset#\\\\\\\",\\\\\\\"formula\\\\\\\":\\\\\\\"#fsr#\\\\\\\"},{\\\\\\\"from\\\\\\\":\\\\\\\"#sunset#\\\\\\\",\\\\\\\"to\\\\\\\":\\\\\\\"00:00\\\\\\\",\\\\\\\"formula\\\\\\\":\\\\\\\"#fss#\\\\\\\"}]}]\\\"}\",<br>        \"output\": \"str\",<br>        \"x\": 180,<br>        \"y\": 520,<br>        \"wires\": [<br>            [<br>                \"a34a1eda75a1f976\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"a34a1eda75a1f976\",<br>        \"type\": \"change\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"\",<br>        \"rules\": [<br>            {<br>                \"t\": \"change\",<br>                \"p\": \"payload\",<br>                \"pt\": \"msg\",<br>                \"from\": \"#sunrise#\",<br>                \"fromt\": \"str\",<br>                \"to\": \"sunrise\",<br>                \"tot\": \"global\"<br>            },<br>            {<br>                \"t\": \"change\",<br>                \"p\": \"payload\",<br>                \"pt\": \"msg\",<br>                \"from\": \"#sunset#\",<br>                \"fromt\": \"str\",<br>                \"to\": \"sunset\",<br>                \"tot\": \"global\"<br>            },<br>            {<br>                \"t\": \"change\",<br>                \"p\": \"payload\",<br>                \"pt\": \"msg\",<br>                \"from\": \"#fsr#\",<br>                \"fromt\": \"str\",<br>                \"to\": \"fsr\",<br>                \"tot\": \"global\"<br>            },<br>            {<br>                \"t\": \"change\",<br>                \"p\": \"payload\",<br>                \"pt\": \"msg\",<br>                \"from\": \"#fss#\",<br>                \"fromt\": \"str\",<br>                \"to\": \"fss\",<br>                \"tot\": \"global\"<br>            },<br>            {<br>                \"t\": \"change\",<br>                \"p\": \"payload\",<br>                \"pt\": \"msg\",<br>                \"from\": \"###\",<br>                \"fromt\": \"str\",<br>                \"to\": \"sellPriceFormulaSchedule\\\":\",<br>                \"tot\": \"str\"<br>            }<br>        ],<br>        \"action\": \"\",<br>        \"property\": \"\",<br>        \"from\": \"\",<br>        \"to\": \"\",<br>        \"reg\": false,<br>        \"x\": 400,<br>        \"y\": 520,<br>        \"wires\": [<br>            [<br>                \"b2dd5991c2c121f0\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"b2dd5991c2c121f0\",<br>        \"type\": \"json\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"\",<br>        \"property\": \"payload\",<br>        \"action\": \"\",<br>        \"pretty\": true,<br>        \"x\": 570,<br>        \"y\": 520,<br>        \"wires\": [<br>            [<br>                \"f5b3da5c38dc8405\",<br>                \"2b8604854810620b\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"cb577c27d8df2b4f\",<br>        \"type\": \"comment\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Stel hier de formule in voor overdag\",<br>        \"info\": \"Bij Zonneplan krijg je \u20ac:0,02 cent extra tijdens de daglicht uren.\\n\\nHiervoor is de formule:\\n((p+0.0165+0.0915)*1.10)*1.21\\n\\n===========================================================\\nHierbij is \\\"p\\\" de epex prijs \\n\\nJe krijgt 2cnt extra tijden de dag, dat is incl btw en dat is  weer excl. btw \u20ac: 0,0165.\\n\\nVerder betaal je \u20ac: 0,0915 excl. btw aan belasting. \\n\",<br>        \"x\": 180,<br>        \"y\": 100,<br>        \"wires\": []<br>    },<br>    {<br>        \"id\": \"79df30af6d2c09b3\",<br>        \"type\": \"comment\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Stel hier de formule in voor de donkere periode\",<br>        \"info\": \"Bij Zonneplan krijg je \u20ac:0,02 cent extra tijdens de daglicht uren.\\n\\nHiervoor is de formule:\\n(p+0.0165+0.0915)*1.21\\n\\n===========================================================\\nHierbij is \\\"p\\\" de epex prijs \\n\\nAan Zonneplan betaal je 2cnt incl btw, dat is excl. btw \u20ac: 0,0165.\\n\\nVerder betaal je \u20ac: 0,0915 excl. btw aan belasting. \\n\",<br>        \"x\": 220,<br>        \"y\": 160,<br>        \"wires\": []<br>    },<br>    {<br>        \"id\": \"2a192d311df70323\",<br>        \"type\": \"comment\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"Als uitgangspunt heb ik Utrecht genomen, omdat dit redelijk in het midden van het land ligt..\",<br>        \"info\": \"Je kunt hier de lokale GPS positie opgeven voor jouw woonplaats\",<br>        \"x\": 350,<br>        \"y\": 240,<br>        \"wires\": []<br>    },<br>    {<br>        \"id\": \"deb37d101380bffd\",<br>        \"type\": \"debug\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"debug 1\",<br>        \"active\": true,<br>        \"tosidebar\": true,<br>        \"console\": false,<br>        \"tostatus\": true,<br>        \"complete\": \"payload\",<br>        \"targetType\": \"msg\",<br>        \"statusVal\": \"payload\",<br>        \"statusType\": \"auto\",<br>        \"x\": 960,<br>        \"y\": 180,<br>        \"wires\": []<br>    },<br>    {<br>        \"id\": \"bfe7c48ecee05609\",<br>        \"type\": \"link in\",<br>        \"z\": \"31e3713bc9113957\",<br>        \"name\": \"link in 11\",<br>        \"links\": [<br>            \"d4544f739ee34bf3\"<br>        ],<br>        \"x\": 845,<br>        \"y\": 180,<br>        \"wires\": [<br>            [<br>                \"deb37d101380bffd\"<br>            ]<br>        ]<br>    },<br>    {<br>        \"id\": \"a2bfb9c74d6d15f8\",<br>        \"type\": \"config-vrm-api\",<br>        \"name\": \"dess\",<br>        \"forceIpv4\": false<br>    },<br>    {<br>        \"id\": \"a5ab93f5fca9d726\",<br>        \"type\": \"global-config\",<br>        \"env\": [],<br>        \"modules\": {<br>            \"victron-vrm-api\": \"0.3.11\"<br>        }<br>    }<br>]<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Bij Zonneplan krijg je 2cnt extra wanneer je overdag tussen zonsopkomst en zonsondergang terugkeert.Maar dit is niet in de de dynamische instellingen van de VRM in te stellen. Ik heb hiervoor het volgende Node-Red script gemaakt, deze berekend op basis van jou GPS positie wat de zonsopkomst en zonsondergang is. Als basis locatie heb ik [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2630","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.thuis-batterij.collem.nl\/index.php\/wp-json\/wp\/v2\/pages\/2630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thuis-batterij.collem.nl\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.thuis-batterij.collem.nl\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.thuis-batterij.collem.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thuis-batterij.collem.nl\/index.php\/wp-json\/wp\/v2\/comments?post=2630"}],"version-history":[{"count":16,"href":"https:\/\/www.thuis-batterij.collem.nl\/index.php\/wp-json\/wp\/v2\/pages\/2630\/revisions"}],"predecessor-version":[{"id":2658,"href":"https:\/\/www.thuis-batterij.collem.nl\/index.php\/wp-json\/wp\/v2\/pages\/2630\/revisions\/2658"}],"wp:attachment":[{"href":"https:\/\/www.thuis-batterij.collem.nl\/index.php\/wp-json\/wp\/v2\/media?parent=2630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}