Two kinds of room status
| Status | Records | Direction |
|---|---|---|
| Occupancy: is a guest checked in | Check-in GI, checkout GO, change/room move GC | OPERA → third party |
| Cleaning and service: dirty, clean, DND, make up room | Room status RE | Both (per hotel configuration) |
Room control that only cares about occupancy needs guest records alone; cleaning robots and housekeeping systems also need RE. See guest records and room status records.
Steps
- Connect and handshake: after the TCP connection, send
LSandLD, then declare every record and field you need withLR, for exampleLR|RIGI|FLRNG#GNGAGD|. OPERA won’t send records you didn’t declare. See link control records. - Initialise: after the handshake send
DRfor a database resync; OPERA sends current in-house guests and room status betweenDS…DE, the starting point for your local state. - Handle live events: update local state by room; on a room move handle both the old room and the new one; separate sharers by reservation so a partial checkout doesn’t clear the whole room.
- Send status back (optional): when your system changes cleaning status, send an
RErecord, if housekeeping agrees. - Keep alive and reconnect: send
LAwhen idle; treat a missingLAfrom the other side as link loss, reconnect, handshake again and resync withDR.
Common problems
- Events lost during an outage: FIAS doesn’t replay events from while the link was down; the post-reconnect
DRfills the gap. Test recovery after a link drop before go-live, not just live events. - Night audit: OPERA sends
NS/NEmarkers during night audit; handle status changes in that window per hotel procedure. See database sync and night audit. - Room number format: local room numbers must match OPERA exactly, including leading zeros and building prefixes.
