On the Example workflow WIKI page, Section "Charge batteries only using night time rates – unless the SoC is critically low"
The code is incorrect. When Imported, the "Night" function uses && rather than ||. This mistake causes the logic to fail if it is 12a-6a, because the >=22 fails first which causes the FALSE immediately without checking the next evaluation. || would require either/or to be true.
The WIKI page would not allow me to edit nor suggest edits, so reporting it here.
On the Example workflow WIKI page, Section "Charge batteries only using night time rates – unless the SoC is critically low"
The code is incorrect. When Imported, the "Night" function uses && rather than ||. This mistake causes the logic to fail if it is 12a-6a, because the >=22 fails first which causes the FALSE immediately without checking the next evaluation. || would require either/or to be true. The WIKI page would not allow me to edit nor suggest edits, so reporting it here.