Closed stefan-schweiger closed 10 months ago
@gruijter any chance to get this merged soon-ish? Because it's pretty annoying that this is not working correctly now during the winter time when prices fluctuate so much. Just want to know if I should wait or install a new version manually myself in the meantime. Thanks! 🙂
Will try this weekend. Good find!
The current way
sort
is used only works for numbers< 1
and also not for all negative ranges, since I have my prices converted to cents I was wondering why the When-triggers were not correctly firing for "The price becomes one ofnumber
lowest in theperiod
hours beforetime
o'clock" etc.You can simply see this by this example:
I've changed all occurences in
generc_dap_device.js
(which seems to be the only file usingsort
) to use the correct sort function.