With this PHP script, you can automatically control IoT devices such as heating, lights or sockets directly from within Beds24 (Autoaction) – for example, to coincide with guests’ bookings or arrival.
1. The night storage heater is automatically switched on the day before the guests arrive
2. String lights and wall heating switch on on the day of arrival
3. All devices are automatically switched off on the day of departure
What was important to me:
reliable
flexible (various devices/types)
currently, there are adapters for Shelly / Tuya / Fritz(box Smart devices) / Iobroker_dect
Easy to use in everyday life (clear feedback via email)
This saves time, prevents errors and makes running the system much more relaxed.
If anyone is interested or uses something similar – feel free to share your thoughts here in the forum
Attached is the PHP script. Prerequisites: a web server to upload the script and basic knowledge of how to edit script files.