With a Raspberry Pi gateway, you can collect data from RS-485 devices such as temperature and humidity sensors and door sensors to achieve remote control of relay actions.
Python3.0
PyCharm 2021.2.3
new_temp_hum_door.py
Download the demo at: https://github.com/Tuya-Community/Raspberry_PI_collects_data_from_485_sub-devices.git