Updated – December 29, 2022
If the maximum power capacity is exhausted, both stages of the ALDE electric heater are switched off. If this condition lasts longer and temperatures are around freezing point or lower, it is helpful to activate the gas heater automatically.
For this there is only one line of code in the blank line of the last one elseif
-Add branch:
dom.GetObject("BidCos-RF.IEQ0101895:4.STATE").State(0);
This is how channel 4 of the Homematic 4-way relay module is activated.
If the plus line of the coil connection of a double changeover relay connected in parallel to the contacts of the gas switch on the ALDE control panel is connected to its potential-free relay outputs, the switching contacts of which are in turn connected in parallel to the switch contacts, The gas heater can be switched on and off automatically or, as before, manually via the switch position.
Due to the parallel connection, manual operation is still possible in the usual way.