Hostex is a cloud-based short-term rental management software (PMS) that provides a broad range of features, automation tools, and seamless integration with popular booking platforms.
This is a Matrix bridge for Hostex, allowing you to interact with Hostex conversations through Matrix. I use it with Airbnb primarily.
This bridge was developed using the mautrix framework and was written with the assistance of OpenAI's Claude AI.
This project uses the mautrix-python library, which is licensed under the Mozilla Public License 2.0. The mautrix project can be found at: https://github.com/mautrix/
This Hostex Matrix Bridge is licensed under the BSD 3-Clause License. See the LICENSE file for details.
- Python 3.7+
- A Matrix homeserver (e.g., Synapse)
- Hostex API credentials
-
Clone this repository: git clone https://github.com/keithah/hostex-matrix-bridge.git cd hostex-matrix-bridge
-
Create a virtual environment and activate it: python3 -m venv venv source venv/bin/activate
-
Install the required dependencies: pip install -r requirements.txt
- Copy the example configuration files: cp config.example.yaml config.yaml cp registration.example.yaml registration.yaml
- Edit
config.yaml
andregistration.yaml
to match your setup. See the Configuration section below for details. - Register the application service with your Synapse server:
- Add the path to your
registration.yaml
file in your Synapsehomeserver.yaml
configuration:app_service_config_files: - /path/to/hostex-bridge/registration.yaml
- Restart your Synapse server to apply the changes.
- Copy the example configuration file: cp config.example.yaml config.yaml
- Edit
config.yaml
to match your setup. See the Configuration section below for details. - Use
bbctl
to register and start the bridge: bbctl bridge add hostex /path/to/hostex-bridge/config.yaml bbctl bridge start hostex
Run the bridge using: python hostex_bridge.pyo
The bridge should start automatically after registration. You can manage it using bbctl commands: bbctl bridge status hostex bbctl bridge stop hostex bbctl bridge start hostex
Once the bridge is running and configured:
Invite the bridge bot (e.g., @hostexbot:example.com) to a room. The bridge will create a room for each Hostex conversation. You can now send and receive messages between Matrix and Hostex.
Check the bridge logs (console output or bridge.log) for any error messages. Ensure your Hostex API credentials are correct. Verify that the application service is properly registered with your homeserver. For beeper/bbctl setups, use bbctl bridge logs hostex to view logs.
Contributions are welcome! Please feel free to submit a Pull Request.
If you encounter any issues or have questions, please open an issue on the GitHub repository.