Skip to content

Heating & Lighting Control

Navigate to Fűtés és világítás via /Club/WifiRelay.

Overview

HellaBooking supports remote control of heating and lighting equipment through IP-connected WiFi relay devices. Relays can be switched on/off manually or automatically based on reservations.

Relay Types

ID Type
1 Heating (Fűtés)
2 Lighting (Világítás)

Data Model

WifiRelay Table

Column Type Description
Name nvarchar Display name for the relay
WifiRelayType_ID FK Heating (1) or Lighting (2)
IP varchar Device IP address
Port int Device port
CmdOn varchar Command string to turn on
CmdOff varchar Command string to turn off
CmdStatus varchar Command string to query status
RelayNo int Relay number on the device
SwitchMode int Switching mode
OffsetControlOn int Minutes before reservation to turn on
OffsetControlOff int Minutes after reservation to turn off
Retry int Retry count on command failure
Status int Current relay status
IsActive bit Whether the relay is enabled

Links relays to specific sports fields with a setup configuration:

Column Description
SportsField_ID The linked field
WifiRelay_ID The linked relay
WifiRelaySetup_ID Setup type — Default (1)

Setup types

Currently only Default (1) setup is defined via WifiRelaySetup_Enum.

System Parameters

Parameter Default Description
WifiRelayAutoSwitch NO Automatic on/off based on reservations
WifiRelaySetup 1 Active setup configuration
WifiRelayErrorRetry 5 Retry attempts on communication failure
WifiRelayHeatingIdlePeriod 180 Minutes of idle time before auto-off for heating
WifiRelayLightingIdleStart 00:00 Start of lighting idle window
WifiRelayLightingIdleEnd 00:00 End of lighting idle window
WifiRelayMainSwitchConnection (empty) Main switch relay connection string

Auto-switch

When WifiRelayAutoSwitch is set to YES, relays are turned on/off automatically based on reservation times, using the OffsetControlOn and OffsetControlOff minute offsets. Ensure relay IP addresses and commands are correctly configured before enabling.

Access Control

Available to Trainer (Edző), Receptionist (Recepciós), Club manager (Klubvezető), and Janitor (Gondnok) user types.

Demo environment

The demo site has 2 WiFi relays configured for reference.