Advertisement
HKRoed

Varmepumpe Logikk

Oct 12th, 2022
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 69.14 KB | Source Code | 0 0
  1. [{"id":"3a673018e01cbc4a","type":"tab","label":"SV logikk","disabled":false,"info":"","env":[]},{"id":"c5a52427aac67d2a","type":"junction","z":"3a673018e01cbc4a","x":41.00001525878906,"y":268.0000066757202,"wires":[["2f24ea4d1e3759f1","ba8aca5bdff4d83c","aaca4c9800282b1b"]]},{"id":"85dfbb6e7330964c","type":"junction","z":"3a673018e01cbc4a","x":1180,"y":2300,"wires":[["5b71081b0a2f1f66"]]},{"id":"43ec0117ad0b72be","type":"api-current-state","z":"3a673018e01cbc4a","name":"Stue 2 etg","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.ble_temperature_ble_temp_stue_2_etg","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":110,"y":660,"wires":[["aa748b1b9d9510d7","9c4c70f19df37106"]]},{"id":"aa748b1b9d9510d7","type":"smooth","z":"3a673018e01cbc4a","name":"Snitt30","property":"payload","action":"mean","count":"30","round":"1","mult":"single","reduce":false,"x":260,"y":640,"wires":[["07bfb7ec09665da8","c79dc52e1899bf8a"]]},{"id":"8ca9401691cfb687","type":"cronplus","z":"3a673018e01cbc4a","name":"XX:02:XX","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"0/2 * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":100,"y":460,"wires":[["43ec0117ad0b72be","4745d442f0607e5d","ae4efce4b2c15a14","0284f83fd8371a83","ff5dc5eabc3d7292","8399f66287bd4916"]]},{"id":"4745d442f0607e5d","type":"api-current-state","z":"3a673018e01cbc4a","name":"Stue 1 etg","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.ble_temperature_ble_temp_stue_1_etg","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":110,"y":520,"wires":[["ee9720363d53244a","281ad02fbb5cce21"]]},{"id":"ee9720363d53244a","type":"smooth","z":"3a673018e01cbc4a","name":"Snitt30","property":"payload","action":"mean","count":"30","round":"1","mult":"single","reduce":false,"x":260,"y":500,"wires":[["0556ea56822cb19c","dda3810557107149"]]},{"id":"1c8b9271553d0d1b","type":"comment","z":"3a673018e01cbc4a","name":"Tempsnitt","info":"- Henter verdi hvert 1 min.\n- Legger snittet av de 15 siste verdier\ni flow\n- Nåverdi - snittverdi = snittstatus\n","x":80,"y":420,"wires":[]},{"id":"281ad02fbb5cce21","type":"join","z":"3a673018e01cbc4a","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"2","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":270,"y":540,"wires":[["d41473157de5715d"]]},{"id":"09db437a2d0579fd","type":"switch","z":"3a673018e01cbc4a","name":"<=>","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"-0.15","vt":"num"},{"t":"btwn","v":"-0.15","vt":"num","v2":"0.15","v2t":"num"},{"t":"gt","v":"0.15","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":550,"y":520,"wires":[["babdb7b572f467ec"],["bc1bb52f323beae6"],["28ccc26173fa65fc"]]},{"id":"0556ea56822cb19c","type":"stoptimer","z":"3a673018e01cbc4a","duration":"1","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":355,"y":500,"wires":[["281ad02fbb5cce21","80645a12afc26e6b"],[]],"l":false},{"id":"babdb7b572f467ec","type":"change","z":"3a673018e01cbc4a","name":"Synkende","rules":[{"t":"set","p":"tempstue1etg","pt":"global","to":"synkende","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":500,"wires":[["386ecdbef56deda6"]]},{"id":"386ecdbef56deda6","type":"debug","z":"3a673018e01cbc4a","name":"TempSnitt 1 etg","active":false,"tosidebar":false,"console":false,"tostatus":true,"complete":"$globalContext('tempstue1etg')","targetType":"jsonata","statusVal":"$globalContext('tempstue1etg')","statusType":"auto","x":1000,"y":520,"wires":[]},{"id":"9c4c70f19df37106","type":"join","z":"3a673018e01cbc4a","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"2","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":270,"y":680,"wires":[["be1e14ef9bceb980"]]},{"id":"bc1bb52f323beae6","type":"change","z":"3a673018e01cbc4a","name":"Stabil","rules":[{"t":"set","p":"tempstue1etg","pt":"global","to":"stabil","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":520,"wires":[["386ecdbef56deda6"]]},{"id":"28ccc26173fa65fc","type":"change","z":"3a673018e01cbc4a","name":"Stigende","rules":[{"t":"set","p":"tempstue1etg","pt":"global","to":"stigende","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":540,"wires":[["386ecdbef56deda6"]]},{"id":"ee1709c9065ce320","type":"debug","z":"3a673018e01cbc4a","name":"TempSnitt 2 etg","active":false,"tosidebar":false,"console":false,"tostatus":true,"complete":"$globalContext('tempstue2etg')","targetType":"jsonata","statusVal":"$globalContext('tempstue2etg')","statusType":"auto","x":1000,"y":660,"wires":[]},{"id":"4e0ba73cc830a918","type":"change","z":"3a673018e01cbc4a","name":"Synkende","rules":[{"t":"set","p":"tempstue2etg","pt":"global","to":"synkende","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":640,"wires":[["ee1709c9065ce320"]]},{"id":"193efd0d31bdee94","type":"change","z":"3a673018e01cbc4a","name":"Stabil","rules":[{"t":"set","p":"tempstue2etg","pt":"global","to":"stabil","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":660,"wires":[["ee1709c9065ce320"]]},{"id":"313836e22544b095","type":"change","z":"3a673018e01cbc4a","name":"Stigende","rules":[{"t":"set","p":"tempstue2etg","pt":"global","to":"stigende","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":680,"wires":[["ee1709c9065ce320"]]},{"id":"07bfb7ec09665da8","type":"stoptimer","z":"3a673018e01cbc4a","duration":"1","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":355,"y":640,"wires":[["46b6a6a059ac159d","9c4c70f19df37106"],[]],"l":false},{"id":"ae4efce4b2c15a14","type":"api-current-state","z":"3a673018e01cbc4a","name":"Utetemp","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.utetemp_justert","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":100,"y":940,"wires":[["5c9d1f8c9d6081bb","a42b6cc072a763b8"]]},{"id":"5c9d1f8c9d6081bb","type":"smooth","z":"3a673018e01cbc4a","name":"Snitt20","property":"payload","action":"mean","count":"20","round":"1","mult":"single","reduce":false,"x":260,"y":920,"wires":[["fe8fa68bb2aea83c","ce0ddaf135998d71"]]},{"id":"a42b6cc072a763b8","type":"join","z":"3a673018e01cbc4a","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"2","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":270,"y":960,"wires":[["a6d1e133451e7ba2"]]},{"id":"da3ff9105b04b3f1","type":"debug","z":"3a673018e01cbc4a","name":"TempSnitt Ute","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"$globalContext('utetemp')","targetType":"jsonata","statusVal":"$globalContext('utetemp')","statusType":"auto","x":1000,"y":940,"wires":[]},{"id":"9285aedf3aa3b8e9","type":"change","z":"3a673018e01cbc4a","name":"Synkende","rules":[{"t":"set","p":"utetemp","pt":"global","to":"synkende","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":920,"wires":[["da3ff9105b04b3f1"]]},{"id":"86cf0d0305354cd1","type":"change","z":"3a673018e01cbc4a","name":"Stabil","rules":[{"t":"set","p":"utetemp","pt":"global","to":"stabil","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":940,"wires":[["da3ff9105b04b3f1"]]},{"id":"d010e76a88290faf","type":"change","z":"3a673018e01cbc4a","name":"Stigende","rules":[{"t":"set","p":"utetemp","pt":"global","to":"stigende","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":960,"wires":[["da3ff9105b04b3f1"]]},{"id":"e5e722207336a3b1","type":"switch","z":"3a673018e01cbc4a","name":"<=>","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"-0.15","vt":"num"},{"t":"btwn","v":"-0.15","vt":"num","v2":"0.15","v2t":"num"},{"t":"gt","v":"0.15","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":550,"y":660,"wires":[["4e0ba73cc830a918"],["193efd0d31bdee94"],["313836e22544b095"]]},{"id":"d5af0bb6a60be687","type":"switch","z":"3a673018e01cbc4a","name":"<=>","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"-0.1","vt":"num"},{"t":"btwn","v":"-0.1","vt":"num","v2":"0.1","v2t":"num"},{"t":"gt","v":"0.1","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":550,"y":940,"wires":[["9285aedf3aa3b8e9"],["86cf0d0305354cd1"],["d010e76a88290faf"]]},{"id":"0284f83fd8371a83","type":"api-current-state","z":"3a673018e01cbc4a","name":"Kjøkken","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.ble_temperature_ble_temp_kjokken","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":100,"y":800,"wires":[["dacc53fad06db660","e382759cd18e9e55"]]},{"id":"dacc53fad06db660","type":"smooth","z":"3a673018e01cbc4a","name":"Snitt30","property":"payload","action":"mean","count":"30","round":"1","mult":"single","reduce":false,"x":260,"y":780,"wires":[["60d43073bce10bea","4defd671001dcd63"]]},{"id":"e382759cd18e9e55","type":"join","z":"3a673018e01cbc4a","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"2","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":270,"y":820,"wires":[["97fda8ca65a0ab06"]]},{"id":"1d9de13af844ba08","type":"debug","z":"3a673018e01cbc4a","name":"TempSnitt Kjøkken","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"$globalContext('tempsnittkjokkens')","targetType":"jsonata","statusVal":"$globalContext('tempsnittkjokkens')","statusType":"auto","x":1010,"y":800,"wires":[]},{"id":"e411bc0233ea08d6","type":"change","z":"3a673018e01cbc4a","name":"Synkende","rules":[{"t":"set","p":"tempsnittkjokkens","pt":"global","to":"synkende","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":780,"wires":[["1d9de13af844ba08"]]},{"id":"3860b802cf317510","type":"change","z":"3a673018e01cbc4a","name":"Stabil","rules":[{"t":"set","p":"tempsnittkjokkens","pt":"global","to":"stabil","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":800,"wires":[["1d9de13af844ba08"]]},{"id":"48100f9763de56d6","type":"change","z":"3a673018e01cbc4a","name":"Stigende","rules":[{"t":"set","p":"tempsnittkjokkens","pt":"global","to":"stigende","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":820,"wires":[["1d9de13af844ba08"]]},{"id":"60d43073bce10bea","type":"stoptimer","z":"3a673018e01cbc4a","duration":"1","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":355,"y":780,"wires":[["e382759cd18e9e55","0c2e59b1fe05bcf5"],[]],"l":false},{"id":"a74677d77901bdf0","type":"switch","z":"3a673018e01cbc4a","name":"<=>","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"-0.15","vt":"num"},{"t":"btwn","v":"-0.15","vt":"num","v2":"0.15","v2t":"num"},{"t":"gt","v":"0.15","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":550,"y":800,"wires":[["e411bc0233ea08d6"],["3860b802cf317510"],["48100f9763de56d6"]]},{"id":"894dbb0f194d9ed8","type":"change","z":"3a673018e01cbc4a","name":"snittkjokken","rules":[{"t":"move","p":"snittkjokken","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":290,"y":1260,"wires":[["dc7f36026535b4eb"]]},{"id":"bc4d0040889afa6b","type":"change","z":"3a673018e01cbc4a","name":"snittstue2etg","rules":[{"t":"move","p":"snittstue2etg","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":290,"y":1300,"wires":[["dc7f36026535b4eb"]]},{"id":"f9d2b43f86167673","type":"change","z":"3a673018e01cbc4a","name":"snittstue1etg","rules":[{"t":"move","p":"snittstue1etg","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":290,"y":1220,"wires":[["dc7f36026535b4eb"]]},{"id":"9898d4cb8926ed3d","type":"join","z":"3a673018e01cbc4a","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"2","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":590,"y":1300,"wires":[["84d7609c9dd21d21"]]},{"id":"48074d6d7b96cf0c","type":"smooth","z":"3a673018e01cbc4a","name":"Snitt60","property":"payload","action":"mean","count":"60","round":"2","mult":"single","reduce":false,"x":600,"y":1220,"wires":[["77c7b6b1b63b18e5"]]},{"id":"77c7b6b1b63b18e5","type":"stoptimer","z":"3a673018e01cbc4a","duration":"1","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":695,"y":1220,"wires":[["9898d4cb8926ed3d","c42d1ee897d01cd8","8883b301eef6305c"],[]],"l":false},{"id":"a46b312f6bca13ac","type":"debug","z":"3a673018e01cbc4a","name":"TempSnitt115","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"$globalContext('tempsnitt115')","targetType":"jsonata","statusVal":"$globalContext('tempsnittkjokkens')","statusType":"auto","x":1140,"y":1260,"wires":[]},{"id":"2e26b7c4aa84a201","type":"change","z":"3a673018e01cbc4a","name":"Synkende","rules":[{"t":"set","p":"tempsnitt115","pt":"global","to":"synkende","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":860,"y":1240,"wires":[["a46b312f6bca13ac"]]},{"id":"0634d369bc051f6a","type":"change","z":"3a673018e01cbc4a","name":"Stabil","rules":[{"t":"set","p":"tempsnitt115","pt":"global","to":"stabil","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":1260,"wires":[["a46b312f6bca13ac"]]},{"id":"fb5f9b026b39ac97","type":"change","z":"3a673018e01cbc4a","name":"Stigende","rules":[{"t":"set","p":"tempsnitt115","pt":"global","to":"stigende","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":860,"y":1280,"wires":[["a46b312f6bca13ac"]]},{"id":"77c19a8059d285d9","type":"switch","z":"3a673018e01cbc4a","name":"<=>","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"-0.1","vt":"num"},{"t":"btwn","v":"-0.1","vt":"num","v2":"0.1","v2t":"num"},{"t":"gt","v":"0.1","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":690,"y":1260,"wires":[["2e26b7c4aa84a201"],["0634d369bc051f6a"],["fb5f9b026b39ac97"]]},{"id":"892bbb3ae558ee73","type":"debug","z":"3a673018e01cbc4a","name":"utregnet","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1000,"y":1300,"wires":[]},{"id":"dc7f36026535b4eb","type":"join","z":"3a673018e01cbc4a","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"3","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":450,"y":1220,"wires":[["9434d645d3f4b759"]]},{"id":"9434d645d3f4b759","type":"calculator","z":"3a673018e01cbc4a","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"sum","constant":"","round":false,"decimals":0,"x":450,"y":1260,"wires":[["81f6c1ed2c631a82"]]},{"id":"127b48b6b24e7d89","type":"comment","z":"3a673018e01cbc4a","name":"Snitt 115","info":"","x":80,"y":1220,"wires":[]},{"id":"619b6234c9531916","type":"openweathermap","z":"3a673018e01cbc4a","name":"","wtype":"forecast","lon":"","lat":"","city":"Sarpsborg","country":"Norway","language":"en","x":290,"y":2700,"wires":[["f535bd5e5be7bcda","08aad0eaecf65407","64a01e661237dd80","ecc4edaf5db20ffb","fe0c186e7c36f9b5","749b2a3472ff4648"]]},{"id":"f535bd5e5be7bcda","type":"function","z":"3a673018e01cbc4a","name":"Vær","func":"msg.payload = msg.payload[0].weather[0].main\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":450,"y":2560,"wires":[["03f2f84df877af77"]]},{"id":"08aad0eaecf65407","type":"function","z":"3a673018e01cbc4a","name":"Vindhastighet","func":"msg.payload = msg.payload[0].wind.speed\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":480,"y":2700,"wires":[["50d15bcd47d99448"]]},{"id":"03f2f84df877af77","type":"switch","z":"3a673018e01cbc4a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":630,"y":2560,"wires":[[]]},{"id":"50d15bcd47d99448","type":"switch","z":"3a673018e01cbc4a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"7","vt":"num"},{"t":"btwn","v":"6.9","vt":"num","v2":"4.1","v2t":"num"},{"t":"lte","v":"4","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":630,"y":2700,"wires":[["8e8105805d805801"],["ebf52b0f415a944c"],["48b490cd55007df0"]]},{"id":"ff5dc5eabc3d7292","type":"api-current-state","z":"3a673018e01cbc4a","name":"Vedovn","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.lumi_lumi_weather_temperature","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":100,"y":1080,"wires":[["998271626aa21be0","598ebaf1b6f1a8cc"]]},{"id":"998271626aa21be0","type":"join","z":"3a673018e01cbc4a","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"2","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":270,"y":1100,"wires":[["e11ff1cfeaa3b759"]]},{"id":"aea81719214442cc","type":"debug","z":"3a673018e01cbc4a","name":"TempSnitt vedovn","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"$globalContext('tempsnittvedovn')","targetType":"jsonata","statusVal":"$globalContext('tempsnittkjokkens')","statusType":"auto","x":1010,"y":1080,"wires":[]},{"id":"aa59cfea4e32b9bc","type":"change","z":"3a673018e01cbc4a","name":"Synkende","rules":[{"t":"set","p":"tempsnittvedovn","pt":"global","to":"synkende","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":1060,"wires":[["aea81719214442cc"]]},{"id":"c68865515ecd617e","type":"change","z":"3a673018e01cbc4a","name":"Stabil","rules":[{"t":"set","p":"tempsnittvedovn","pt":"global","to":"stabil","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":1080,"wires":[["aea81719214442cc"]]},{"id":"be3a69af4e497886","type":"change","z":"3a673018e01cbc4a","name":"Stigende","rules":[{"t":"set","p":"tempsnittvedovn","pt":"global","to":"stigende","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":1100,"wires":[["aea81719214442cc"]]},{"id":"499f4236a9390abc","type":"stoptimer","z":"3a673018e01cbc4a","duration":"1","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":355,"y":1060,"wires":[["998271626aa21be0","d075e35b47c38db3"],[]],"l":false},{"id":"f3cbce53346d6fc6","type":"switch","z":"3a673018e01cbc4a","name":"<=>","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"-1","vt":"num"},{"t":"btwn","v":"-1","vt":"num","v2":"1","v2t":"num"},{"t":"gt","v":"1","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":550,"y":1080,"wires":[["aa59cfea4e32b9bc"],["c68865515ecd617e"],["be3a69af4e497886"]]},{"id":"81f6c1ed2c631a82","type":"function","z":"3a673018e01cbc4a","name":"/3","func":"var sumgrader = msg.payload;\nmsg.payload = (sumgrader / 3).toFixed(2);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":450,"y":1300,"wires":[["48074d6d7b96cf0c","9898d4cb8926ed3d"]]},{"id":"e5850395d827659f","type":"comment","z":"3a673018e01cbc4a","name":"< Mindre enn | > Større enn","info":"","x":1280,"y":160,"wires":[]},{"id":"fe8fa68bb2aea83c","type":"stoptimer","z":"3a673018e01cbc4a","duration":"1","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":355,"y":920,"wires":[["a42b6cc072a763b8","4b80f3d7d58d6c8a"],[]],"l":false},{"id":"80645a12afc26e6b","type":"debug","z":"3a673018e01cbc4a","name":"Snitt","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":450,"y":480,"wires":[]},{"id":"46b6a6a059ac159d","type":"debug","z":"3a673018e01cbc4a","name":"Snitt","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":450,"y":620,"wires":[]},{"id":"0c2e59b1fe05bcf5","type":"debug","z":"3a673018e01cbc4a","name":"Snitt","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":450,"y":760,"wires":[]},{"id":"4b80f3d7d58d6c8a","type":"debug","z":"3a673018e01cbc4a","name":"Snitt","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":450,"y":900,"wires":[]},{"id":"d075e35b47c38db3","type":"debug","z":"3a673018e01cbc4a","name":"Snitt","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":450,"y":1040,"wires":[]},{"id":"598ebaf1b6f1a8cc","type":"smooth","z":"3a673018e01cbc4a","name":"Snitt5","property":"payload","action":"mean","count":"5","round":"1","mult":"single","reduce":false,"x":250,"y":1060,"wires":[["499f4236a9390abc"]]},{"id":"dda3810557107149","type":"change","z":"3a673018e01cbc4a","name":"flow","rules":[{"t":"move","p":"payload","pt":"msg","to":"snittstue1etg","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":460,"wires":[[]]},{"id":"c79dc52e1899bf8a","type":"change","z":"3a673018e01cbc4a","name":"flow","rules":[{"t":"move","p":"payload","pt":"msg","to":"snittstue2etg","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":600,"wires":[[]]},{"id":"4defd671001dcd63","type":"change","z":"3a673018e01cbc4a","name":"flow","rules":[{"t":"move","p":"payload","pt":"msg","to":"snittkjokken","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":740,"wires":[[]]},{"id":"8399f66287bd4916","type":"stoptimer","z":"3a673018e01cbc4a","duration":"5","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":55,"y":1260,"wires":[["f9d2b43f86167673","894dbb0f194d9ed8","bc4d0040889afa6b"],[]],"l":false},{"id":"c42d1ee897d01cd8","type":"change","z":"3a673018e01cbc4a","name":"flow","rules":[{"t":"move","p":"payload","pt":"msg","to":"snitt115","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1200,"wires":[[]]},{"id":"42db78c91574994c","type":"api-current-state","z":"3a673018e01cbc4a","name":"Read Nord Pool","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.nordpool_kwh_oslo_nok_2_10_025","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":260,"y":80,"wires":[["fb34f7606a302e22"]]},{"id":"edfa3e96b3ba95f8","type":"ps-elvia-add-tariff","z":"3a673018e01cbc4a","name":"Add Elvia Grid Tariff","elviaConfig":"c49afd6609db2121","tariffKey":"standard_south","range":"today","x":630,"y":60,"wires":[["00878c825bd3d7fd"]]},{"id":"fb34f7606a302e22","type":"ps-receive-price","z":"3a673018e01cbc4a","name":"Price Receiver","x":440,"y":60,"wires":[["edfa3e96b3ba95f8"]]},{"id":"74bbcd94bdfacf4f","type":"cronplus","z":"3a673018e01cbc4a","name":"XX:00:05","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"5 0 * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":100,"y":60,"wires":[["42db78c91574994c"]]},{"id":"759a40a6874c950e","type":"change","z":"3a673018e01cbc4a","name":"SmartVarmeNordPoolTrue","rules":[{"t":"set","p":"SmartVarmeNordPool","pt":"global","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":40,"wires":[["9ff0aca7d0fe7bfc"]]},{"id":"6bbf04120fce4f99","type":"change","z":"3a673018e01cbc4a","name":"SmartVarmeNordPoolFalse","rules":[{"t":"set","p":"SmartVarmeNordPool","pt":"global","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":80,"wires":[["9ff0aca7d0fe7bfc"]]},{"id":"7b4b771494f7597a","type":"comment","z":"3a673018e01cbc4a","name":"SmartVarme Nordpool","info":"BestSave fra PowerSaver setter flow = true\nhvis strømpris er lav","x":120,"y":20,"wires":[]},{"id":"13b80f3abe4abd68","type":"cronplus","z":"3a673018e01cbc4a","name":"XX:00:05","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"5 0 * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":100,"y":180,"wires":[["c5a52427aac67d2a"]]},{"id":"aaca4c9800282b1b","type":"simpletime","z":"3a673018e01cbc4a","name":"Dato","mydate":false,"myymd":false,"myyear":false,"mymonth":false,"mymonthn":false,"mydom":true,"mydoy":false,"myday":false,"myhourpm":false,"myhour":false,"mytime":false,"mytimes":false,"myminute":false,"myminutes":false,"mysecond":false,"mymillis":false,"myepoch":false,"myrawdate":false,"mypm":false,"x":91.00001525878906,"y":348.0000066757202,"wires":[["3f6a567209bb41a1"]]},{"id":"3f6a567209bb41a1","type":"function","z":"3a673018e01cbc4a","name":"Dato","func":"var mydate1 = msg.mydom;\n\nmsg.payload = mydate1;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":211.00001525878906,"y":348.0000066757202,"wires":[["f04a2b9a813d7abf"]]},{"id":"2f24ea4d1e3759f1","type":"api-current-state","z":"3a673018e01cbc4a","name":"Est sub pris","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.estimated_subsidy_roedveien_115","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":132.0000114440918,"y":297.0000057220459,"wires":[["063312dc39bdc043"]]},{"id":"60a6deaf8a84a2a2","type":"comment","z":"3a673018e01cbc4a","name":"SmartVarme est strømstøttepris","info":"- Setter flow = true hvis NP pris er\nlavere en estimert strømstøttepris\n- Sikrere jo lengre ut i mnd en er\n- Forskjellige satser:\n  Dag 1-10: NP - Est støtte - 2kr\n  Dag 11-20: NP - Est støtte - 1kr\n  Dag 21-25: NP - Est støtte - 0,5kr\n  Dag 26-31: NP - Est støtte - 0,2kr","x":150,"y":140,"wires":[]},{"id":"cb51e3598749661a","type":"change","z":"3a673018e01cbc4a","name":"SmartVarmeEstSS","rules":[{"t":"set","p":"SmartVarmeEstSS","pt":"global","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1031.000015258789,"y":268.0000066757202,"wires":[["7f9578c112e0d8fc"]]},{"id":"5e3427a3f4c2f824","type":"change","z":"3a673018e01cbc4a","name":"SmartVarmeEstSS","rules":[{"t":"set","p":"SmartVarmeEstSS","pt":"global","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1031.000015258789,"y":308.0000066757202,"wires":[["7f9578c112e0d8fc"]]},{"id":"9ff0aca7d0fe7bfc","type":"debug","z":"3a673018e01cbc4a","name":"Status","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1350,"y":60,"wires":[]},{"id":"7f9578c112e0d8fc","type":"debug","z":"3a673018e01cbc4a","name":"Status","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1231.000015258789,"y":288.0000066757202,"wires":[]},{"id":"8e8105805d805801","type":"change","z":"3a673018e01cbc4a","name":"Mye","rules":[{"t":"set","p":"vind","pt":"global","to":"mye","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":770,"y":2660,"wires":[["03718b9592f949ee"]]},{"id":"ebf52b0f415a944c","type":"change","z":"3a673018e01cbc4a","name":"Moderat","rules":[{"t":"set","p":"vind","pt":"global","to":"moderat","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":780,"y":2700,"wires":[["03718b9592f949ee"]]},{"id":"48b490cd55007df0","type":"change","z":"3a673018e01cbc4a","name":"Lite","rules":[{"t":"set","p":"vind","pt":"global","to":"lite","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":770,"y":2740,"wires":[["03718b9592f949ee"]]},{"id":"64a01e661237dd80","type":"function","z":"3a673018e01cbc4a","name":"Temp","func":"msg.payload = msg.payload[0].main.temp;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":450,"y":2800,"wires":[["21e783c9e3c8eac7"]]},{"id":"ecc4edaf5db20ffb","type":"function","z":"3a673018e01cbc4a","name":"FeelsLike","func":"msg.payload = msg.payload[0].main.feels_like;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":2840,"wires":[["a936b0dd68c6e439"]]},{"id":"21e783c9e3c8eac7","type":"join","z":"3a673018e01cbc4a","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"2","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":650,"y":2820,"wires":[["651fcf9f082bae23"]]},{"id":"97060252826bc315","type":"debug","z":"3a673018e01cbc4a","name":"debug 43","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":780,"y":2860,"wires":[]},{"id":"a936b0dd68c6e439","type":"stoptimer","z":"3a673018e01cbc4a","duration":"1","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":555,"y":2840,"wires":[["21e783c9e3c8eac7"],[]],"l":false},{"id":"a973118442846911","type":"switch","z":"3a673018e01cbc4a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"5","vt":"num"},{"t":"btwn","v":"4.9","vt":"num","v2":"3.1","v2t":"num"},{"t":"btwn","v":"3","vt":"num","v2":"2.1","v2t":"num"},{"t":"lte","v":"2","vt":"num"}],"checkall":"true","repair":false,"outputs":4,"x":910,"y":2820,"wires":[["718168d31a222fb3"],["16d8c51b40c85508"],["e7ce4e49ce03ee49"],["44c0d9a74e2e26c1"]]},{"id":"84d7609c9dd21d21","type":"function","z":"3a673018e01cbc4a","name":"Diff","func":"var naverdi = msg.payload[0];\nvar snittverdi = msg.payload[1];\n\nmsg.payload = (naverdi - snittverdi).toFixed(3);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":710,"y":1300,"wires":[["892bbb3ae558ee73","77c19a8059d285d9"]]},{"id":"e11ff1cfeaa3b759","type":"function","z":"3a673018e01cbc4a","name":"Diff","func":"var naverdi = msg.payload[0];\nvar snittverdi = msg.payload[1];\n\nmsg.payload = naverdi - snittverdi;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":410,"y":1100,"wires":[["f3cbce53346d6fc6","76533097c19669fe"]]},{"id":"a6d1e133451e7ba2","type":"function","z":"3a673018e01cbc4a","name":"Diff","func":"var naverdi = msg.payload[0];\nvar snittverdi = msg.payload[1];\n\nmsg.payload = naverdi - snittverdi;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":415.765625,"y":962,"wires":[["d5af0bb6a60be687","ce105a50ae63bc43"]]},{"id":"97fda8ca65a0ab06","type":"function","z":"3a673018e01cbc4a","name":"Diff","func":"var naverdi = msg.payload[0];\nvar snittverdi = msg.payload[1];\n\nmsg.payload = naverdi - snittverdi;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":410,"y":820,"wires":[["a74677d77901bdf0","5ac974b116f10d2f"]]},{"id":"be1e14ef9bceb980","type":"function","z":"3a673018e01cbc4a","name":"Diff","func":"var naverdi = msg.payload[0];\nvar snittverdi = msg.payload[1];\n\nmsg.payload = naverdi - snittverdi;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":410,"y":680,"wires":[["e5e722207336a3b1","b7e3cc72bcf8e8e9"]]},{"id":"d41473157de5715d","type":"function","z":"3a673018e01cbc4a","name":"Diff","func":"var naverdi = msg.payload[0];\nvar snittverdi = msg.payload[1];\n\nmsg.payload = naverdi - snittverdi;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":410,"y":540,"wires":[["09db437a2d0579fd","f62d8b29d3d30bc9"]]},{"id":"76533097c19669fe","type":"debug","z":"3a673018e01cbc4a","name":"utregnet","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":560,"y":1120,"wires":[]},{"id":"ce105a50ae63bc43","type":"debug","z":"3a673018e01cbc4a","name":"utregnet","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":560,"y":980,"wires":[]},{"id":"5ac974b116f10d2f","type":"debug","z":"3a673018e01cbc4a","name":"utregnet","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":560,"y":840,"wires":[]},{"id":"b7e3cc72bcf8e8e9","type":"debug","z":"3a673018e01cbc4a","name":"utregnet","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":560,"y":700,"wires":[]},{"id":"f62d8b29d3d30bc9","type":"debug","z":"3a673018e01cbc4a","name":"utregnet","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":560,"y":560,"wires":[]},{"id":"651fcf9f082bae23","type":"function","z":"3a673018e01cbc4a","name":"Diff","func":"var naverdi = msg.payload[0];\nvar snittverdi = msg.payload[1];\n\nmsg.payload = naverdi - snittverdi;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":770,"y":2820,"wires":[["97060252826bc315","a973118442846911"]]},{"id":"718168d31a222fb3","type":"change","z":"3a673018e01cbc4a","name":"Ille surt","rules":[{"t":"set","p":"feelslike","pt":"global","to":"illesurt","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1060,"y":2760,"wires":[["3c7cdf21f468acc4"]]},{"id":"16d8c51b40c85508","type":"change","z":"3a673018e01cbc4a","name":"Surt","rules":[{"t":"set","p":"feelslike","pt":"global","to":"surt","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":2800,"wires":[["3c7cdf21f468acc4"]]},{"id":"e7ce4e49ce03ee49","type":"change","z":"3a673018e01cbc4a","name":"Noe surt","rules":[{"t":"set","p":"feelslike","pt":"global","to":"noesurt","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1060,"y":2840,"wires":[["3c7cdf21f468acc4"]]},{"id":"44c0d9a74e2e26c1","type":"change","z":"3a673018e01cbc4a","name":"Ingen","rules":[{"t":"set","p":"feelslike","pt":"global","to":"ingen","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":2880,"wires":[["3c7cdf21f468acc4"]]},{"id":"3c7cdf21f468acc4","type":"debug","z":"3a673018e01cbc4a","name":"debug 44","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"$globalContext('feelslike')","targetType":"jsonata","statusVal":"payload","statusType":"auto","x":1220,"y":2820,"wires":[]},{"id":"00878c825bd3d7fd","type":"ps-strategy-lowest-price","z":"3a673018e01cbc4a","name":"Lowest Price","fromTime":"00","toTime":"00","hoursOn":"12","maxPrice":"","doNotSplit":false,"sendCurrentValueWhenRescheduling":true,"outputIfNoSchedule":"true","outputOutsidePeriod":"false","contextStorage":"Minne","x":810,"y":60,"wires":[["e6d7cbd964569e10"],["ba8e0f1d306b53d2"],["6d7e39bfd42b1942"]]},{"id":"ba8aca5bdff4d83c","type":"api-current-state","z":"3a673018e01cbc4a","name":"Read Nord Pool","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.nordpool_kwh_oslo_nok_2_10_025","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"for":0,"forType":"num","forUnits":"minutes","x":141.00001525878906,"y":248.00000667572021,"wires":[["dc06159f1bc08972"]]},{"id":"dc06159f1bc08972","type":"join","z":"3a673018e01cbc4a","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"1","count":"3","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":391.00001525878906,"y":248.00000667572021,"wires":[["7dba410623321c74"]]},{"id":"063312dc39bdc043","type":"stoptimer","z":"3a673018e01cbc4a","duration":"200","units":"Millisecond","payloadtype":"num","payloadval":"0","name":"","x":236.00001525878906,"y":288.0000066757202,"wires":[["dc06159f1bc08972"],[]],"l":false},{"id":"7dba410623321c74","type":"function","z":"3a673018e01cbc4a","name":"Diff","func":"var nordpool = msg.payload[0];\nvar estimert = msg.payload[1];\nvar dato = msg.payload[2];\n\nmsg.payload = nordpool - estimert;\nmsg.topic = dato;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":391.00001525878906,"y":328.0000066757202,"wires":[["2d683968652a0954","698342c0a8dfaf84"]]},{"id":"2d683968652a0954","type":"switch","z":"3a673018e01cbc4a","name":"","property":"topic","propertyType":"msg","rules":[{"t":"btwn","v":"1","vt":"num","v2":"10","v2t":"num"},{"t":"btwn","v":"11","vt":"num","v2":"20","v2t":"num"},{"t":"btwn","v":"21","vt":"num","v2":"25","v2t":"num"},{"t":"btwn","v":"26","vt":"num","v2":"31","v2t":"num"}],"checkall":"true","repair":false,"outputs":4,"x":531.0000152587891,"y":288.0000066757202,"wires":[["ea78e30af9f8b65f"],["4f60639f75f85992"],["cba15560574b1ee4"],["3dfaf752b7a2d951"]]},{"id":"f04a2b9a813d7abf","type":"stoptimer","z":"3a673018e01cbc4a","duration":"400","units":"Millisecond","payloadtype":"num","payloadval":"0","name":"","x":296.00001525878906,"y":348.0000066757202,"wires":[["dc06159f1bc08972"],[]],"l":false},{"id":"ea78e30af9f8b65f","type":"switch","z":"3a673018e01cbc4a","name":"<-2","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"-2","vt":"num"},{"t":"gt","v":"-2","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":671.0000152587891,"y":228.00000667572021,"wires":[["79d943d6add76bda"],["3927c9c950fee8be"]]},{"id":"4f60639f75f85992","type":"switch","z":"3a673018e01cbc4a","name":"<-1","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"-1","vt":"num"},{"t":"gt","v":"-1","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":671.0000152587891,"y":268.0000066757202,"wires":[["79d943d6add76bda"],["3927c9c950fee8be"]]},{"id":"cba15560574b1ee4","type":"switch","z":"3a673018e01cbc4a","name":">0.5","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"-0.5","vt":"num"},{"t":"gt","v":"-0.5","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":671.0000152587891,"y":308.0000066757202,"wires":[["79d943d6add76bda"],["3927c9c950fee8be"]]},{"id":"3dfaf752b7a2d951","type":"switch","z":"3a673018e01cbc4a","name":">0.2","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"-0.2","vt":"num"},{"t":"gt","v":"-0.2","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":671.0000152587891,"y":348.0000066757202,"wires":[["79d943d6add76bda"],["3927c9c950fee8be"]]},{"id":"79d943d6add76bda","type":"change","z":"3a673018e01cbc4a","name":"true","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":851.0000152587891,"y":268.0000066757202,"wires":[["cb51e3598749661a"]]},{"id":"3927c9c950fee8be","type":"change","z":"3a673018e01cbc4a","name":"false","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":851.0000152587891,"y":308.0000066757202,"wires":[["5e3427a3f4c2f824"]]},{"id":"6d7e39bfd42b1942","type":"debug","z":"3a673018e01cbc4a","name":"debug 50","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":820,"y":140,"wires":[]},{"id":"e6d7cbd964569e10","type":"change","z":"3a673018e01cbc4a","name":"true","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":970,"y":40,"wires":[["759a40a6874c950e"]]},{"id":"ba8e0f1d306b53d2","type":"change","z":"3a673018e01cbc4a","name":"false","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":970,"y":80,"wires":[["6bbf04120fce4f99"]]},{"id":"03718b9592f949ee","type":"debug","z":"3a673018e01cbc4a","name":"debug 51","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"$globalContext('vind')","targetType":"jsonata","statusVal":"payload","statusType":"auto","x":940,"y":2700,"wires":[]},{"id":"8883b301eef6305c","type":"ha-sensor","z":"3a673018e01cbc4a","name":"Tempsnitt 115","entityConfig":"9fbfaa7b1f96c3d3","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":980,"y":1200,"wires":[[]]},{"id":"698342c0a8dfaf84","type":"debug","z":"3a673018e01cbc4a","name":"Diff","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":531.0000152587891,"y":348.0000066757202,"wires":[]},{"id":"fe0c186e7c36f9b5","type":"debug","z":"3a673018e01cbc4a","name":"debug 52","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":280,"y":2760,"wires":[]},{"id":"749b2a3472ff4648","type":"function","z":"3a673018e01cbc4a","name":"Vindretning","func":"msg.payload = msg.payload[0].wind.deg\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":2300,"wires":[["906cd5b1c8d7d458"]]},{"id":"906cd5b1c8d7d458","type":"switch","z":"3a673018e01cbc4a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"btwn","v":"348.75","vt":"num","v2":"360","v2t":"num"},{"t":"btwn","v":"0","vt":"num","v2":"11.25","v2t":"num"},{"t":"btwn","v":"11.25","vt":"num","v2":"33.75","v2t":"num"},{"t":"btwn","v":"33.75","vt":"num","v2":"56.25","v2t":"num"},{"t":"btwn","v":"56.25","vt":"num","v2":"78.75","v2t":"num"},{"t":"btwn","v":"78.75","vt":"num","v2":"101.25","v2t":"num"},{"t":"btwn","v":"101.25","vt":"num","v2":"123.75","v2t":"num"},{"t":"btwn","v":"123.75","vt":"num","v2":"146.25","v2t":"num"},{"t":"btwn","v":"146.25","vt":"num","v2":"168.75","v2t":"num"},{"t":"btwn","v":"168.75","vt":"num","v2":"191.25","v2t":"num"},{"t":"btwn","v":"191.25","vt":"num","v2":"213.75","v2t":"num"},{"t":"btwn","v":"213.75","vt":"num","v2":"236.25","v2t":"num"},{"t":"btwn","v":"236.25","vt":"num","v2":"258.75","v2t":"num"},{"t":"btwn","v":"258.75","vt":"num","v2":"281.25","v2t":"num"},{"t":"btwn","v":"281.25","vt":"num","v2":"303.75","v2t":"num"},{"t":"btwn","v":"303.75","vt":"num","v2":"326.25","v2t":"num"},{"t":"btwn","v":"326.25","vt":"num","v2":"348.75","v2t":"num"}],"checkall":"true","repair":false,"outputs":17,"x":710,"y":2300,"wires":[["a976e5ac967079a6"],["40574deda9502f75"],["b82d6e1aaef8763f"],["f2ba9b1444350a96"],["60962ae5f8349766"],["ee4210f92fce2510"],["c77fbe000944e70e"],["bd0d44928556794c"],["33249bb4347e865a"],["5f2ebf693522f2a7"],["7f1b5fe8f5125903"],["1caf84709868f8c8"],["e896d2bba95aa04e"],["9e54de599e3cfc76"],["3b4f1a4a9f02870e"],["aaed57253ae4260c"],["9b128873b8064d49"]]},{"id":"a976e5ac967079a6","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Nord","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":2140,"wires":[["85dfbb6e7330964c"]]},{"id":"40574deda9502f75","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Nord","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":2160,"wires":[["85dfbb6e7330964c"]]},{"id":"b82d6e1aaef8763f","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Nord NordØst","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":2180,"wires":[["85dfbb6e7330964c"]]},{"id":"f2ba9b1444350a96","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"NordØst","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":2200,"wires":[["85dfbb6e7330964c"]]},{"id":"60962ae5f8349766","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Øst NordØst","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":2220,"wires":[["85dfbb6e7330964c"]]},{"id":"ee4210f92fce2510","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Øst","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":2240,"wires":[["85dfbb6e7330964c"]]},{"id":"c77fbe000944e70e","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Øst SørØst","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":2260,"wires":[["85dfbb6e7330964c"]]},{"id":"bd0d44928556794c","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"SørØst","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":2280,"wires":[["85dfbb6e7330964c"]]},{"id":"33249bb4347e865a","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Sør SørØst","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":2300,"wires":[["85dfbb6e7330964c"]]},{"id":"5f2ebf693522f2a7","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Sør","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":2320,"wires":[["85dfbb6e7330964c"]]},{"id":"7f1b5fe8f5125903","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Sør SørVest","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":2340,"wires":[["85dfbb6e7330964c"]]},{"id":"1caf84709868f8c8","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"SørVest","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":2360,"wires":[["85dfbb6e7330964c"]]},{"id":"e896d2bba95aa04e","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Vest SørVest","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":2380,"wires":[["85dfbb6e7330964c"]]},{"id":"9e54de599e3cfc76","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Vest","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":2400,"wires":[["85dfbb6e7330964c"]]},{"id":"3b4f1a4a9f02870e","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Vest NordVest","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":2420,"wires":[["85dfbb6e7330964c"]]},{"id":"aaed57253ae4260c","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"NordVest","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":2440,"wires":[["85dfbb6e7330964c"]]},{"id":"9b128873b8064d49","type":"change","z":"3a673018e01cbc4a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Nord NordVest","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":2460,"wires":[["85dfbb6e7330964c"]]},{"id":"5b71081b0a2f1f66","type":"ha-sensor","z":"3a673018e01cbc4a","name":"Vindretning egen","entityConfig":"ffaaa28b0443a3b1","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1290,"y":2300,"wires":[[]]},{"id":"65365d08b0ecf382","type":"cronplus","z":"3a673018e01cbc4a","name":"","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"0 * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":100,"y":2700,"wires":[["619b6234c9531916"]]},{"id":"055d182f17e6ff6b","type":"cronplus","z":"3a673018e01cbc4a","name":"XX:59:40","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule2","topic":"topic2","payloadType":"default","payload":"","expressionType":"cron","expression":"40 59 * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":100,"y":1420,"wires":[["d0922b9267db19c8","cafc33d77d9e46ee","6acbfac785ca831d","6675e22530b9ce0f"]]},{"id":"d0922b9267db19c8","type":"api-current-state","z":"3a673018e01cbc4a","name":"Temp stue 1 etg","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.ble_temperature_ble_temp_stue_1_etg","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":340,"y":1380,"wires":[["df2f0e90aba61a72"]]},{"id":"cafc33d77d9e46ee","type":"api-current-state","z":"3a673018e01cbc4a","name":"Temp kjøkken","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.ble_temperature_ble_temp_kjokken","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":340,"y":1420,"wires":[["fa3c060681a01fad"]]},{"id":"6acbfac785ca831d","type":"api-current-state","z":"3a673018e01cbc4a","name":"Temp stue 2 etg","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.ble_temperature_ble_temp_stue_2_etg","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":340,"y":1460,"wires":[["983ed242c3e80b71"]]},{"id":"b3e943951f29b673","type":"change","z":"3a673018e01cbc4a","name":"Kaldthus true","rules":[{"t":"set","p":"kaldthus","pt":"global","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":650,"y":1420,"wires":[["49e196d3d4bc3dbf"]]},{"id":"df2f0e90aba61a72","type":"switch","z":"3a673018e01cbc4a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"16","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":490,"y":1380,"wires":[["b3e943951f29b673"]]},{"id":"fa3c060681a01fad","type":"switch","z":"3a673018e01cbc4a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"16","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":490,"y":1420,"wires":[["b3e943951f29b673"]]},{"id":"983ed242c3e80b71","type":"switch","z":"3a673018e01cbc4a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"17","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":490,"y":1460,"wires":[["b3e943951f29b673"]]},{"id":"a7e337e064dc072f","type":"comment","z":"3a673018e01cbc4a","name":"Tempsjekk inne Kaldt","info":"Går hvert 15 min.\n1. Hvis temp i stue 1 etg har sunket \n   2 grader på 3 timer starter vpumpen\n\n2. Hvis temp stue 1 etg er under 16C,\n   sjekk om pumpen går. Hvis ja, øk til 23\n   og øk farten til 3. \n","x":120,"y":1380,"wires":[]},{"id":"49e196d3d4bc3dbf","type":"stoptimer","z":"3a673018e01cbc4a","duration":"29","units":"Minute","payloadtype":"num","payloadval":"0","name":"","x":755,"y":1420,"wires":[["f4a522aa3d218c51"],[]],"l":false},{"id":"f4a522aa3d218c51","type":"change","z":"3a673018e01cbc4a","name":"Kaldthus false","rules":[{"t":"set","p":"kaldthus","pt":"global","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":1420,"wires":[[]]},{"id":"08d80f17a6235af0","type":"debug","z":"3a673018e01cbc4a","name":"KaldtHus","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"$globalContext('kaldthus')","targetType":"jsonata","statusVal":"$globalContext('tempsnittkjokkens')","statusType":"auto","x":160,"y":1460,"wires":[]},{"id":"b2afd6baa6b1ee9e","type":"inject","z":"3a673018e01cbc4a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":880,"y":1380,"wires":[["f4a522aa3d218c51"]]},{"id":"5048e024a47b9f27","type":"comment","z":"3a673018e01cbc4a","name":"Tempsjekk inne Varmt","info":"Går hvert 15 min.\nSjekker om det er varmt nok.\nHvis forskjellen mellom laveste verdi de\nsiste 4 (1 time) og nå-verdi er mer enn\n2 grader, skru av\n","x":120,"y":1540,"wires":[]},{"id":"a44c495352e25f8f","type":"cronplus","z":"3a673018e01cbc4a","name":"XX:59:40","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule2","topic":"topic2","payloadType":"default","payload":"","expressionType":"cron","expression":"40 59 * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":100,"y":1580,"wires":[["b370e92997da337e","f6900dfe513387f0","5bd6a511a04d419a","a658041e30e0ade1"]]},{"id":"f928414c447fcae5","type":"debug","z":"3a673018e01cbc4a","name":"VarmtHus","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"$globalContext('varmthus')","targetType":"jsonata","statusVal":"$globalContext('tempsnittkjokkens')","statusType":"auto","x":160,"y":1620,"wires":[]},{"id":"b370e92997da337e","type":"api-current-state","z":"3a673018e01cbc4a","name":"Temp stue 1 etg","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.ble_temperature_ble_temp_stue_1_etg","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":340,"y":1540,"wires":[["e19e40b01573e9b0"]]},{"id":"f6900dfe513387f0","type":"api-current-state","z":"3a673018e01cbc4a","name":"Temp kjøkken","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.ble_temperature_ble_temp_kjokken","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":340,"y":1580,"wires":[["24403d0325bc2ee8"]]},{"id":"5bd6a511a04d419a","type":"api-current-state","z":"3a673018e01cbc4a","name":"Temp stue 2 etg","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.ble_temperature_ble_temp_stue_2_etg","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":340,"y":1620,"wires":[["99b3c60ad022d184"]]},{"id":"155c501506cc4f35","type":"change","z":"3a673018e01cbc4a","name":"Varmthus true","rules":[{"t":"set","p":"varmthus","pt":"global","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":1580,"wires":[["77e53cd88110a0b2"]]},{"id":"e19e40b01573e9b0","type":"switch","z":"3a673018e01cbc4a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"24","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":490,"y":1540,"wires":[["155c501506cc4f35"]]},{"id":"24403d0325bc2ee8","type":"switch","z":"3a673018e01cbc4a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"24","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":490,"y":1580,"wires":[["155c501506cc4f35"]]},{"id":"99b3c60ad022d184","type":"switch","z":"3a673018e01cbc4a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"25","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":490,"y":1620,"wires":[["155c501506cc4f35"]]},{"id":"77e53cd88110a0b2","type":"stoptimer","z":"3a673018e01cbc4a","duration":"29","units":"Minute","payloadtype":"num","payloadval":"0","name":"","x":755,"y":1580,"wires":[["dc6d2acec30547b7"],[]],"l":false},{"id":"dc6d2acec30547b7","type":"change","z":"3a673018e01cbc4a","name":"Varmthus false","rules":[{"t":"set","p":"varmthus","pt":"global","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":1580,"wires":[[]]},{"id":"511e8ecdfb6e2edc","type":"inject","z":"3a673018e01cbc4a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":880,"y":1540,"wires":[["dc6d2acec30547b7"]]},{"id":"f659c6a1cf54113e","type":"comment","z":"3a673018e01cbc4a","name":"Fyres i vedovn","info":"","x":100,"y":1700,"wires":[]},{"id":"4cdf53654e841f0b","type":"cronplus","z":"3a673018e01cbc4a","name":"15 min","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule2","topic":"topic2","payloadType":"default","payload":"","expressionType":"cron","expression":"0 */15 * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":90,"y":1740,"wires":[["6b5810ad6fff1c04","4b413eae35f49202","5af2fec11801368a","c6937f5ce05deda1"]]},{"id":"6b5810ad6fff1c04","type":"api-current-state","z":"3a673018e01cbc4a","name":"Vedovn","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.lumi_lumi_weather_temperature","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":360,"y":1780,"wires":[["3be1c59d62f05bea"]]},{"id":"7ee471826b9388d2","type":"change","z":"3a673018e01cbc4a","name":"Vedovn true","rules":[{"t":"set","p":"vedovn","pt":"global","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":930,"y":1720,"wires":[[]]},{"id":"35ddc72777ee773e","type":"change","z":"3a673018e01cbc4a","name":"Vedovn false","rules":[{"t":"set","p":"vedovn","pt":"global","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":930,"y":1780,"wires":[[]]},{"id":"0ebed3dc2564c629","type":"debug","z":"3a673018e01cbc4a","name":"Vedovn","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"$globalContext('vedovn')","targetType":"jsonata","statusVal":"$globalContext('tempsnittkjokkens')","statusType":"auto","x":160,"y":1780,"wires":[]},{"id":"ce0ddaf135998d71","type":"change","z":"3a673018e01cbc4a","name":"flow","rules":[{"t":"move","p":"payload","pt":"msg","to":"snittute","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":880,"wires":[[]]},{"id":"1a402baf3fa69617","type":"time-range-switch","z":"3a673018e01cbc4a","name":"Goldenhour - Sunrise","lat":"59.34798681899104","lon":"11.142624975584223","startTime":"goldenHour","endTime":"sunrise","startOffset":0,"endOffset":0,"x":300,"y":2060,"wires":[["7eff67df7bd3e6e8"],["7eff67df7bd3e6e8"]]},{"id":"9f22987e83f3424f","type":"inject","z":"3a673018e01cbc4a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":100,"y":2060,"wires":[["1a402baf3fa69617"]]},{"id":"7eff67df7bd3e6e8","type":"debug","z":"3a673018e01cbc4a","name":"debug 53","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":500,"y":2060,"wires":[]},{"id":"4b413eae35f49202","type":"stoptimer","z":"3a673018e01cbc4a","duration":"1","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":55,"y":1780,"wires":[["0ebed3dc2564c629"],[]],"l":false},{"id":"a658041e30e0ade1","type":"stoptimer","z":"3a673018e01cbc4a","duration":"1","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":55,"y":1620,"wires":[["f928414c447fcae5"],[]],"l":false},{"id":"6675e22530b9ce0f","type":"stoptimer","z":"3a673018e01cbc4a","duration":"1","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":55,"y":1460,"wires":[["08d80f17a6235af0"],[]],"l":false},{"id":"5af2fec11801368a","type":"api-current-state","z":"3a673018e01cbc4a","name":"Stue","server":"e3809135.43dbd","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.ble_temperature_ble_temp_stue_1_etg","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":350,"y":1720,"wires":[["3be1c59d62f05bea"]]},{"id":"3be1c59d62f05bea","type":"join","z":"3a673018e01cbc4a","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"1","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":510,"y":1740,"wires":[["bb18d1fe47abb4df"]]},{"id":"bb18d1fe47abb4df","type":"calculator","z":"3a673018e01cbc4a","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"dist","constant":"","round":false,"decimals":0,"x":650,"y":1740,"wires":[["2c333e2e29ebab6b"]]},{"id":"2c333e2e29ebab6b","type":"switch","z":"3a673018e01cbc4a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"5","vt":"num"},{"t":"lt","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":790,"y":1740,"wires":[["7ee471826b9388d2"],["35ddc72777ee773e"]]},{"id":"de1fddc6579bbf31","type":"api-call-service","z":"3a673018e01cbc4a","name":"Vifte ","server":"e3809135.43dbd","version":5,"debugenabled":false,"domain":"fan","service":"set_percentage","areaId":[],"deviceId":[],"entityId":["fan.vifte"],"data":"{\"percentage\":20}","dataType":"json","mergeContext":"","mustacheAltTags":true,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":610,"y":1880,"wires":[["e01d23c28073b126"]]},{"id":"e01d23c28073b126","type":"debug","z":"3a673018e01cbc4a","name":"debug 54","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":800,"y":1880,"wires":[]},{"id":"fdcc344fd5a980ee","type":"loop","z":"3a673018e01cbc4a","name":"","kind":"fcnt","count":"50","initial":"0","step":"1","condition":"","conditionType":"js","when":"before","enumeration":"enum","enumerationType":"msg","limit":"","loopPayload":"loop-index","finalPayload":"final-last","x":1090,"y":1920,"wires":[[],[]]},{"id":"1dfc3f3ed939f156","type":"switch","z":"3a673018e01cbc4a","name":"","property":"vedovn","propertyType":"global","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":150,"y":1880,"wires":[["d2145d58fe6f7f89"]]},{"id":"c6937f5ce05deda1","type":"stoptimer","z":"3a673018e01cbc4a","duration":"5","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":55,"y":1880,"wires":[["1dfc3f3ed939f156"],[]],"l":false},{"id":"d2145d58fe6f7f89","type":"api-current-state","z":"3a673018e01cbc4a","name":"Vifte på?","server":"e3809135.43dbd","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"fan.vifte","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":300,"y":1880,"wires":[["de1fddc6579bbf31"],["a98aced007027d8b"]]},{"id":"a98aced007027d8b","type":"api-call-service","z":"3a673018e01cbc4a","name":"Vifte på","server":"e3809135.43dbd","version":5,"debugenabled":false,"domain":"fan","service":"turn_on","areaId":[],"deviceId":[],"entityId":["fan.vifte"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":true,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":440,"y":1900,"wires":[["de1fddc6579bbf31"]]},{"id":"d05cfd5a1cec3a8b","type":"comment","z":"3a673018e01cbc4a","name":"Vifte på","info":"","x":70,"y":1840,"wires":[]},{"id":"7dd0c60982ce061d","type":"inject","z":"3a673018e01cbc4a","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":490,"y":1980,"wires":[["de1fddc6579bbf31"]]},{"id":"e3809135.43dbd","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true},{"id":"c49afd6609db2121","type":"ps-elvia-config","name":"Elvia Config"},{"id":"9fbfaa7b1f96c3d3","type":"ha-entity-config","server":"e3809135.43dbd","deviceConfig":"08db3889c5d1ec22","name":"Tempsnitt 115","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Tempsnitt 115"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"temperature"},{"property":"unit_of_measurement","value":"°C"},{"property":"state_class","value":""}],"resend":false},{"id":"ffaaa28b0443a3b1","type":"ha-entity-config","server":"e3809135.43dbd","deviceConfig":"3b7094ead5dad39c","name":"Vindretning egen","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Vindretning egen"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""}],"resend":false},{"id":"08db3889c5d1ec22","type":"ha-device-config","name":"Tempsnitt 115","hwVersion":"","manufacturer":"Node-RED","model":"","swVersion":""},{"id":"3b7094ead5dad39c","type":"ha-device-config","name":"Vindretning egen","hwVersion":"","manufacturer":"Node-RED","model":"","swVersion":""}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement