- Flash a SD card with Openhabian OS
- Fill
openhabian.conf
before first boot
Install que MQTT Server with openhabian-config
Set a fixed IP for the raspberry on your router.
- Set the WiFi on your broadlink device with this python package.
- Set a fixed IP for the broadlink device on your router.
- Clone broadlink-mqtt on home path
git clone https://github.com/eschava/broadlink-mqtt.git
Transfer the config file:
scp -r broadlink-mqtt/custom.conf openhabian@[raspberry-ip]:~/broadlink-mqtt
Then install its requirements
pip3 install -r requirements.txt
Transfer broadlink commands
scp -r broadlink/* openhabian@[raspberry-ip]:~/broadlink-mqtt/commands
Ensure broadlink is connected on same network.
Transfer the service file:
scp broadlink-mqtt/broadlink-mqtt.service openhabian@[raspberry-ip]:/etc/systemd/system/broadlink-mqtt.service
Then start it
sudo systemctl enable broadlink-mqtt
sudo systemctl start broadlink-mqtt
Follow the instructions to install the cli: https://www.speedtest.net/pt/apps/cli
Transfer openhab Files
scp openhab/items/* openhabian@[raspberry-ip]:/etc/openhab/items
scp openhab/sitemaps/* openhabian@[raspberry-ip]:/etc/openhab/sitemaps
scp openhab/rules/* openhabian@[raspberry-ip]:/etc/openhab/rules
scp openhab/things/* openhabian@[raspberry-ip]:/etc/openhab/things
scp openhab/services/* openhabian@[raspberry-ip]:/etc/openhab/services