Dear forum,
I am trying to trigger on low energy price from Nordpool.
The following pseudocode describes what I am trying to do:
float: low_price_threshold;
float: current_price;
low_price: boolean;
waterheater_set_temp: high, normal;
low_price_threshold = minimum + (average - minimum)/2;
if (low_price_threshold - current_price <= 0) then low_price = true;
else low_price = false;
if low_price then waterheater_set_temp = high;
else waterheater_set_temp = normal;
“average” and “minimum” are attributes from the Nordpool integration. I am quite lacking in my YAML understanding and the GUI doesn’t really help with this. Can anyone help get me going, please?