Order to write API integration of systems:
- Hotelgram (http://apimanual.previo.cz/)
+ possible control script.
The integration should concern the control of radiator thermostats in the object - integrating the adjustment of temperature in individual rooms depending on the occupancy of the object. Thermostats - communication via Zigbee.
Depending on the available reservations, the system should independently control the temperature in rooms according to predetermined conditions.
For example, querying the Hotelgram database for current bookings at an interval of 1-3 minutes. If a reservation in the Hotelgram is currently active (guest is in the room), do not make temperature changes at the specified thermostat in the Tuya application. If a specific reservation in Hotelgram has changed its status to inactive, reduce the room temperature to the level set in the schedule. 3 hours before the next booking in Hotelgram is activated, change the temperature of the radiator thermostat to the desired level in order to heat up the room. etc.
Simple logical if->then rules.
Integration properly secured against unauthorized access.