MQTT support

Tags: #<Tag:0x00007f20e0864db0> #<Tag:0x00007f20e0864c70> #<Tag:0x00007f20e0864b30>


Another recipe by @lindsayward in Home Assistant Community Board:

I’m only a few hours into this, so I don’t want to be the one to say, “here’s how you do it”… However :slight_smile:

  • I did all the HA stuff before realising you also had to connect to the garadget settings interface and enable MQTT (since the link here points down the thread, not to the top).
  • I also copied the provided code, not realising that “Home” was a variable, dependent on my setup.
  • As mentioned, you don’t seem to need the sensor… just the extra attributes for the cover.
  • Two more things need to be set in HA customizations (mine through the web interface):
    Set device_class: garage
    Set homebridge_cover_type: garage_door (if you’re using homebridge for “Hey Siri, open the garage door”)

These details are all there, just not in one place.

Here’s what I’m using now. Replace “XXX” with the name/topic you set in the garadget settings.

  - platform: mqtt
    name: "Garage Door"
    command_topic: "garadget/XXX/command"
    state_topic: "garadget/XXX/status"
    payload_open: "open"
    payload_close: "close"
    state_open: "open"
    state_closed: "closed"
    value_template: '{{ value_json.status }}'


What is the purpose of updating the brightness?


It’s just another sensor you can log or use in your automation scripts.
No need to update if not using.


I’ve tried to deploy the embedded mqtt broker (hbmqtt) in HASS and had issues. Has anyone encounter this before?


protocol: 3.1
user: user
password: pass


  • platform: mqtt
    name: “Garage”
    command_topic: “garadget/Garage/command”
    state_topic: “garadget/Garage/status”
    payload_open: “open”
    payload_close: “close”
    state_open: “open”
    state_closed: “closed”
    value_template: ‘{{ value_json.status }}’

ERROR (MainThread) [] Invalid connection from (client @=x.x.x.x:32250) : [MQTT-3.1.2-1] Incorrect protocol name: “MQIsdp”


What is the version of your Home Assistant?
Also, do you experience this issue with both protocol 3.1 and 3.1.1 ?


I’m running .76.2, with version 1.2 firmware on the garadget.

I haven’t tried 3.1.1. yet, but will.


please let me know how it goes with 3.1.1


Same issues with 3.1.1.

Invalid connection from (client @=x.x.x.x:XXXX) : [MQTT-3.1.2-1] Incorrect protocol name: “MQIsdp”


Home Assistant’s embedded MQTT broker and they keep changing it all the time. I played around with one in the latest version as of today (0.77.2) and it appears that the username is hard coded as homeassistant. So the working configuration for the broker is:

  password: yourpassword

In Garadget’s setup interface configure username as homeassistant and password matching that in configuration.yaml

One instance of connection error message is normal because Garadget attempts to figure out which protocol broker understands by trying different versions.

Incorrect protocol name: “MQIsdp”

Please let me know if this solves your connection issue.


I can’t connect to MQTT, tried multiple clients.
I’ve configured my garadget to work with both cloud and MQTT.
The error I’m seeing in my clients is:

2018-09-09 21:28:11,645 WARN  [MQTT Con: loplo141124478      ] [MqttConnectionResultHandler   ]  - Connecting to garadget failed
Unable to connect to server (32103) - Connection refused: connect
	at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(
	at org.eclipse.paho.client.mqttv3.internal.ClientComms$
	at Source)
Caused by: Connection refused: connect
	at Method)
	at Source)
	at Source)
	at Source)
	at Source)
	at Source)
	at Source)
	at Source)
	at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(

What am I doing wrong?


Garadget doesn’t run MQTT broker, it acts as a client. Please use one of MQTT brokers such as Mosquitto, Mosca, HomeAssistant etc to connect both your other client device and Garadget.