Job description
Order to write API integration of systems:
- TUYA (https://developer.tuya.com/en/docs/iot/quick-start1?id=K95ztz9u9t89n)
- S4h
+ possible control script.
The integration is to be about controlling radiator thermostats in the facility - integrating temperature adjustment in individual rooms depending on the occupancy of the facility. 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 S4h database for current reservations with an interval of 1-3 minutes. If in S4h the reservation is currently active (guest is in the room) do not make temperature changes on the specified thermostat in Tuya application. If a specific reservation in S4h has changed its status to inactive, reduce the room temperature to the level set in the schedule. 3h before activation of the next reservation for the given room in S4h, change the temperature of the radiator thermostat to the set level in order to heat up the room. etc.
Simple logical if->then rules.
Integration properly protected against unauthorized access.