Hello and thanks for the wonderful program.
I´m good at SPS programming and very new in Nodered, so I need little help for my ToDo.
My plan is: My photovoltaik system have a battery and the MQTT values comes and goes to the inverter and from the battery shunt.
Per month are different sun hours that means the battery is in summer month nearly daily full, in winter month nearly daily empty.
The battery SOC is from 100 to 0 % and this value is a String 0-100. Over the MQTT I receive every second the actual value.
I have to set 2 states. One state is Change to Grid, other one is change to Solar.
Example: In March: If it is March then the Nodered have 2 values. Change to Grid at 78%, change to Solar at 80%. This two values are setpoints and specified from me in Nodered.
If the Photovoltaik system charge the battery, this MQTT value increase over 80%, then the decision comes from Nodered: Signal 1: true send to Inverter over MQTT.
If the battery SOC decrease and goes down below 78%, the Nodered send a Signal 2: true send to Inverter over MQTT then the inverter change to Grid mode.
I tried this, but I have some overwhelming and not the correct node found.
Can somebody help me?
Here the Export from that what I tried, but no idea, how I can go forward:
[{"id":"cfc08803.dc72a8","type":"cron","z":"2d5aec04.6c3974","name":"","cronExpression":"0 0 1 * MAR *\t","fireAtStartup":false,"x":210,"y":4560,"wires":[["e163dae2.ce4048","a9fc3605.3c8b08"]]},{"id":"dad8ba43.740b48","type":"cron","z":"2d5aec04.6c3974","name":"","cronExpression":"0 0 1 * FEB *\t","fireAtStartup":false,"x":210,"y":4460,"wires":[["da6b9cde.7ce78","bff97ed.c46d58"]]},{"id":"4aecfac0.9e9784","type":"cron","z":"2d5aec04.6c3974","name":"","cronExpression":"0 0 1 * JAN *\t","fireAtStartup":false,"x":210,"y":4340,"wires":[["babd62fb.04c53","2490ee80.e29d92"]]},{"id":"e163dae2.ce4048","type":"trigger","z":"2d5aec04.6c3974","name":"To Grid 78%","op1":"78","op2":"false","op1type":"str","op2type":"bool","duration":"1438","extend":false,"overrideDelay":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":650,"y":4560,"wires":[["8f2bb3f9.befd9"]]},{"id":"a9fc3605.3c8b08","type":"trigger","z":"2d5aec04.6c3974","name":"To Solar 80%","op1":"80","op2":"false","op1type":"str","op2type":"bool","duration":"1438","extend":false,"overrideDelay":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":640,"y":4620,"wires":[["3a6bdc1c.4bbf64"]]},{"id":"cb0fff07.555f","type":"mqtt in","z":"2d5aec04.6c3974","name":"","topic":"soc","qos":"0","datatype":"utf8","broker":"d891a2dc.5ed99","x":90,"y":4160,"wires":[["b88361b5.28b09"]]},{"id":"b88361b5.28b09","type":"debug","z":"2d5aec04.6c3974","name":"Batterie SOC %","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":140,"y":4220,"wires":[]},{"id":"8f2bb3f9.befd9","type":"debug","z":"2d5aec04.6c3974","name":"Batterie SOC %","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":840,"y":4560,"wires":[]},{"id":"3a6bdc1c.4bbf64","type":"debug","z":"2d5aec04.6c3974","name":"Batterie SOC %","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":840,"y":4620,"wires":[]},{"id":"da6b9cde.7ce78","type":"trigger","z":"2d5aec04.6c3974","name":"To Grid 83%","op1":"83","op2":"false","op1type":"str","op2type":"bool","duration":"1438","extend":false,"overrideDelay":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":650,"y":4400,"wires":[["27fc4390.d0eaac"]]},{"id":"27fc4390.d0eaac","type":"debug","z":"2d5aec04.6c3974","name":"Batterie SOC %","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":840,"y":4400,"wires":[]},{"id":"bff97ed.c46d58","type":"trigger","z":"2d5aec04.6c3974","name":"To Solar 85%","op1":"85","op2":"false","op1type":"str","op2type":"bool","duration":"1438","extend":false,"overrideDelay":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":640,"y":4460,"wires":[["e5e3ad93.dafc3"]]},{"id":"e5e3ad93.dafc3","type":"debug","z":"2d5aec04.6c3974","name":"Batterie SOC %","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":840,"y":4460,"wires":[]},{"id":"babd62fb.04c53","type":"trigger","z":"2d5aec04.6c3974","name":"To Grid 88%","op1":"88","op2":"false","op1type":"str","op2type":"bool","duration":"1438","extend":false,"overrideDelay":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":650,"y":4260,"wires":[["de2e2946.f69938"]]},{"id":"de2e2946.f69938","type":"debug","z":"2d5aec04.6c3974","name":"Batterie SOC %","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":840,"y":4260,"wires":[]},{"id":"2490ee80.e29d92","type":"trigger","z":"2d5aec04.6c3974","name":"To Solar 90%","op1":"90","op2":"false","op1type":"str","op2type":"bool","duration":"1438","extend":false,"overrideDelay":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":640,"y":4320,"wires":[["34ffb79d.4d1a58"]]},{"id":"34ffb79d.4d1a58","type":"debug","z":"2d5aec04.6c3974","name":"Batterie SOC %","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":840,"y":4320,"wires":[]},{"id":"d891a2dc.5ed99","type":"mqtt-broker","name":"raspberri","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
Thanks for any idea.
Best regards Herbert