Prerequisites
Before you begin, ensure you have the following installed on your system:- Docker
- Docker Compose
- Mosquitto (for device communication)
- Zigbee2MQTT (optional, for Zigbee device integration)
- Frigate NVR (optional, for video surveillance integration)
Steps to Run Homescript
- Pull the Homescript Docker Image:
Open your terminal and run the following command to pull the latest Homescript image:
- Create a Configuration Directory:
Create a directory on your host machine to store Homescript configuration files:
- Run Homescript in discovery mode:
To start Homescript in discovery mode, run the following command:
This will allow Homescript to scan for devices and generate initial configuration scripts. On completion, you have to have a look at the generated configuration files in the
~/homescript/configdirectory and make any necessary adjustments. There’s should be a bunch of example scripts to get you started. - Create a Docker Compose File:
Create a
docker-compose.ymlfile in the configuration directory with the following content: - Start Homescript:
Navigate to the configuration directory and start the Homescript container using Docker Compose:
- Re-configure Homescript:
Just edit the configuration files in the
~/homescript/configdirectory to customize your setup. If you installed more devices after the initial discovery, you can run Homescript in discovery mode again to update your configuration.