Martin Høy
Martin Høy
@Mheel80 Trigger on events from HA instead. No need to re-send the input if nothing changed.
@Mheel80 If you explain what you want to achieve, maybe we can suggest a useful flow?
@Mheel80 What is it that you are trying to do? You have a spa bath, and you want to control what property of it in what way?
@vidarak What @ottopaulsen said. If you want to make sure you heat water at the cheapest periods, use the "lowest price" node. I'm using two of them, each looking at...
@riksarchen and @ottopaulsen: I guess you could just change the sign of the prices (and possibly add a constant to prevent them from being negative, if that's a problem). Given...
@jenseo Yes, it's possible to find a workaround, sort of. But: - The data from the Tibber-API really only changes once per day (around 1300), so it's not necessary to...
> As I wrote I need it for charging my EV. I normally need to charge it about 5 hours a week so it wouldn't be a problem if the...
@KasperEdw I'm doing it like this:  In the On/Off function-node, I'm sending "On" if at least one of the schedulers wants "On": ``` if (!flow.get("auto_control")) { // We're in...
@mvjt I don't have an issue with "out of schedule"? I set my schedulers to send "Off" both if there's "no schedule" and "outside schedule". Since I `join` all the...
@mvjt Flow? Here you go: ``` [{"id":"6a6f662ebd0290ef","type":"api-call-service","z":"4052caf3dd00c142","name":"Varmtvann På","server":"a9970d75.fc3e1","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.kjeller_varmtvann"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"last","x":1120,"y":140,"wires":[[]]},{"id":"1c71e029af2360c2","type":"api-call-service","z":"4052caf3dd00c142","name":"Varmtvann Av","server":"a9970d75.fc3e1","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.kjeller_varmtvann"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"last","x":1120,"y":200,"wires":[[]]},{"id":"09fae2e61a94c229","type":"trigger-state","z":"4052caf3dd00c142","name":"Varmtvann styring","server":"a9970d75.fc3e1","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"input_select.varmtvann_styring","entityidfiltertype":"exact","debugenabled":false,"constraints":[{"targetType":"this_entity","targetValue":"","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is_not","comparatorValueDatatype":"str","comparatorValue":"Auto"}],"inputs":0,"outputs":2,"customoutputs":[],"outputinitially":true,"state_type":"str","enableInput":false,"x":130,"y":100,"wires":[["2676dd5683d597e6"],["a619526a0c951619"]]},{"id":"78894ff4a8c06ef8","type":"link in","z":"4052caf3dd00c142","name":"Priser: Tibber + Elvia","links":["17e948d9b2028b3f"],"x":290,"y":300,"wires":[["6eeacdec9dbd2f3a"]],"l":true},{"id":"14ea8c500c7aa2cd","type":"switch","z":"4052caf3dd00c142","name":"On or Off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"On","vt":"str"},{"t":"eq","v":"Off","vt":"str"}],"checkall":"false","repair":false,"outputs":2,"x":520,"y":80,"wires":[["6a6f662ebd0290ef"],["1c71e029af2360c2"]]},{"id":"a619526a0c951619","type":"change","z":"4052caf3dd00c142","name":"Auto control","rules":[{"t":"set","p":"auto_control","pt":"flow","to":"true","tot":"bool"},{"t":"set","p":"payload","pt":"msg","to":"{\"commands\":{\"sendOutput\":true}}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":120,"wires":[["6eeacdec9dbd2f3a"]]},{"id":"2676dd5683d597e6","type":"change","z":"4052caf3dd00c142","name":"Manual control","rules":[{"t":"set","p":"auto_control","pt":"flow","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":80,"wires":[["14ea8c500c7aa2cd"]]},{"id":"e27b07b7eb751099","type":"ps-strategy-lowest-price","z":"4052caf3dd00c142","name":"Lowest Price 20-08","fromTime":"20","toTime":"08","hoursOn":"3","maxPrice":"","doNotSplit":false,"sendCurrentValueWhenRescheduling":true,"outputIfNoSchedule":"false","outputOutsidePeriod":"false","contextStorage":"memory","x":550,"y":260,"wires":[["7c8db7b406232476"],["7c8db7b406232476"],["48cbcd19deb54068"]]},{"id":"b835b6e1555c8ff2","type":"ps-strategy-lowest-price","z":"4052caf3dd00c142","name":"Lowest Price 08-20","fromTime":"08","toTime":"20","hoursOn":"3","maxPrice":"","doNotSplit":false,"sendCurrentValueWhenRescheduling":true,"outputIfNoSchedule":"false","outputOutsidePeriod":"false","contextStorage":"memory","x":550,"y":340,"wires":[["b57f10158dcc79f0"],["b57f10158dcc79f0"],["48cbcd19deb54068"]]},{"id":"512054092ba0afc8","type":"join","z":"4052caf3dd00c142","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"5","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":750,"y":280,"wires":[["8592457f56627fd6"]]},{"id":"8592457f56627fd6","type":"function","z":"4052caf3dd00c142","name":"On / Off","func":"if (!flow.get(\"auto_control\")) {\n // We're in manual...