By HOTEKEY Engineering Team · Last reviewed: 2026-11-23
What Happens Automatically Between Check-in and Check-out?
A hotel room moves through five automatic states between check-in and check-out: pre-occupied when the PMS posts the stay, occupied on confirmed presence, sleep on schedule, away after 15 minutes without presence, and checkout on departure. The business layer decides which state applies; the room controller executes it without a round trip to the cloud. HOTEKEY’s sequence-of-operations baseline names six states — the sixth is vacant, which brackets the stay — with 24 °C occupied, 26 °C away, 25 °C sleep and 27 °C checkout, and it fixes the transition delays rather than leaving them to the installer.
What Fires in the Room at Check-in, Before the Guest Opens the Door?
At check-in the room pre-conditions itself before the guest reaches the door: the RCU recalls the welcome scene, holds 24 °C and closes the curtains, so the first impression is already set when the lock opens. The state is pre-occupied, not occupied — presence is still unconfirmed. Two parameters do the work: a 45-minute timeout that drops an unentered room back if no presence arrives, and card validation against the PMS stay record, which is what stops an unregistered card from energising a room. That validation is also the mechanism behind anti-room-hopping control.
How Does the Room Confirm the Guest Is Actually Inside?
Presence is confirmed by fusing door contact and motion, because either source alone produces false states: a propped door reads as occupied, and a guest reading in bed reads as away. The baseline is door closed plus motion within 15 minutes for occupied, then both sources absent for 15 continuous minutes before away. Door contacts are debounced at 500 ms, mmWave presence substitutes for PIR where sleeping guests are a known complaint, and occupancy is computed in the RCU so a head-end round trip never gates a light switch.
What Changes During the Stay — Sleep, DND and Privacy?
During the stay the room shifts to sleep at 23:00–07:00 with 25 °C and the fan locked to low, and it holds DND and MUR through every state change instead of clearing them on a motion blip. The deadbolt is a privacy input: when it engages, the lock reports privacy to the RCU, which suppresses housekeeping prompts and can hold the DND sign. Guest override is clamped to ±3 °C around 24 °C and the valve is ramp-limited, so a guest is never woken by a valve slamming or a bright scene returning.
What Happens at Check-out, and Why Is the Room Not Released Immediately?
At check-out the PMS posts the departure, the RCU drops lighting and controlled sockets, sets 27 °C with the fan off, and flags the room for housekeeping — it does not return the room to vacant on its own. The reason is operational: a housekeeping card must not silently release a room a guest is still inside, so an explicit inspected flag closes the stay. On the access side the mobile key is revoked and the hotel lock returns to locked-default while keeping its 900 opening records for audit. Energy policy for the vacant period then follows the room energy profile rather than the guest setpoint.
What Still Works If the PMS Link or the Building Network Drops?
The room keeps running, because the state machine lives in the RCU: lighting, HVAC and scenes continue on the last known state, and only upstream reporting and PMS sync pause. The controller exposes link health as a binary point (RM_PMS_LINK = 0), which is what separates a real fault from the “ghost” faults that turn out to be PMS timeouts. The acceptance test is a 10-minute disconnect: the room must hold its state and raise the flag, not fall back to vacant and discard the guest’s setpoint — the same local-first pattern documented in the Mongolia PMS integration project.
Where Do These Flows Fail in Real Hotel Projects?
Most go-live failures are room-number mapping and interface parameters, not broken cabling — duplicated or shifted room numbers are the most frequent fault on multi-building properties. Debug one room end to end first (check-in → welcome scene → status back), then audit the mapping table for the remaining rooms. Three tests catch the rest: 20 door opens in 30 seconds, where occupancy must not flap; 25 motionless minutes with the lights off, where no bright scene may return; and a housekeeping card at checkout, which must not release the room without the inspected flag. The interface detail behind these steps is in the PMS integration guide.
What Does the Flow Need From the Systems You Already Run?
The flow needs four layers agreeing on one room-state model; if any layer is missing, the state has to be entered by hand and the automation degrades to a manual panel. The table below is the layer-by-layer requirement, including what breaks when a layer is absent.
| Layer | Owns | Interface | What breaks without it |
|---|---|---|---|
| PMS (Opera / Fidelio class, chain APIs) | Reservations, check-in / check-out, billing | TCP/IP or serial, room-state messaging | No pre-conditioning and no clean release; front desk sets state manually |
| GRMS / HOTEKEY Cloud | Translation of business events into room state, fleet reporting | Open room-status interface over TCP/IP | State lives only at the panel; no property-wide view or trend |
| Room RCU | The five-state machine and local execution | RS-485 / Modbus, KNX, BLE Mesh or Zigbee | Nothing executes — no scenes, no setback, no status |
| Smart lock | Credential issue and revoke, privacy state, audit trail | RFID; BLE 5.1 optional, via gateway | Mobile key and privacy linkage drop out; card access continues |
| Wireless gateway (BLE Mesh rooms) | Bridges the wireless room fabric to IP | TCP/IP, MQTT | Upstream sync stops; in-room control keeps running |
The state logic is identical in wired and wireless rooms — a Mod-BUS RS-485 room and a J26 BLE Mesh room run the same five states. What changes is delivery: cabled rooms carry status on the bus, wireless rooms add a gateway per room or floor, and the RCU is the only component that must exist in every case.
When This Flow Does Not Fit
This flow assumes a PMS that publishes stay events. Where the PMS exposes billing only — no room-state event or API — run the room from card and sensor state alone and let the front desk set occupancy manually; the same applies to serviced apartments with no front desk. Sequence values here are a baseline to be re-tuned to climate, tariff and facade before handover, and an integration is only warranted once interface parameters are agreed per property.