Advertisement
richsimpson

Shared Solax Flow June 2023

Jun 29th, 2023
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.43 KB | None | 0 0
  1. [{"id":"83c8b595c66db3d2","type":"tab","label":"Solar","disabled":false,"info":"","env":[]},{"id":"9d70d1f117b9e3e9","type":"group","z":"83c8b595c66db3d2","name":"Control charging of storage batteries when EV not charging","style":{"fill":"#e3f3d3","label":true},"nodes":["cc29d96fa7706ed3","b1d1d609dc4e0343","cba94835dfd62d01","e792be7bfc02a75e","6a5c83950b0efcea","b6b6f5e86f8c7240","1f57ad5537ef1a70","a7b14d2bb6e60cc3","c41e61dfe6b62501","add30f0975ed537a","d7201d535becfd04"],"x":14,"y":799,"w":1852,"h":202},{"id":"72af2b0f50800750","type":"group","z":"83c8b595c66db3d2","name":"'Desired SOC' is dicated by the solar forecast for tomorrow","style":{"fill":"#e3f3d3","label":true},"nodes":["14f381993180bbd5","1ca1e545adc3a724","f27115e9a1dcd9a9","ba5583ce064383bb","ad092d96f54d7a62","c61ca2fb1e354250","ba774a5ff77b8ee1","80b085eaf263503d","7b1d137b046a49a8","2ca7ac2fd79bbc8b","3ce90cfd87dcdeec","9950907546faa561","d766f014afb0908a","74136f5d05b3d38b","6132070a725dbeab","e1723b767872ebe1","e14f2178a71e6b7c","80976cf7abebe853","c8843db7417ef87f"],"x":14,"y":19,"w":1852,"h":382},{"id":"58a51c10b8e0217a","type":"group","z":"83c8b595c66db3d2","name":"Button Presses - Different modes for inverter","style":{"fill":"#ffefbf","label":true},"nodes":["7aae0226816094bf","a7c2e6253f51d127","ab566218b2ed95ae","5cb66f4e3c245922","f96279688fcf2591","f5dfaec9cebb0228","5d06aaf9c452d9e3","744f7127ea625b07","913b92b8b20e34d4","884577b2c6a8645b","48d7677965ee55cf","7ad870d96d981ffb","588692807e49bb5b","244c96af08a6c375","8b3b368535512472","313f9d5eb79c978d","2f3be44577e4c6de","6dbe287f87ca8389","15a80aa92af522ba","f5f0f0f86413e3eb","3a4b765c77c5c7f4","d7f1110ca7a353df","0e15bd6e3a291dfb"],"x":14,"y":419,"w":1852,"h":362},{"id":"61ac7753782676bb","type":"group","z":"83c8b595c66db3d2","name":"Different Modes - Buttons pressed dicated by EV charging status","style":{"fill":"#ffffbf","label":true},"nodes":["7f192dcf1a17958e","17305fc2c59c42d8","12fc47f78d5e6391","47d3e8638497ccec","ba7a0c8169f5ecde","a7c0028fe988c53a","fa17ad032eef2f42","0de804d6533fc5bb","11f5d16fe32c6de1","2c839ada5ff156ec"],"x":14,"y":1019,"w":1852,"h":202},{"id":"07c3cdd84aabad4f","type":"group","z":"83c8b595c66db3d2","name":"Alerts & Battery Jump Start","style":{"fill":"#ffbfbf","label":true},"nodes":["e2695a6136d3bdcc","0547daf957414cad","bd378ed93d315f3c","cbf3f5d8e19cbad6","91c1865eed5c4c8c","0db1d5e6ec32917e","cc0f336dabdcbf94","05f5554c85837a9a","d09bb688d98b9021","251b07666e1d0c89","3153df1eb05dac3b","2dcf343606e4626d","e9548b1cc8e7bdcb","9e6e239edb9a355d","75e1b07921c971b6","2e43568ad02adf0f","168dd375970dedd3","cb2ee06c2eee90c0","bed9111d7b6e5f8d","1eeeb64fe0999139","d9b6e1050fb25cb6","9885bbabd15749bb","e6e954bd63c3fb9a","bd4178d363628a43","35e0b8ed0ae8292f","8b89c8e9dfd3bfbc","6646add9c4c37c4f","3d01d1bc89736159","5733660ef4cb9634","8b963b2f9f688989","6f37c10f6228b96f","335d9e9b95783b41","f9e3898a4c48bc87","0c7bc2e33f4649a0","7470970375fcd39f","dc783ca6c44f99b7","d422170e6acf3409","6f8733e94a220238","b90d38a4c614a005","42e3e3dee4bf7281","847b9d38ca2f4c5c","3debfb545887d88f","291522665196bd77","773305ad94bd10dc","8e020d96665d9875","7ef9ef8801e1b48a","4fd12a29ddb5105b","30f3019619df09c8","58419bc97af9d211","9f0c434981879250","d1c6e2763a84a1a8","cc3360fccb975fa1","b9f2e17e527b0ec9","dcf8c69614840961"],"x":14,"y":1239,"w":1932,"h":689.5},{"id":"8b963b2f9f688989","type":"junction","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","x":1600,"y":1520,"wires":[["e9548b1cc8e7bdcb"]]},{"id":"7aae0226816094bf","type":"comment","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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 \n(and house load is low so other high energy use devices will \ndelay a charge complete status).","x":270,"y":560,"wires":[]},{"id":"a7c2e6253f51d127","type":"comment","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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 \n\"Desired SOC\" move to Mode 2 and then hold that charge.\n\nHouse and EV will continue to run from grid until complete \n(and house load is low so other high energy use devices will delay \na charge complete status).","x":230,"y":460,"wires":[]},{"id":"ab566218b2ed95ae","type":"api-call-service","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":480,"wires":[["7ad870d96d981ffb"]]},{"id":"5cb66f4e3c245922","type":"api-call-service","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":1170,"y":480,"wires":[["f5f0f0f86413e3eb"]]},{"id":"f96279688fcf2591","type":"api-call-service","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":580,"wires":[["588692807e49bb5b"]]},{"id":"f5dfaec9cebb0228","type":"api-call-service","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":580,"wires":[[]]},{"id":"5d06aaf9c452d9e3","type":"api-call-service","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":1710,"y":480,"wires":[[]]},{"id":"744f7127ea625b07","type":"ha-button","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":600,"wires":[["884577b2c6a8645b"]]},{"id":"913b92b8b20e34d4","type":"ha-button","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":500,"wires":[["48d7677965ee55cf"]]},{"id":"884577b2c6a8645b","type":"api-current-state","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":600,"wires":[["588692807e49bb5b"],["f96279688fcf2591"]]},{"id":"48d7677965ee55cf","type":"api-current-state","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":500,"wires":[["7ad870d96d981ffb"],["ab566218b2ed95ae"]]},{"id":"7ad870d96d981ffb","type":"api-current-state","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":940,"y":480,"wires":[["f5f0f0f86413e3eb"],["5cb66f4e3c245922"]]},{"id":"588692807e49bb5b","type":"api-current-state","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":580,"wires":[[],["f5dfaec9cebb0228"]]},{"id":"244c96af08a6c375","type":"ha-button","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":700,"wires":[["2f3be44577e4c6de"]]},{"id":"8b3b368535512472","type":"api-call-service","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":680,"wires":[["6dbe287f87ca8389"]]},{"id":"313f9d5eb79c978d","type":"api-call-service","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":680,"wires":[[]]},{"id":"2f3be44577e4c6de","type":"api-current-state","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":700,"wires":[["6dbe287f87ca8389"],["8b3b368535512472"]]},{"id":"6dbe287f87ca8389","type":"api-current-state","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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":680,"wires":[[],["313f9d5eb79c978d"]]},{"id":"cc29d96fa7706ed3","type":"time-range-switch","z":"83c8b595c66db3d2","g":"9d70d1f117b9e3e9","name":"During Off Peak Elec","lat":"","lon":"","startTime":"23:30","endTime":"05:30","startOffset":0,"endOffset":0,"x":360,"y":880,"wires":[["c41e61dfe6b62501"],[]]},{"id":"b1d1d609dc4e0343","type":"api-call-service","z":"83c8b595c66db3d2","g":"9d70d1f117b9e3e9","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":900,"wires":[[]]},{"id":"cba94835dfd62d01","type":"api-call-service","z":"83c8b595c66db3d2","g":"9d70d1f117b9e3e9","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":1260,"y":840,"wires":[[]]},{"id":"e792be7bfc02a75e","type":"api-current-state","z":"83c8b595c66db3d2","g":"9d70d1f117b9e3e9","name":"Not EV Charging","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is_not","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":830,"y":840,"wires":[["cba94835dfd62d01"],[]]},{"id":"6a5c83950b0efcea","type":"api-current-state","z":"83c8b595c66db3d2","g":"9d70d1f117b9e3e9","name":"Not EV Charging","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is_not","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":830,"y":960,"wires":[["a7b14d2bb6e60cc3"],[]]},{"id":"b6b6f5e86f8c7240","type":"comment","z":"83c8b595c66db3d2","g":"9d70d1f117b9e3e9","name":"Notes","info":"**NOTE: Always assuming EV is not charging.**\n**Once charge completes this will take over.**\nWhen EV is charging the decisions are made in the other flow \n\"Different Modes - Buttons pressed dicated by EV charging status\"\n(EV Charge Detected = Select relevent Inverter mode)\nOnce charge is completed, this flow takes over again.\n\n**During GoFaster window**, considers slider for \"Desired Battery SOC\". \nIf that is higher than the \"Current SOC\", then the \"Demand Charge\" will direct \nthe flow to \"Charge Mode 1\". (Force Charge Battery)\n\nIf at the start of the GoFaster window the \"Desired Battery SOC\" is below the \n\"Current SOC\" the Solax Storage will continue to supply the house (Default Mode). \n\nIf the storage battery \"Desired SOC\" drops below the \"Current SOC\" during the GoFaster \nwindow (for exmaple oven or electric heaters have been used), the \"Demand Charge\" sensor \nwill trigger a \"Charge Mode 1\" and force charge the storage battery to the \"Desired SOC\". \nOnce battery desired SOC is reached, the house will then continue to run from grid until\nend of Go Faster Window. To avoid hovering around the Desired State of Charge and \nrequiring the inverter to switch back and forth between Mode 1 and Default Mode.\n(Charging then discharging the sotrage battery) Because this flow would see the inverter \nis in a manual mode already (either Mode 1 or Mode 2) and so not call the Default Mode \nagain.\nNote: When battery has already had to charge during the GoFaster window.\nBecause it is more efficient to buy energy in and use at 100% efficiency \nrather than convert through solax at only 90% efficiency via the battery stoarge.\n\n**Outside Go Faster window**\nPower Hour (UFH/Central Heating Tab) seprately handles forcing a charge \ndirectly into the button presses flow.\n\n**At 0030hrs once outside of the GoFaster window**, the house will be forced into \n\"Default Mode\" again and consume from storage.","x":1790,"y":960,"wires":[]},{"id":"15a80aa92af522ba","type":"comment","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","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 \nwill be c 10KW and so Inverter supplies 3.8KW from solar/battery \nand grid will provide the rest.","x":250,"y":660,"wires":[]},{"id":"14f381993180bbd5","type":"function","z":"83c8b595c66db3d2","g":"72af2b0f50800750","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":665,"y":360,"wires":[["9950907546faa561"]],"l":false},{"id":"1ca1e545adc3a724","type":"api-current-state","z":"83c8b595c66db3d2","g":"72af2b0f50800750","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":450,"y":360,"wires":[["14f381993180bbd5"]]},{"id":"f27115e9a1dcd9a9","type":"poll-state","z":"83c8b595c66db3d2","g":"72af2b0f50800750","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":360,"wires":[["1ca1e545adc3a724"]]},{"id":"ba5583ce064383bb","type":"comment","z":"83c8b595c66db3d2","g":"72af2b0f50800750","name":"Notes","info":"If the value on the user created slider for\n\"Desired Battery SOC\" is lower than the \n\"Actual Battery SOC\" then the \n\"Solax Battery Demand Charge\" sensor will \nbe off.\n\nIf the \"Desired Battery SOC\" is higher than \n\"Actual Battery SOC\" then the sensor is on.\n\nThe Function node could have a tolerance of \nany value eg. 5% above or below.\n\nSummer and Winter options for the solar \nforecast, to reflect the stored energy needed\nfor the following day to operate wit least \nimport from grid. Summer Mode is a boolean\ncreated in HASS and may operate other tasks too.","x":1790,"y":360,"wires":[]},{"id":"1f57ad5537ef1a70","type":"poll-state","z":"83c8b595c66db3d2","g":"9d70d1f117b9e3e9","name":"Consider every 30 Secs","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":880,"wires":[["cc29d96fa7706ed3"]]},{"id":"f5f0f0f86413e3eb","type":"ha-wait-until","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","name":"Solax Demand Charge Ends","server":"90b3cdec.31b14","version":2,"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","checkCurrentState":true,"blockInputOverrides":true,"outputProperties":[],"x":1440,"y":480,"wires":[["5d06aaf9c452d9e3"]]},{"id":"a7b14d2bb6e60cc3","type":"api-current-state","z":"83c8b595c66db3d2","g":"9d70d1f117b9e3e9","name":"Not Manual Mode?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"Manual Mode","halt_if_type":"str","halt_if_compare":"is_not","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":1050,"y":960,"wires":[["add30f0975ed537a"],[]]},{"id":"ad092d96f54d7a62","type":"cronplus","z":"83c8b595c66db3d2","g":"72af2b0f50800750","name":"11PM","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"0 01 23 * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":110,"y":100,"wires":[["c61ca2fb1e354250"]]},{"id":"c61ca2fb1e354250","type":"api-current-state","z":"83c8b595c66db3d2","g":"72af2b0f50800750","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":190,"y":160,"wires":[["80976cf7abebe853"]]},{"id":"ba774a5ff77b8ee1","type":"switch","z":"83c8b595c66db3d2","g":"72af2b0f50800750","name":"Summer","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":580,"y":120,"wires":[["c8843db7417ef87f"],["2ca7ac2fd79bbc8b"],["7b1d137b046a49a8"],["80b085eaf263503d"]]},{"id":"80b085eaf263503d","type":"api-current-state","z":"83c8b595c66db3d2","g":"72af2b0f50800750","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":940,"y":260,"wires":[[],["e14f2178a71e6b7c"]]},{"id":"7b1d137b046a49a8","type":"api-current-state","z":"83c8b595c66db3d2","g":"72af2b0f50800750","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":940,"y":140,"wires":[[],["e14f2178a71e6b7c"]]},{"id":"2ca7ac2fd79bbc8b","type":"api-current-state","z":"83c8b595c66db3d2","g":"72af2b0f50800750","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":940,"y":100,"wires":[[],["e14f2178a71e6b7c"]]},{"id":"3ce90cfd87dcdeec","type":"api-call-service","z":"83c8b595c66db3d2","g":"72af2b0f50800750","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":1350,"y":160,"wires":[[]]},{"id":"c41e61dfe6b62501","type":"api-current-state","z":"83c8b595c66db3d2","g":"9d70d1f117b9e3e9","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":600,"y":880,"wires":[["e792be7bfc02a75e"],["6a5c83950b0efcea"]]},{"id":"3a4b765c77c5c7f4","type":"link in","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","name":"Power Hour On IN","links":["d6a4f9488a124546","2591717bdb2a0109"],"x":325,"y":520,"wires":[["48d7677965ee55cf"]]},{"id":"d7f1110ca7a353df","type":"link in","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","name":"Power Hour End IN","links":["ca5325729175f0eb"],"x":285,"y":740,"wires":[["2f3be44577e4c6de"]]},{"id":"9950907546faa561","type":"ha-binary-sensor","z":"83c8b595c66db3d2","g":"72af2b0f50800750","name":"Solax Battery Demand Charge","entityConfig":"670a8fee3c3d6168","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":970,"y":360,"wires":[[]]},{"id":"add30f0975ed537a","type":"api-current-state","z":"83c8b595c66db3d2","g":"9d70d1f117b9e3e9","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_not","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":900,"wires":[["b1d1d609dc4e0343"],[]]},{"id":"d766f014afb0908a","type":"switch","z":"83c8b595c66db3d2","g":"72af2b0f50800750","name":"Winter","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":590,"y":200,"wires":[["7b1d137b046a49a8"],["e1723b767872ebe1"],["6132070a725dbeab"],["74136f5d05b3d38b"]]},{"id":"74136f5d05b3d38b","type":"api-current-state","z":"83c8b595c66db3d2","g":"72af2b0f50800750","name":"Desired SOC 100% ?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"100","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":"100","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":940,"y":300,"wires":[[],["e14f2178a71e6b7c"]]},{"id":"6132070a725dbeab","type":"api-current-state","z":"83c8b595c66db3d2","g":"72af2b0f50800750","name":"Desired SOC 70% ?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"70","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":"70","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":940,"y":220,"wires":[[],["e14f2178a71e6b7c"]]},{"id":"e1723b767872ebe1","type":"api-current-state","z":"83c8b595c66db3d2","g":"72af2b0f50800750","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":940,"y":180,"wires":[[],["e14f2178a71e6b7c"]]},{"id":"d7201d535becfd04","type":"cronplus","z":"83c8b595c66db3d2","g":"9d70d1f117b9e3e9","name":"Daily End of Off Peak Elec","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"10 31 05 * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":980,"y":900,"wires":[["add30f0975ed537a"]]},{"id":"7f192dcf1a17958e","type":"server-state-changed","z":"83c8b595c66db3d2","g":"61ac7753782676bb","name":"Fast EV Charging","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":130,"y":1100,"wires":[["2c839ada5ff156ec"],[]]},{"id":"17305fc2c59c42d8","type":"time-range-switch","z":"83c8b595c66db3d2","g":"61ac7753782676bb","name":"During Off Peak Elec","lat":"","lon":"","startTime":"23:30","endTime":"05:30","startOffset":0,"endOffset":0,"x":610,"y":1100,"wires":[["0de804d6533fc5bb"],["fa17ad032eef2f42"]]},{"id":"12fc47f78d5e6391","type":"comment","z":"83c8b595c66db3d2","g":"61ac7753782676bb","name":"Start Charging","info":"No action if Octopus Power Hour - controlled in the\nUFH/Central Heating tab. Will just force Solax\nto charge in Mode 1 (Force Charge)\n\nOtherwise:\n**Outside of GoFaster window** \nCar to charge from whichever source is\navailable. Solar, Battery & Grid.\nSelf Use mode will control that automatically. \nUsing minimum storage battery SOC%.\n\n**During GoFaster (2030-0030hrs daily)** \nenter manual mode and either \nA) Force charge battery \nor B) Stop Charge/Discharge - to prevent battery topping up \nfrom grid or being used.\nA - if solax is demanding charge based on the slider;\nB - if solax is no demanding a charge based on the slider\n\nIf (A) battery does demand charge, the button presses flow will\nthen take over and move to Mode 2 as required. \n\n\n","x":320,"y":1060,"wires":[]},{"id":"47d3e8638497ccec","type":"comment","z":"83c8b595c66db3d2","g":"61ac7753782676bb","name":"Stop Charging","info":"No action if Octopus Power Hour - controlled in the\nUFH/Central Heating tab. Will just force Solax\nto charge in Mode 1 (Force Charge) during Power Hour.\n\nOnce charging is complete. The EV Charge sensor will be considered\nin the \"Control charging of storage batteries when EV not charging\" \nflow above.\n\nDefault therefore is Mode 1 if the storage batteries need to charge\nor Default Mode if they are charged.\n","x":320,"y":1160,"wires":[]},{"id":"ba7a0c8169f5ecde","type":"api-call-service","z":"83c8b595c66db3d2","g":"61ac7753782676bb","name":"Press \"Charge Mode 1\" - EV from Grid & Force Solax Charge","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":1250,"y":1060,"wires":[[]]},{"id":"a7c0028fe988c53a","type":"api-call-service","z":"83c8b595c66db3d2","g":"61ac7753782676bb","name":"Press \"Charge Mode 2\" - EV from Grid & Hold Solax Charge","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":1250,"y":1120,"wires":[[]]},{"id":"fa17ad032eef2f42","type":"api-call-service","z":"83c8b595c66db3d2","g":"61ac7753782676bb","name":"Press \"Default Mode\" - Consume from Solax Storage","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":1230,"y":1180,"wires":[[]]},{"id":"0de804d6533fc5bb","type":"api-current-state","z":"83c8b595c66db3d2","g":"61ac7753782676bb","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":840,"y":1060,"wires":[["ba7a0c8169f5ecde"],["a7c0028fe988c53a"]]},{"id":"11f5d16fe32c6de1","type":"comment","z":"83c8b595c66db3d2","g":"61ac7753782676bb","name":"Notes","info":"**If Fast EV charging is detected (See Garage Tab)**\n\n\n**If during Go Faster:**\nIf house storage batteries demand a charge then enter Mode 1\nand charge batteries and car from grid.\nOr If storage doesnt demands charge then Mode 2\nand hold house storage battery charge. \nNote: the other flow for \"button presses\" takes over and\nhandles move from Mode 1 to Mode 2 during a charge.\n(Eg if house battery needs to be 50%\nand charge starts at 30%, when it reaches 50% the \ninverter will move from Mode1 to Mode2).\n\n**If outside Go Faster: **\nAssumption is this is emergency charging or during\nOctopus Power Hour and so permit this behaviour.\nUser must have actively chosen to do this.\nBattery storage will be drained and grid will top up additional\nload to charge car.\nIf early in the day the battery may recharge from solar to \ncontinue to supply house and batteries recharge\nor house will consume from grid as required.\nDefault Mode will be selected though it is expected to already\nbe engaged in this mode so no action will be taken.\n\n**When charging ends:**\nIf outside the Go Faster Window then should be in Default Mode\nalready and so button is pressed but no expected action.\nIf inside Go Faster window will enter Mode 1 or 2, Force or \nhold charge in solax battery based on the demand charge status. \nMore efficient to run house on the cheaper tariff than to run \non battery as only 90% efficient.\n","x":1790,"y":1180,"wires":[]},{"id":"2c839ada5ff156ec","type":"api-current-state","z":"83c8b595c66db3d2","g":"61ac7753782676bb","name":"Unusual Energy Use OK?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.unusual_energy_use_acceptable","state_type":"str","blockInputOverrides":false,"outputProperties":[],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":360,"y":1100,"wires":[[],["17305fc2c59c42d8"]]},{"id":"e14f2178a71e6b7c","type":"api-current-state","z":"83c8b595c66db3d2","g":"72af2b0f50800750","name":"Away / Hols?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.house_empty_holidays","state_type":"str","blockInputOverrides":false,"outputProperties":[],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1170,"y":160,"wires":[[],["3ce90cfd87dcdeec"]]},{"id":"e2695a6136d3bdcc","type":"api-current-state","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","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":1090,"y":1280,"wires":[["0db1d5e6ec32917e"],[]]},{"id":"0547daf957414cad","type":"ha-button","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","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":1560,"wires":[["9f0c434981879250"]]},{"id":"bd378ed93d315f3c","type":"api-call-service","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","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":340,"y":1560,"wires":[["91c1865eed5c4c8c"]]},{"id":"cbf3f5d8e19cbad6","type":"api-call-service","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Set UFH to 17'c","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"climate","service":"set_temperature","areaId":[],"deviceId":[],"entityId":["climate.underfloor_heating"],"data":"{ \"temperature\":17}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":720,"y":1560,"wires":[["d09bb688d98b9021"]]},{"id":"91c1865eed5c4c8c","type":"delay","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","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":550,"y":1560,"wires":[["cbf3f5d8e19cbad6"]]},{"id":"0db1d5e6ec32917e","type":"api-current-state","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","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":1290,"y":1280,"wires":[[],["5733660ef4cb9634"]]},{"id":"cc0f336dabdcbf94","type":"server-state-changed","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","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":520,"y":1280,"wires":[["e2695a6136d3bdcc"],[]]},{"id":"05f5554c85837a9a","type":"comment","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Jump Start Battery - Alert and Automation","info":"","x":200,"y":1280,"wires":[]},{"id":"d09bb688d98b9021","type":"delay","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","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":890,"y":1560,"wires":[["3153df1eb05dac3b"]]},{"id":"251b07666e1d0c89","type":"switch","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"","property":"data.attributes.current_heating_setpoint","propertyType":"msg","rules":[{"t":"lte","v":"17","vt":"str"},{"t":"gte","v":"18","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1355,"y":1500,"wires":[[],["2dcf343606e4626d"]],"l":false},{"id":"3153df1eb05dac3b","type":"api-current-state","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Check UFH 'c","server":"90b3cdec.31b14","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"climate.underfloor_heating","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":1500,"wires":[["251b07666e1d0c89"]]},{"id":"2dcf343606e4626d","type":"api-call-service","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Set UFH to 17'c","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"climate","service":"set_temperature","areaId":[],"deviceId":[],"entityId":["climate.underfloor_heating"],"data":"{ \"temperature\":17}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1480,"y":1500,"wires":[["8b963b2f9f688989"]]},{"id":"e9548b1cc8e7bdcb","type":"delay","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","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":1090,"y":1580,"wires":[["75e1b07921c971b6"]]},{"id":"9e6e239edb9a355d","type":"switch","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"","property":"data.attributes.current_heating_setpoint","propertyType":"msg","rules":[{"t":"lte","v":"17","vt":"str"},{"t":"gte","v":"18","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1395,"y":1580,"wires":[[],["d422170e6acf3409","291522665196bd77"]],"l":false},{"id":"75e1b07921c971b6","type":"api-current-state","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Check UFH 'c","server":"90b3cdec.31b14","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"climate.underfloor_heating","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":1280,"y":1580,"wires":[["9e6e239edb9a355d"]]},{"id":"2e43568ad02adf0f","type":"cronplus","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"11.37PM","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"0 37 23 * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":780,"y":1680,"wires":[["168dd375970dedd3"]]},{"id":"168dd375970dedd3","type":"api-current-state","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","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","propertyType":"msg","value":"","valueType":"entityState"}],"for":0,"forType":"num","forUnits":"minutes","x":1070,"y":1680,"wires":[["cb2ee06c2eee90c0"]]},{"id":"cb2ee06c2eee90c0","type":"switch","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"13","vt":"str"},{"t":"lte","v":"12","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1215,"y":1680,"wires":[[],["bed9111d7b6e5f8d"]],"l":false},{"id":"bed9111d7b6e5f8d","type":"api-call-service","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"iOS Actionable Notification - Prompt to Open Solar Dash","server":"90b3cdec.31b14","version":5,"debugenabled":true,"domain":"notify","service":"mobile_app_richs_iphone","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"The battery is still less than 12% charge so is probably not charging.\",\"title\":\"IMPORTANT ALERT\",\"data\":{\"url\":\"/lovelace-mushroom/solar\",\"actions\":[{\"action\":\"URI\",\"title\":\"Open Solar Dash\",\"uri\":\"/lovelace-mushroom/solar\"}],\"persistent\":true,\"tag\":\"persistent\",\"subtitle\":\"ACTION REQUIRED - Battery Charging Issue\",\"push\":{\"sound\":\"Choo_Choo.caf\"}}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1510,"y":1680,"wires":[[]]},{"id":"1eeeb64fe0999139","type":"comment","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Solax Battery not charging - stuck at/below 12%","info":"If by 2337hrs the battery is not at 13% \nalready, then it isn't charging as it is \nexpected to be. Alert is sent to notify \nof an issue.\n\n7 Mins from 2330-2337 is enough time for \nbattery to get to 13% from 10% usually.","x":860,"y":1640,"wires":[]},{"id":"d9b6e1050fb25cb6","type":"cronplus","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Hourly (25mins past the hour)","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"0 25 * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":190,"y":1840,"wires":[["9885bbabd15749bb","e6e954bd63c3fb9a"]]},{"id":"9885bbabd15749bb","type":"api-current-state","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Check Lock State","server":"90b3cdec.31b14","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.solax_lock_state","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":430,"y":1880,"wires":[["bd4178d363628a43"]]},{"id":"e6e954bd63c3fb9a","type":"api-current-state","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Check Running Mode","server":"90b3cdec.31b14","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.solax_run_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":440,"y":1800,"wires":[["35e0b8ed0ae8292f"]]},{"id":"bd4178d363628a43","type":"switch","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"Unlocked","vt":"str"},{"t":"eq","v":"Unlocked - Advanced","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":3,"x":585,"y":1880,"wires":[[],[],["6646add9c4c37c4f"]],"l":false},{"id":"35e0b8ed0ae8292f","type":"switch","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"Normal Mode","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":585,"y":1800,"wires":[[],["8b89c8e9dfd3bfbc"]],"l":false},{"id":"8b89c8e9dfd3bfbc","type":"api-call-service","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"iOS Actionable Notification - Prompt to Open Solar Dash","server":"90b3cdec.31b14","version":5,"debugenabled":true,"domain":"notify","service":"mobile_app_richs_iphone","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Check the Running Mode, it is not Normal Mode and may cause an issue.\",\"title\":\"IMPORTANT ALERT\",\"data\":{\"url\":\"/lovelace-mushroom/solar\",\"actions\":[{\"action\":\"URI\",\"title\":\"Open Solar Dash\",\"uri\":\"/lovelace-mushroom/solar\"}],\"persistent\":true,\"tag\":\"persistent\",\"subtitle\":\"ACTION REQUIRED - Solar Running Mode Issue\",\"push\":{\"sound\":\"Choo_Choo.caf\"}}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":850,"y":1800,"wires":[[]]},{"id":"6646add9c4c37c4f","type":"api-call-service","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"iOS Actionable Notification - Prompt to Open Solar Dash","server":"90b3cdec.31b14","version":5,"debugenabled":true,"domain":"notify","service":"mobile_app_richs_iphone","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Check the Lock State, if not Unlocked then automations will not run correctly\",\"title\":\"IMPORTANT ALERT\",\"data\":{\"url\":\"/lovelace-mushroom/solar\",\"actions\":[{\"action\":\"URI\",\"title\":\"Open Solar Dash\",\"uri\":\"/lovelace-mushroom/solar\"}],\"persistent\":true,\"tag\":\"persistent\",\"subtitle\":\"ACTION REQUIRED - Solar Lock State Issue\",\"push\":{\"sound\":\"Choo_Choo.caf\"}}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":850,"y":1880,"wires":[[]]},{"id":"3d01d1bc89736159","type":"api-call-service","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"iOS Actionable Notification - Prompt to Open Solar Dash","server":"90b3cdec.31b14","version":5,"debugenabled":true,"domain":"notify","service":"mobile_app_richs_iphone","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}}% I have jump started the battery but check it out.\",\"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\",\"subtitle\":\"NOTIFY ONLY - Jump Start Issue\",\"push\":{\"sound\":\"none\"}}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1710,"y":1400,"wires":[[]]},{"id":"5733660ef4cb9634","type":"api-call-service","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Jump Start Battery","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"button","service":"press","areaId":[],"deviceId":[],"entityId":["button.solax_jumpstart_battery"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1490,"y":1280,"wires":[["6f8733e94a220238"]]},{"id":"6f37c10f6228b96f","type":"comment","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Check 'Lock State' & 'Running Mode'","info":"If Lock sate is neither UNLOCKED or UNLOCKED - ADVANCED, automations\nwill fail as the inverter will not receive commands via the HASS\nintegration.\n\nIf running mode is IDLE the same applies\n\nEach 25 past the hour inverter status is checked and a warning \nnotification is sent to review if in the wrong state.\n25 past the hour gives enough time to review ahead of the half past\nautomation triggers that follow.","x":180,"y":1760,"wires":[]},{"id":"335d9e9b95783b41","type":"server-state-changed","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Battery is 13%","server":"90b3cdec.31b14","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.solax_battery_capacity","entityidfiltertype":"exact","outputinitially":false,"state_type":"num","haltifstate":"13","halt_if_type":"num","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"","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":130,"y":1680,"wires":[["f9e3898a4c48bc87"],[]]},{"id":"f9e3898a4c48bc87","type":"ha-wait-until","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Wait until 11%","server":"90b3cdec.31b14","version":2,"outputs":2,"entityId":"sensor.solax_battery_capacity","entityIdFilterType":"exact","property":"state","comparator":"is","value":"11","valueType":"str","timeout":"2","timeoutType":"num","timeoutUnits":"hours","checkCurrentState":true,"blockInputOverrides":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"str"}],"entityLocation":"data","entityLocationType":"none","x":320,"y":1680,"wires":[["0c7bc2e33f4649a0"],[]]},{"id":"0c7bc2e33f4649a0","type":"api-call-service","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","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":540,"y":1680,"wires":[[]]},{"id":"7470970375fcd39f","type":"comment","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Force to Manual - Hold Charge (Mode 2) when reaches 11% Battery","info":"At 13% battery monitor starts and waits until\nreaches 11%.\nWhen 11% reaches inverter will force into \nManual Mode and Mode 2\n(Foce Stop Charge/Discharge) to try to \navoid inverter going into an idle mode.\n\nOnce it is 2330hrs (offpeak), the other flow will then\nforce the inverter into Mode 1 and Force \nCharge the battery.\n","x":280,"y":1640,"wires":[]},{"id":"dc783ca6c44f99b7","type":"link out","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"To UFH OUT","links":["d2c0e23539cc9537","a61e01e0e425ec78","9eee63979043d110"],"x":1795,"y":1600,"wires":[]},{"id":"d422170e6acf3409","type":"api-current-state","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"If UFH still on then TURN OFF","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"heat","halt_if_type":"str","halt_if_compare":"is","entity_id":"climate.underfloor_heating","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"{\"system_mode\": \"off\"}","valueType":"str"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1630,"y":1600,"wires":[["dc783ca6c44f99b7"],[]]},{"id":"6f8733e94a220238","type":"api-current-state","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Check UFH - Notify with ACTION or WARN","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"climate.underfloor_heating","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":1310,"y":1360,"wires":[["3debfb545887d88f"],["3d01d1bc89736159"]]},{"id":"b90d38a4c614a005","type":"api-current-state","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Not Charging","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"off","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":510,"y":1400,"wires":[["30f3019619df09c8"],[]]},{"id":"42e3e3dee4bf7281","type":"cronplus","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"05:32hrs for immediate switch over","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"str","payload":"","expressionType":"cron","expression":"10 32 05 * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":200,"y":1320,"wires":[["4fd12a29ddb5105b"]]},{"id":"847b9d38ca2f4c5c","type":"time-range-switch","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"During Off Peak Elec","lat":"","lon":"","startTime":"23:30","endTime":"05:30","startOffset":0,"endOffset":0,"x":320,"y":1380,"wires":[[],["b90d38a4c614a005"]]},{"id":"3debfb545887d88f","type":"api-call-service","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"iOS Actionable Notification - Prompt to Open Solar Dash","server":"90b3cdec.31b14","version":5,"debugenabled":true,"domain":"notify","service":"mobile_app_richs_iphone","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}}% I have jump started the battery but check it out as UFH is OFF and so may not have worked.\",\"title\":\"IMPORTANT ALERT\",\"data\":{\"url\":\"/lovelace-mushroom/solar\",\"actions\":[{\"action\":\"URI\",\"title\":\"Open Solar Dash\",\"uri\":\"/lovelace-mushroom/solar\"}],\"persistent\":true,\"tag\":\"persistent\",\"subtitle\":\"ACTION REQUIRED - Jump Start Issue\",\"push\":{\"sound\":\"Choo_Choo.caf\"}}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1710,"y":1340,"wires":[[]]},{"id":"291522665196bd77","type":"api-call-service","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"iOS Actionable Notification - Prompt to Open Solar Dash","server":"90b3cdec.31b14","version":5,"debugenabled":true,"domain":"notify","service":"mobile_app_richs_iphone","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Looks like you tried to jumpstart the battery but the UFH temp is still set high. Check it out. UFH Should have been switched off to protect batteries.\",\"title\":\"IMPORTANT ALERT\",\"data\":{\"url\":\"/lovelace-mushroom/solar\",\"actions\":[{\"action\":\"URI\",\"title\":\"Open Solar Dash\",\"uri\":\"/lovelace-mushroom/solar\"}],\"persistent\":true,\"tag\":\"persistent\",\"subtitle\":\"WARNING - Jump Start Issue\",\"push\":{\"sound\":\"Choo_Choo.caf\"}}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1710,"y":1560,"wires":[[]]},{"id":"773305ad94bd10dc","type":"cronplus","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Every 5 Mins","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"str","payload":"","expressionType":"cron","expression":"30 */5 * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":130,"y":1400,"wires":[["847b9d38ca2f4c5c"]]},{"id":"8e020d96665d9875","type":"delay","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":835,"y":1400,"wires":[["7ef9ef8801e1b48a"]],"l":false},{"id":"7ef9ef8801e1b48a","type":"api-current-state","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Grid Import of => 200","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"200","halt_if_type":"num","halt_if_compare":"gte","entity_id":"sensor.solax_grid_import","state_type":"str","blockInputOverrides":false,"outputProperties":[],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":980,"y":1400,"wires":[["e2695a6136d3bdcc"],[]]},{"id":"4fd12a29ddb5105b","type":"api-current-state","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Not Charging","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"off","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":510,"y":1340,"wires":[["58419bc97af9d211"],[]]},{"id":"30f3019619df09c8","type":"api-current-state","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Grid Import of => 200","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"200","halt_if_type":"num","halt_if_compare":"gte","entity_id":"sensor.solax_grid_import","state_type":"str","blockInputOverrides":false,"outputProperties":[],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":700,"y":1400,"wires":[["8e020d96665d9875"],[]]},{"id":"58419bc97af9d211","type":"api-current-state","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Grid Import of => 200","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"200","halt_if_type":"num","halt_if_compare":"gte","entity_id":"sensor.solax_grid_import","state_type":"str","blockInputOverrides":false,"outputProperties":[],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":700,"y":1340,"wires":[["e2695a6136d3bdcc"],[]]},{"id":"9f0c434981879250","type":"api-current-state","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Original UFH State Off?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"climate.underfloor_heating","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":170,"y":1500,"wires":[["dcf8c69614840961"],["bd378ed93d315f3c"]]},{"id":"dcf8c69614840961","type":"api-call-service","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"UFH Heat","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"climate","service":"set_hvac_mode","areaId":[],"deviceId":[],"entityId":["climate.underfloor_heating"],"data":"{\"hvac_mode\":\"heat\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":360,"y":1500,"wires":[["d1c6e2763a84a1a8"]]},{"id":"d1c6e2763a84a1a8","type":"delay","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Wait 10 secs","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":630,"y":1500,"wires":[["bd378ed93d315f3c","cc3360fccb975fa1"]]},{"id":"cc3360fccb975fa1","type":"delay","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"Wait 1 min","pauseType":"delay","timeout":"1","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":790,"y":1500,"wires":[["b9f2e17e527b0ec9"]]},{"id":"b9f2e17e527b0ec9","type":"api-call-service","z":"83c8b595c66db3d2","g":"07c3cdd84aabad4f","name":"UFH Off","server":"90b3cdec.31b14","version":5,"debugenabled":false,"domain":"climate","service":"set_hvac_mode","areaId":[],"deviceId":[],"entityId":["climate.underfloor_heating"],"data":"{\"hvac_mode\":\"off\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":940,"y":1500,"wires":[[]]},{"id":"80976cf7abebe853","type":"api-current-state","z":"83c8b595c66db3d2","g":"72af2b0f50800750","name":"Summer?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.summer_time","state_type":"str","blockInputOverrides":false,"outputProperties":[],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":420,"y":160,"wires":[["ba774a5ff77b8ee1"],["d766f014afb0908a"]]},{"id":"c8843db7417ef87f","type":"api-current-state","z":"83c8b595c66db3d2","g":"72af2b0f50800750","name":"Desired SOC 30% ?","server":"90b3cdec.31b14","version":3,"outputs":2,"halt_if":"30","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":"30","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":940,"y":60,"wires":[[],["e14f2178a71e6b7c"]]},{"id":"0e15bd6e3a291dfb","type":"comment","z":"83c8b595c66db3d2","g":"58a51c10b8e0217a","name":"Notes","info":"Buttons are user created in Node Red (Charge Mode 1/2/3)\n\nConsiders the mode the inverter is already in and if \nrequired sets the correct mode (Manual or Self Use)\n\nIf Mode 1 or 2 selected, then inverter needs to \nbe in 'Manual Mode' and either 'Force Charge' or \n'Stop Charge and Discharge' to produce the right\nresult.\nButton press will check the mode and set if not right\nrather than just setting the mode to avoid making \ntoo many requests to the inverter if already in the\ncorrect state.\n\nIf Mode 3/Default/Self Use mode selected, needs to\nbe in Self Use Mode. Will then also make sure the \ntimes are correct for 'Charge End Time 1'. Though\nthis was orignially when using Go Faster where Off Peak\nstarted at 2030hrs. Since moving to Intelligent not \nadjusted or noticed any issues so this is likely an unnecessary\nstep? \n\nSTILL TO DO: Consider if the Check CET1 node is required\nor if time needs to be altrered.\n","x":1790,"y":740,"wires":[]},{"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":"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},{"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":""}]}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement