Skip to content

flex-tariff-green-slot

The flex-tariff-green-slot block is used to indicate periods during the day when electricity is priced at the lowest or highest level. Electricity price information is determined based on the Day-Ahead Market (RDN). This block allows users to optimize electricity consumption by adjusting its use to periods with the lowest or highest prices.

If prices are missing or a temporary problem occurs while retrieving them, the system automatically retries without requiring a restart. Missing data for today does not by itself block checking prices for tomorrow.

Configuration parameters

Parameter name Value
Name (name) The name displayed on the block in the editor. Enter a custom name to identify the block more easily; if the field is empty, flex-tariff-green-slot is displayed.
Start time (start_time) A field specifying the exact time, including minutes, from which the block should analyze electricity prices.
End time (end_time) A field with the end time, including minutes. The final minute is included, for example 12:00-12:30 = 31 minutes.
Cheapest/Expensive time (minutes) (cheapest_time) A numeric field specifying the length of the searched period in minutes. Example: with “Start time” set to 8:00, “End time” to 15:59, and this field to 60, the block searches for the best 60-minute period within that range.
Continuous optimization (continuous_optimization) Enabled: for example, with “Cheapest/Expensive time (minutes)” set to 60, the block finds one best continuous 60-minute slot in the range defined by “Start time” and “End time”. Disabled: the block searches for multiple shorter periods with the lowest/highest price, without requiring continuity.
Expecting cost (expecting_cost) Select whether the block should search for the lowest or the highest energy cost.

Input handling

The flex-tariff-green-slot block reads values from input lines marked using the tag block. The table below describes the meaning of individual inputs:

Input number and name Description
tag1: Change cheapest/most expensive energy time in minutes A value in minutes specifying the length of the searched period. After being sent, the value is remembered by the block until the project is restarted. The block accepts it only if such a period can be found within the configured range, with a 10-minute tolerance.
tag2: Optimize in continuous mode Sending the value true enables “Continuous optimization”, while sending false disables it. After being sent, the value is remembered by the block until the project is restarted.

Block outputs

Output number and name Output description
1. Expected cost. Returns true when the data indicates that the current time falls within a period matching the criterion selected in “Expecting cost”. Otherwise it returns false.
2. No data. Returns false when electricity prices are available. Returns true when electricity prices are not available.
3. Elapsed time. The number of minutes already used today while searching for the period with the lowest or highest price.
4. Remaining time. The number of minutes still left to use today.