i use this script to charge my battery daily (16kw) to charge in the cheapest hours possible whit lots of trial and error. i think this is the best aproach but any input is usefull
smal python3 script to retrieve 24h prices and amount of charge hours. make a selection from the lowest 5 values and write the 5'th highest value back to a domoticz IDX
create idx virtual sensors in domoticz download py file to home/$user location make executable chmod u+x tibber-charge-script.py update variables and run with crontab -e every hour
when run in console next items wil be visible:
for domoticz:


