and some alarm system installed on a remote server and called by its own
API (via GET request). As soon as the alarm is activated, it switches on the
alarm siren and sends an SMS to the operator.

Our task is to automate the above:

To switch on the internal ventilation every night for the period from 9pm
till 7am.

To switch on ventilation in the daytime, if the air temperature is above 25
degrees for more than 5 minutes in a row.

If the sensor detects a motion, do the following:

if the alarm is on - send an API request to the alarm system

if the alarm is off - turn on the light in the hall

The user should be able to control the ventilation system with web interface,
see the temperature, manage alarm and lighting

Let’s do this step by step, from equipment configuration to interface
development. Let’s Suppose that EVA has already been installed
and everything is located on a single server, including MQTT
server with eva:secret access and all the data will be sent into plant1
subject.