 
 void processACMessage(const MyMessage &message) {
   // We only expect one type of message from controller. But we better check anyway.
-  if (message.sensor == CHILD_ID_RELAY_AC && message.type == V_LIGHT) {
+  if (MODE && message.sensor == CHILD_ID_RELAY_AC && message.type == V_LIGHT) {
     digitalWrite(RELAY_PIN, RELAY_ON);
     hw.wait(PUSH_TIMEOUT);
     digitalWrite(RELAY_PIN, RELAY_OFF);

  // --- RELAY
  hw.present(CHILD_ID_RELAY, S_LIGHT);
  hw.present(CHILD_ID_RELAY_AC, S_LIGHT);

  // Then set relay pins in output mode
  pinMode(RELAY_PIN, OUTPUT);

void incomingMessage(const MyMessage &message) {
  processHeatingMessage(message);
  processACMessage(message);
  processModeMessage(message);
}

void processHeatingMessage(const MyMessage &message) {
  // We only expect one type of message from controller. But we better check anyway.
  if (!MODE && message.sensor == CHILD_ID_RELAY && message.type == V_LIGHT) {
    // Change relay state
    digitalWrite(RELAY_PIN, message.getBool() ? RELAY_ON : RELAY_OFF);
    // Store state in eeprom
