Hi all,
I've got this little sum set up so i can manually put forward or backward the moment when my automated hot water heating comes on. The control is based on the state of charge of batteries and I can add or subtract 10% to their state of charge as perceived by the function that does the switching. Anyway, it used to work until I messed with it and now it is always 10 higher than it should be. The debug nodes show that for example 70 + 10 goes in and 90 comes out. I've restarted, redeployed but it still does it. Please advise.
[{"id":"1b27664c69817970","type":"throttle","z":"8443e347bccc88bc","name":"","throttleType":"time","timeLimit":"20","timeLimitType":"seconds","countLimit":0,"blockSize":0,"locked":false,"x":188.4039306640625,"y":27.580764770507812,"wires":[["6a4a3dea861540fb","bc0f8bd9d2391c1d"]]},{"id":"394c472dad1cb04f","type":"victron-input-battery","z":"8443e347bccc88bc","service":"com.victronenergy.battery/512","path":"/Soc","serviceObj":{"service":"com.victronenergy.battery/512","name":"Pylontech battery"},"pathObj":{"path":"/Soc","type":"float","name":"State of charge (%)"},"name":"SoC","onlyChanges":false,"roundValues":"3","x":68.75003051757812,"y":27.41924285888672,"wires":[["1b27664c69817970"]]},{"id":"6a4a3dea861540fb","type":"sum","z":"8443e347bccc88bc","name":"","topic":"","x":442.4999237060547,"y":52,"wires":[["2ec7a90cb6ca4f41","772052013791373b"]]},{"id":"cfd23e06265b1c09","type":"inject","z":"8443e347bccc88bc","name":"Summer mode","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":"0.1","topic":"control","payload":"open","payloadType":"str","x":119.5,"y":114,"wires":[["df7cdd6be4b768e8"]]},{"id":"8c4e30d47587c903","type":"inject","z":"8443e347bccc88bc","name":"Winter Mode","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"control","payload":"close","payloadType":"str","x":111.5,"y":80,"wires":[["85fa58116026ed6d"]]},{"id":"85fa58116026ed6d","type":"change","z":"8443e347bccc88bc","name":"Zero","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"},{"t":"set","p":"topic","pt":"msg","to":"season","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":263.5,"y":80,"wires":[["f0ef659621293783"]]},{"id":"df7cdd6be4b768e8","type":"change","z":"8443e347bccc88bc","name":"+10","rules":[{"t":"set","p":"payload","pt":"msg","to":"10","tot":"num"},{"t":"set","p":"topic","pt":"msg","to":"season","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":265.5,"y":114,"wires":[["f0ef659621293783"]]},{"id":"a34c7213b82bf61c","type":"inject","z":"8443e347bccc88bc","name":"Delay start","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"control","payload":"close","payloadType":"str","x":118.36079406738281,"y":148.9758586883545,"wires":[["75685f9605ca1e1c"]]},{"id":"75685f9605ca1e1c","type":"change","z":"8443e347bccc88bc","name":"-10","rules":[{"t":"set","p":"payload","pt":"msg","to":"-10","tot":"num"},{"t":"set","p":"topic","pt":"msg","to":"season","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":264.3721351623535,"y":149.2741527557373,"wires":[["f0ef659621293783"]]},{"id":"fa870083df44015e","type":"debug","z":"8443e347bccc88bc","name":"debug 421","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":491.3607940673828,"y":91.99999141693115,"wires":[]},{"id":"bc0f8bd9d2391c1d","type":"debug","z":"8443e347bccc88bc","name":"debug 424","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":379.36927795410156,"y":20,"wires":[]},{"id":"f0ef659621293783","type":"junction","z":"8443e347bccc88bc","x":354.39278188347816,"y":115.3737120628357,"wires":[["6a4a3dea861540fb","fa870083df44015e"]]}]
