czwartek, 7 lutego 2019

gbridge.io with Tasmota or ESPURNA and Mosquitto Bridge on Raspberry

Oto poradnik jak skonfigurować usługę gbridge.io by działała z przełącznikim SONOFF z wgranym TASMOTA albo ESPURNA z wykorzystaniem serwera bramki MQTT na raspberry.
gbridge.io pozwala na podłączenie urządzeń które obsługują MQTT np. SONOFF do google home.

1. Install Mosquito newest version on your RPI:

sudo apt update 
sudo apt install -y mosquitto mosquitto-clients 
sudo systemctl enable mosquitto.service

2. Edit /etc/mosquitto/mosquitto.conf adding at the end:

TASMOTA
connection gbridge-io
address mqtt.gbridge.io:8883
bridge_attempt_unsubscribe true
bridge_protocol_version mqttv311
cleansession true
remote_username {gbridge-mqtt-username}
remote_password {gbridge-mqtt-password}
remote_clientid gbridge-u{userid}-{randomstring}
topic gBridge/u{uid}/cmnd/+/power both 0 "" ""
topic gBridge/u{uid}/stat/+/POWER both 0 "" ""
bridge_capath /etc/ssl/certs/
bridge_tls_version tlsv1.2

ESPURNA
connection gbridge-io
address mqtt.gbridge.io:8883
bridge_attempt_unsubscribe true
bridge_protocol_version mqttv31
cleansession true
remote_username {gbridge-mqtt-username}
remote_password {gbridge-mqtt-password}
remote_clientid gbridge-u{userid}-{randomstring}
topic gBridge/u{uid}/+/relay/0/set both 0 "" ""
topic gBridge/u{uid}/+/status both 0 "" ""
bridge_capath /etc/ssl/certs/
bridge_tls_version tlsv1.2
3. Reboot Mosquitto
sudo /etc/init.d/mosquitto restart
4. Configure MQTT settings

TASMOTA


ESPURNA

4. Add Device on https://gbridge.kappelt.net/device


TASMOTA

ESPURNA
5. Connect gbridge.io with your google home and it's done :)

Brak komentarzy:

Prześlij komentarz