Domoticz MQTT konfiguracja

1. update the raspberry pi: sudo apt-get update && sudo apt-get upgrade

2. install mosquitto: sudo apt-get install mosquitto mosquitto-clients

3. make a mqtt user: sudo mosquitto_passwd -c /etc/mosquitto/pwfile mqtt

4. add a couple of rules to the config: sudo nano /etc/mosquitto/mosquitto.conf

4. add these rules: allow_anonymous false 
password_file /etc/mosquitto/pwfile

5. save with these key combinations: ctrl+O and ctrl+X

6. open rc.local: sudo nano /etc/rc.local

7. put in before exit 0 the following:  /usr/sbin/mosquitto -d

8. restart your pi: sudo reboot

9. open domoticz via the web interface

10. go to: settings - hardware

11. add hardware: name: mqtt
type: MQTT Client Gateway with LAN interface
remote address: the ip address of your pi
Port: 1883
Username: mqtt
Password: password
Publish topic: out

Na koniec

pip3 install --requirement requirements.txt --target .

Dodaj komentarz