--[[                    Ogólny opis i zasady użycia / General description and rules of use
PL
Rozwiązanie sterowania dla zaworów elektromagnetycznych lub/i pieca zasilającego grzejniki.
Patrz filmy DIY: https://www.portal.ztechnikazapanbrat.pl/filmpagescollection/650

Algorytm na podstawie nastawionych temperatur w pokojach i odczytu parametrów z termostatów steruje zezwoleniem na pracę pieca lub otwarciem zaworów doprowadzających gorący czynnik CO.
Algorytm zarządza pracą pieca/zaworów porównując temperaturę nastawioną na termostacie z temperaturą  mierzoną w pokoju.
Algorytm nie ingeruje w proces sterowania termostatu, ale uwzględnia każdą nastawę temperatury termostatu (harmonogram, sterowanie ręczne, tryb wakacji).
Algorytm pozwoli na pracę pieca/otworzy zawór CO, jeżeli choć jeden grzejnik będzie potrzebować grzać.
Zapotrzebowanie na grzanie zostanie wycofane, gdy wszystkie grzejniki (wszystkie pokoje) osiągną zadaną temperaturę.
Opcjonalnie istnieje możliwość wstrzymania pozwolenia na grzanie w całym domu dla wszystkich grzejników (np. w okresie lata) przez ustawienie wartości "true" w zmiennej globalnej o nazwie "heatingMasterDevStat".
Zalecane jest użycie Quick App - głównego panela sterowania ogrzewaniem, który kontroluje zezwoleniem na ogrzewanie np. podczas ciepłych dni przez zmienną globalną o nazwie "heatingMasterDevStat".

Poniżej znajduje się legenda parametrów, jakie należy skonfigurować.

UWAGA!
Algorytm ma za zadanie wygenerować pozwolenie na włączenie lub wyłączenie obiegu ciepłego ogrzewania CO. Algorytm NIE steruje pracą pieca, za którą odpowiada wewnętrzny regulator pieca.


EN
New control solution for solenoid valves or a heating furnace/oven that powers the radiators/heaters.
Look at DIY videos at: https://www.portal.ztechnikazapanbrat.pl/filmpagescollection/650

The algorithm, based on the set temperatures in the rooms and reading the parameters from thermostats, controls the permission to operate the oven/valves.
Algorithm manages the operation of the stove/valves by comparing the temperature set on the thermostat with the temperature measured in the room.
The algorithm does not interfere with the thermostat control process but takes into account each thermostat temperature setting (schedule, manual control, holiday mode).

The algorithm will allow the oven to work/will open the valve if at least one heater (thermostat) needs to heat.
The heating demand will be withdrawn when all radiators (all rooms) have reached the set temperature.
Optionally, it is possible to suspend the heating permit for the whole house for all heaters (e.g. during the summer period) by setting the value "true" in the global variable named "heatingMasterDevStat"
It is recommended to use Quick App - the central heating control panel, which controls the heating permission. The Quick App can stop approval for heating a house on warm days by managing a global variable named "heatingMasterDevStat".

Below is the legend of the parameters to be configured.

WARNING!
The algorithm is designed to generate permission to enable or disable the central heating circuit. Algorym does NOT control the oven operation.

Designed by Lukasz Gawryjolek 2020
https://www.portal.ztechnikazapanbrat.pl/ 
Pierwsza platforma DIY na rynku dla Inteligentnego Domu
email: lukasz@ztechnikazapanbrat.pl
