Advertisement
richsimpson

Solar Node Red Flow Oct2022

Oct 2nd, 2022
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.96 KB | None | 0 0
  1. [{"id":"83c8b595c66db3d2","type":"tab","label":"Solar","disabled":false,"info":"","env":[]},{"id":"d8f149ee990779d8","type":"comment","z":"83c8b595c66db3d2","name":"EV Charge Detected = Select relevent Inverter mode","info":"","x":210,"y":340,"wires":[]},{"id":"7aae0226816094bf","type":"comment","z":"83c8b595c66db3d2","name":"Consume from Grid - Hold Solax Battery (no charge/discharge)","info":"Disable the Solax battery. Power house and EV charge from grid.\n\nEnter Manual/Hold Charge.\n\nHouse and EV will continue to run from grid until complete (and house load is low so other high energy use devices will delay a charge complete status).","x":270,"y":740,"wires":[]},{"id":"a7c2e6253f51d127","type":"comment","z":"83c8b595c66db3d2","name":"Consume from Grid - Force Solax Battery to Charge","info":"Force charge the Solax battery. Power house and EV charge from grid.\n\nEnter Manual/Force Charge.\n\nIf/When Solax battery later passes the user defined threshold of \"Desired SOC\" move to Mode 2 and then hold that charge.\n\nHouse and EV will continue to run from grid until complete (and house load is low so other high energy use devices will delay a charge complete status).","x":230,"y":640,"wires":[]},{"id":"ab566218b2ed95ae","type":"api-call-service","z":"83c8b595c66db3d2","name":"Set 'Manual Mode' ","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"select","service":"select_option","areaId":[],"deviceId":[],"entityId":["select.solax_charger_use_mode"],"data":"{\"option\":\"Manual Mode\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":670,"y":660,"wires":[["7ad870d96d981ffb"]]},{"id":"5cb66f4e3c245922","type":"api-call-service","z":"83c8b595c66db3d2","name":"Set 'Force Charge Mode' ","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"select","service":"select_option","areaId":[],"deviceId":[],"entityId":["select.solax_manual_mode_select"],"data":"{\"option\":\"Force Charge\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1130,"y":660,"wires":[["f5f0f0f86413e3eb"]]},{"id":"f96279688fcf2591","type":"api-call-service","z":"83c8b595c66db3d2","name":"Set 'Manual Mode' ","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"select","service":"select_option","areaId":[],"deviceId":[],"entityId":["select.solax_charger_use_mode"],"data":"{\"option\":\"Manual Mode\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":670,"y":760,"wires":[["588692807e49bb5b"]]},{"id":"f5dfaec9cebb0228","type":"api-call-service","z":"83c8b595c66db3d2","name":"Set 'Stop Charge and Discharge' ","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"select","service":"select_option","areaId":[],"deviceId":[],"entityId":["select.solax_manual_mode_select"],"data":"{\"option\":\"Stop Charge and Discharge\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1270,"y":760,"wires":[[]]},{"id":"5d06aaf9c452d9e3","type":"api-call-service","z":"83c8b595c66db3d2","name":"Set 'Stop Charge and Discharge' ","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"select","service":"select_option","areaId":[],"deviceId":[],"entityId":["select.solax_manual_mode_select"],"data":"{\"option\":\"Stop Charge and Discharge\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1670,"y":680,"wires":[[]]},{"id":"744f7127ea625b07","type":"ha-button","z":"83c8b595c66db3d2","name":"Charge Mode 2 - Hold Charge","version":0,"debugenabled":false,"outputs":1,"entityConfig":"32e012b3a5f1ebd2","outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":160,"y":780,"wires":[["884577b2c6a8645b"]]},{"id":"913b92b8b20e34d4","type":"ha-button","z":"83c8b595c66db3d2","name":"Charge Mode 1 - Force Charge","version":0,"debugenabled":false,"outputs":1,"entityConfig":"95f912357e73d512","outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":170,"y":680,"wires":[["48d7677965ee55cf"]]},{"id":"7f192dcf1a17958e","type":"server-state-changed","z":"83c8b595c66db3d2","name":"EV Charging Detected","server":"90b3cdec.31b14","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.ev_charging_detected","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":140,"y":440,"wires":[["17305fc2c59c42d8"],["c94ea2eae5fc2ebd"]]},{"id":"17305fc2c59c42d8","type":"time-range-switch","z":"83c8b595c66db3d2","name":"During GoFaster","lat":"","lon":"","startTime":"20:30","endTime":"00:30","startOffset":0,"endOffset":0,"x":380,"y":400,"wires":[["0de804d6533fc5bb"],["fa17ad032eef2f42"]]},{"id":"9c3236f2d0308af1","type":"comment","z":"83c8b595c66db3d2","name":"EV from Grid & Force Solax Charge","info":"","x":1140,"y":360,"wires":[]},{"id":"c1f051d30eb1754f","type":"comment","z":"83c8b595c66db3d2","name":"EV from Grid & Hold Solax Charge","info":"","x":1140,"y":400,"wires":[]},{"id":"12fc47f78d5e6391","type":"comment","z":"83c8b595c66db3d2","name":"Start Charging","info":"Outside of GoFaster window - car to charge from whichever source available. Solar, Battery & Grid.\nSelf Use mode will control that automatically. Using minimum sotrage battery SOC%.\n\nDuring GoFaster (2030-0030hrs daily) enter manual mode and either A) Stop Charge/Discharge - to prevent battery topping up from grid or being used\nor B) Force charge battery.\nA - will be used if battery is already above [50%] and B if battery wasn't above [50%].\n","x":190,"y":380,"wires":[]},{"id":"47d3e8638497ccec","type":"comment","z":"83c8b595c66db3d2","name":"Stop Charging","info":"Outside of GoFaster window - car to charge from whichever source available. Solar, Battery & Grid.\nSelf Use mode will control that automatically. Using minimum sotrage battery SOC%.\n\nDuring GoFaster (2030-0030hrs daily) on completion of charge (which will also faxtor in at that point if the house usage is still high and so tumble dryer would delay a completed charge, the Inverter will either A) Return to self use mode, and continue to supply power from the battery. By setting the charge end time to 2030hrs\nor B) return to self use mode, and continue to charge by setting(keeping) the charge end time as 0030hrs.\n","x":190,"y":500,"wires":[]},{"id":"c94ea2eae5fc2ebd","type":"time-range-switch","z":"83c8b595c66db3d2","name":"During GoFaster","lat":"","lon":"","startTime":"20:30","endTime":"00:30","startOffset":0,"endOffset":0,"x":380,"y":460,"wires":[["fa17ad032eef2f42"],[]]},{"id":"9fb6dcf89f4825ad","type":"comment","z":"83c8b595c66db3d2","name":"Return to Standard - Consume from Storage","info":"","x":1170,"y":440,"wires":[]},{"id":"ba7a0c8169f5ecde","type":"api-call-service","z":"83c8b595c66db3d2","name":"Charge Mode 1","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"button","service":"press","areaId":[],"deviceId":[],"entityId":["button.solax_ev_charge_mode_1_force_charge"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":840,"y":360,"wires":[[]]},{"id":"a7c0028fe988c53a","type":"api-call-service","z":"83c8b595c66db3d2","name":"Charge Mode 2","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"button","service":"press","areaId":[],"deviceId":[],"entityId":["button.solax_ev_charge_mode_2_hold_charge"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":840,"y":400,"wires":[[]]},{"id":"884577b2c6a8645b","type":"api-current-state","z":"83c8b595c66db3d2","name":"Manual Mode?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"Manual Mode","halt_if_type":"str","halt_if_compare":"is","entity_id":"select.solax_charger_use_mode","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":460,"y":780,"wires":[["588692807e49bb5b"],["f96279688fcf2591"]]},{"id":"48d7677965ee55cf","type":"api-current-state","z":"83c8b595c66db3d2","name":"Manual Mode?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"Manual Mode","halt_if_type":"str","halt_if_compare":"is","entity_id":"select.solax_charger_use_mode","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":460,"y":680,"wires":[["7ad870d96d981ffb"],["ab566218b2ed95ae"]]},{"id":"7ad870d96d981ffb","type":"api-current-state","z":"83c8b595c66db3d2","name":"Force Charge Mode?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"Force Charge","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.solax_manual_mode","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":900,"y":680,"wires":[["f5f0f0f86413e3eb"],["5cb66f4e3c245922"]]},{"id":"588692807e49bb5b","type":"api-current-state","z":"83c8b595c66db3d2","name":"Stop Charge and Discharge Mode?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"Stop Charge and Discharge","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.solax_manual_mode","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":980,"y":760,"wires":[[],["f5dfaec9cebb0228"]]},{"id":"a259e40692b81f61","type":"comment","z":"83c8b595c66db3d2","name":"Button Presses - Individual flows","info":"Each header describes the function","x":150,"y":600,"wires":[]},{"id":"244c96af08a6c375","type":"ha-button","z":"83c8b595c66db3d2","name":"Default Mode","version":0,"debugenabled":false,"outputs":1,"entityConfig":"887d81b8150297fd","outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":110,"y":880,"wires":[["2f3be44577e4c6de"]]},{"id":"8b3b368535512472","type":"api-call-service","z":"83c8b595c66db3d2","name":"Set 'Self Use Mode' ","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"select","service":"select_option","areaId":[],"deviceId":[],"entityId":["select.solax_charger_use_mode"],"data":"{\"option\":\"Self Use Mode\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":590,"y":860,"wires":[["6dbe287f87ca8389"]]},{"id":"313f9d5eb79c978d","type":"api-call-service","z":"83c8b595c66db3d2","name":"Set 'CET 1' 20:30","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"select","service":"select_option","areaId":[],"deviceId":[],"entityId":["select.solax_charger_end_time_1"],"data":"{\"option\":\"20:30\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1090,"y":860,"wires":[[]]},{"id":"2f3be44577e4c6de","type":"api-current-state","z":"83c8b595c66db3d2","name":"Self Use Mode?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"Self Use Mode","halt_if_type":"str","halt_if_compare":"is","entity_id":"select.solax_charger_use_mode","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":400,"y":880,"wires":[["6dbe287f87ca8389"],["8b3b368535512472"]]},{"id":"6dbe287f87ca8389","type":"api-current-state","z":"83c8b595c66db3d2","name":"Check CET1 '20:30'","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"20:30","halt_if_type":"str","halt_if_compare":"is","entity_id":"select.solax_charger_end_time_1","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":860,"y":860,"wires":[[],["313f9d5eb79c978d"]]},{"id":"cc29d96fa7706ed3","type":"time-range-switch","z":"83c8b595c66db3d2","name":"During GoFaster","lat":"","lon":"","startTime":"20:30","endTime":"00:30","startOffset":0,"endOffset":0,"x":340,"y":120,"wires":[["c41e61dfe6b62501"],["e3c605d1caa0d0f4"]]},{"id":"b1d1d609dc4e0343","type":"api-call-service","z":"83c8b595c66db3d2","name":"Default Mode - Run from Solax Battery","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"button","service":"press","areaId":[],"deviceId":[],"entityId":["button.solax_run_on_storage_battery"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1530,"y":140,"wires":[[]]},{"id":"cba94835dfd62d01","type":"api-call-service","z":"83c8b595c66db3d2","name":"Charge Mode 1 - Run from Grid, Force charge Battery","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"button","service":"press","areaId":[],"deviceId":[],"entityId":["button.solax_ev_charge_mode_1_force_charge"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1140,"y":80,"wires":[[]]},{"id":"e792be7bfc02a75e","type":"api-current-state","z":"83c8b595c66db3d2","name":"Not EV Charging","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.ev_charging_detected","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":810,"y":80,"wires":[[],["cba94835dfd62d01"]]},{"id":"6a5c83950b0efcea","type":"api-current-state","z":"83c8b595c66db3d2","name":"Not EV Charging","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.ev_charging_detected","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":810,"y":180,"wires":[[],["a7b14d2bb6e60cc3"]]},{"id":"b6b6f5e86f8c7240","type":"comment","z":"83c8b595c66db3d2","name":"Control Charging of Storage Battery - When EV is NOT Charging","info":"NOTE: Always assuming EV is not charging.\nWhen EV is charging the decisions are made in the 4th flow below (EV Charge Detected = Select relevent Inverter mode)\n\nDuring GoFaster window, consider the user slider for \"Desired Battery SOC\". If that is higher than the \"Current SOC\", then the \"Demand Charge\" will direct the flow to \"Charge Mode 1\". (Force Charge Battery)\n\nIf during GoFaster window the \"Desired Battery SOC\" is lower than \"Current SOC\" the Solax Storage will continue to supply the house (Default Mode).\n\nIf the storage battery \"Desired SOC\" drops below the threshold during GoFaster window (for exmaple oven is used), the flow will trigger to move back to \"Charge Mode 1\" and force charge the storage battery to the \"Desired SOC\". That mode would later move to \"Charge Mode 2\" as it usually does and hold the battery level at the required \"Desired SOC\". Leaving the house on grid for the remainder of the GoFaster window. Because this flow would see the inverter in a manual mode and so not call any service.\n\nAt 0030hrs once outside of the GoFaster window, the house will be forced into \"Default Mode\" again and consume from storage.\n","x":250,"y":40,"wires":[]},{"id":"fa17ad032eef2f42","type":"api-call-service","z":"83c8b595c66db3d2","name":"Return to Default Mode","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"button","service":"press","areaId":[],"deviceId":[],"entityId":["button.solax_run_on_storage_battery"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":870,"y":440,"wires":[[]]},{"id":"15a80aa92af522ba","type":"comment","z":"83c8b595c66db3d2","name":"Standard Run Mode - Consume from Solar, Storage & Grid","info":"The default position. House will run from Solar, Storage and Grid.\n\nIf load is over 3.7KW then grid will provide the excess.\n\nExample: Day time and Oven is on plus charging EV. House load will be c 10KW and so Inverter supplies 3.8KW from solar/battery and grid will provide the rest.","x":250,"y":840,"wires":[]},{"id":"0de804d6533fc5bb","type":"api-current-state","z":"83c8b595c66db3d2","name":"Solax Demand Charge?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.solax_battery_demand_charge","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":610,"y":380,"wires":[["ba7a0c8169f5ecde"],["a7c0028fe988c53a"]]},{"id":"14f381993180bbd5","type":"function","z":"83c8b595c66db3d2","name":"Calculate (Desired SOC - Actual SOC)","func":"newmsg1 = {};\nnewmsg2 = {};\nvar battery_soc_difference = msg.payload - msg.payload_2;\nif (battery_soc_difference > 1){\n newmsg1.payload = \"on\";\n return newmsg1;\n}\n if (battery_soc_difference < 1){\n newmsg2.payload = \"off\";\n return newmsg2;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":485,"y":260,"wires":[["9950907546faa561"]],"l":false},{"id":"1ca1e545adc3a724","type":"api-current-state","z":"83c8b595c66db3d2","name":"Actual Battery SOC","server":"90b3cdec.31b14","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.solax_battery_capacity","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload_2","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":350,"y":260,"wires":[["14f381993180bbd5"]]},{"id":"f27115e9a1dcd9a9","type":"poll-state","z":"83c8b595c66db3d2","name":"Desired Battery SOC","server":"90b3cdec.31b14","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"30","updateIntervalType":"num","updateIntervalUnits":"seconds","outputinitially":true,"outputonchanged":false,"entity_id":"input_number.solax_battery_desired_soc","state_type":"str","halt_if":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":130,"y":260,"wires":[["1ca1e545adc3a724"]]},{"id":"ba5583ce064383bb","type":"comment","z":"83c8b595c66db3d2","name":"Desired SOC for Solax Battery = Sensor for Demand Charge","info":"If the value on the slider for \"Desired Battery SOC\" is lower than the \"Actual Battery SOC\" then the \"Solax Battery Demand Charge\" sensor will be off.\n\nIf the \"Desired Battery SOC\" is higher than \"Actual Battery SOC\" then the sensor is on.\n\nThe Function node coud have a tolerance of any value eg. 5% above or below.","x":240,"y":220,"wires":[]},{"id":"1f57ad5537ef1a70","type":"poll-state","z":"83c8b595c66db3d2","name":"Desired Battery SOC","server":"90b3cdec.31b14","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"30","updateIntervalType":"num","updateIntervalUnits":"seconds","outputinitially":true,"outputonchanged":false,"entity_id":"input_number.solax_battery_desired_soc","state_type":"str","halt_if":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":140,"y":120,"wires":[["cc29d96fa7706ed3"]]},{"id":"f5f0f0f86413e3eb","type":"ha-wait-until","z":"83c8b595c66db3d2","name":"Solax Demand Charge Ends","server":"90b3cdec.31b14","version":1,"outputs":1,"entityId":"binary_sensor.solax_battery_demand_charge","entityIdFilterType":"exact","property":"state","comparator":"is","value":"off","valueType":"str","timeout":"0","timeoutType":"num","timeoutUnits":"seconds","entityLocation":"data","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":1400,"y":680,"wires":[["5d06aaf9c452d9e3"]]},{"id":"a7b14d2bb6e60cc3","type":"api-current-state","z":"83c8b595c66db3d2","name":"Not Manual Mode?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"Manual Mode","halt_if_type":"str","halt_if_compare":"is","entity_id":"select.solax_charger_use_mode","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":1030,"y":180,"wires":[[],["add30f0975ed537a"]]},{"id":"ad092d96f54d7a62","type":"cronplus","z":"83c8b595c66db3d2","name":"8PM","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"0 01 20 * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":110,"y":1100,"wires":[["c61ca2fb1e354250"]]},{"id":"c61ca2fb1e354250","type":"api-current-state","z":"83c8b595c66db3d2","name":"Check tomorrow Forecast KWH","server":"90b3cdec.31b14","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.solcast_forecast_tomorrow","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":450,"y":1100,"wires":[["ba774a5ff77b8ee1"]]},{"id":"ba774a5ff77b8ee1","type":"switch","z":"83c8b595c66db3d2","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"20.01","vt":"num"},{"t":"btwn","v":"14.01","vt":"num","v2":"20","v2t":"num"},{"t":"btwn","v":"14","vt":"num","v2":"10.01","v2t":"num"},{"t":"lte","v":"10","vt":"num"}],"checkall":"true","repair":false,"outputs":4,"x":615,"y":1100,"wires":[["2ca7ac2fd79bbc8b"],["7b1d137b046a49a8"],["ef834ca2832ef4bf"],["80b085eaf263503d"]],"l":false},{"id":"80b085eaf263503d","type":"api-current-state","z":"83c8b595c66db3d2","name":"Desired SOC 80% ?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"80","halt_if_type":"num","halt_if_compare":"is","entity_id":"input_number.solax_battery_desired_soc","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"80","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":780,"y":1180,"wires":[[],["3ce90cfd87dcdeec"]]},{"id":"ef834ca2832ef4bf","type":"api-current-state","z":"83c8b595c66db3d2","name":"Desired SOC 60% ?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"60","halt_if_type":"num","halt_if_compare":"is","entity_id":"input_number.solax_battery_desired_soc","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"60","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":780,"y":1120,"wires":[[],["3ce90cfd87dcdeec"]]},{"id":"7b1d137b046a49a8","type":"api-current-state","z":"83c8b595c66db3d2","name":"Desired SOC 50% ?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"50","halt_if_type":"num","halt_if_compare":"is","entity_id":"input_number.solax_battery_desired_soc","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"50","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":780,"y":1060,"wires":[[],["3ce90cfd87dcdeec"]]},{"id":"2ca7ac2fd79bbc8b","type":"api-current-state","z":"83c8b595c66db3d2","name":"Desired SOC 40% ?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"40","halt_if_type":"num","halt_if_compare":"is","entity_id":"input_number.solax_battery_desired_soc","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"40","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":780,"y":1000,"wires":[[],["3ce90cfd87dcdeec"]]},{"id":"3ce90cfd87dcdeec","type":"api-call-service","z":"83c8b595c66db3d2","name":"Set SOC %","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"input_number","service":"set_value","areaId":[],"deviceId":[],"entityId":["input_number.solax_battery_desired_soc"],"data":"{\"value\":\"{{payload}}\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1010,"y":1100,"wires":[[]]},{"id":"9250fafb9106ee19","type":"comment","z":"83c8b595c66db3d2","name":"Determine \"Desired SOC\" based on tomorrow solar forecast","info":"","x":240,"y":1000,"wires":[]},{"id":"c41e61dfe6b62501","type":"api-current-state","z":"83c8b595c66db3d2","name":"Demand Charge On?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.solax_battery_demand_charge","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":560,"y":80,"wires":[["e792be7bfc02a75e"],["6a5c83950b0efcea"]]},{"id":"e3c605d1caa0d0f4","type":"api-current-state","z":"83c8b595c66db3d2","name":"Octopus Power Hour","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.octopus_power_hour","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":660,"y":140,"wires":[["cba94835dfd62d01"],["add30f0975ed537a"]]},{"id":"e2695a6136d3bdcc","type":"api-current-state","z":"83c8b595c66db3d2","name":"House Load < 1000","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"1000","halt_if_type":"num","halt_if_compare":"lte","entity_id":"sensor.solax_house_load","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":490,"y":1260,"wires":[["0db1d5e6ec32917e"],[]]},{"id":"0547daf957414cad","type":"ha-button","z":"83c8b595c66db3d2","name":"Jumpstart ","version":0,"debugenabled":false,"outputs":1,"entityConfig":"340ed205dd18ef4c","outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":120,"y":1320,"wires":[["bd378ed93d315f3c"]]},{"id":"bd378ed93d315f3c","type":"api-call-service","z":"83c8b595c66db3d2","name":"Set UFH to 26'c","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"climate","service":"set_temperature","areaId":[],"deviceId":[],"entityId":["climate.underfloor_heating"],"data":"{ \"temperature\":22}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":300,"y":1320,"wires":[["91c1865eed5c4c8c"]]},{"id":"cbf3f5d8e19cbad6","type":"api-call-service","z":"83c8b595c66db3d2","name":"Set UFH to 18'c","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"climate","service":"set_temperature","areaId":[],"deviceId":[],"entityId":["climate.underfloor_heating"],"data":"{ \"temperature\":18}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":780,"y":1320,"wires":[[]]},{"id":"91c1865eed5c4c8c","type":"delay","z":"83c8b595c66db3d2","name":"Wait 20 secs","pauseType":"delay","timeout":"20","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":570,"y":1320,"wires":[["cbf3f5d8e19cbad6"]]},{"id":"14e414e2d37deb8f","type":"api-call-service","z":"83c8b595c66db3d2","name":"iOS Actionable Notification - Prompt to Open Solar Dash","server":"90b3cdec.31b14","version":5,"debugenabled":true,"domain":"notify","service":"mobile_app_iphonerws","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Right now the house load is {{states.sensor.solax_house_load.state}}w but {{states.sensor.solax_grid_import.state}}w is being imported from the grid, looks like battery has not kicked in. The battery is currently at {{states.sensor.solax_battery_capacity.state}}% you might want to jumpstart the battery\",\"title\":\"Battery not kicked in?\",\"data\":{\"url\":\"/lovelace-mushroom/solar\",\"actions\":[{\"action\":\"URI\",\"title\":\"Open Solar Dash\",\"uri\":\"/lovelace-mushroom/solar\"}],\"persistent\":true,\"tag\":\"persistent\"}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1130,"y":1260,"wires":[[]]},{"id":"0db1d5e6ec32917e","type":"api-current-state","z":"83c8b595c66db3d2","name":"Not Manual Mode?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"Manual Mode","halt_if_type":"str","halt_if_compare":"is","entity_id":"select.solax_charger_use_mode","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":730,"y":1260,"wires":[[],["14e414e2d37deb8f"]]},{"id":"cc0f336dabdcbf94","type":"server-state-changed","z":"83c8b595c66db3d2","name":"Grid Import > 200 for 5 mins","server":"90b3cdec.31b14","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.solax_grid_import","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"200","halt_if_type":"num","halt_if_compare":"gte","outputs":2,"output_only_on_state_change":true,"for":"5","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":180,"y":1260,"wires":[["e2695a6136d3bdcc"],[]]},{"id":"05f5554c85837a9a","type":"comment","z":"83c8b595c66db3d2","name":"Jump Start Battery if not being used","info":"","x":160,"y":1220,"wires":[]},{"id":"3a4b765c77c5c7f4","type":"link in","z":"83c8b595c66db3d2","name":"Power Hour On IN","links":["d6a4f9488a124546","2591717bdb2a0109"],"x":325,"y":700,"wires":[["48d7677965ee55cf"]]},{"id":"d7f1110ca7a353df","type":"link in","z":"83c8b595c66db3d2","name":"Power Hour End IN","links":["ca5325729175f0eb"],"x":285,"y":920,"wires":[["2f3be44577e4c6de"]]},{"id":"9950907546faa561","type":"ha-binary-sensor","z":"83c8b595c66db3d2","name":"Solax Battery Demand Charge","entityConfig":"670a8fee3c3d6168","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":660,"y":260,"wires":[[]]},{"id":"add30f0975ed537a","type":"api-current-state","z":"83c8b595c66db3d2","name":"Not Self Use Mode?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"Self Use Mode","halt_if_type":"str","halt_if_compare":"is","entity_id":"select.solax_charger_use_mode","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":1240,"y":140,"wires":[[],["b1d1d609dc4e0343"]]},{"id":"90b3cdec.31b14","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":"32e012b3a5f1ebd2","type":"ha-entity-config","server":"90b3cdec.31b14","name":"Solax EV Charge Mode 2 Hold Charge","version":6,"entityType":"button","haConfig":[{"property":"name","value":"Solax EV Charge Mode 2 Hold Charge"},{"property":"icon","value":""},{"property":"device_class","value":""}]},{"id":"95f912357e73d512","type":"ha-entity-config","server":"90b3cdec.31b14","name":"Solax EV Charge Mode 1 Force Charge","version":6,"entityType":"button","haConfig":[{"property":"name","value":"Solax EV Charge Mode 1 Force Charge"},{"property":"icon","value":""},{"property":"device_class","value":""}]},{"id":"887d81b8150297fd","type":"ha-entity-config","server":"90b3cdec.31b14","name":"Solax Run On Storage Battery","version":6,"entityType":"button","haConfig":[{"property":"name","value":"Solax Run On Storage Battery"},{"property":"icon","value":""},{"property":"device_class","value":""}]},{"id":"340ed205dd18ef4c","type":"ha-entity-config","server":"90b3cdec.31b14","name":"Solax Jumpstart Battery","version":6,"entityType":"button","haConfig":[{"property":"name","value":"Solax Jumpstart Battery"},{"property":"icon","value":""},{"property":"device_class","value":""}]},{"id":"670a8fee3c3d6168","type":"ha-entity-config","server":"90b3cdec.31b14","deviceConfig":"","name":"binary sensor config for Solax Battery Demand Charge","version":6,"entityType":"binary_sensor","haConfig":[{"property":"name","value":"Solax Battery Demand Charge"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""},{"property":"last_reset","value":""}],"resend":true}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement