[hbmqtt.broker] Can't read first packet an CONNECT: No more data

Hello, I have two HA instances running 0.54.0 that should talk to each other using mqtt. I am getting lots of disconnections, are they normal? If not is there a problem with embedded broker in 0.54.0? I have opened port 1883 in my firewall on the master. If the warnings are normal, can you give me a hint in how to get two HA instances to communicate? As you can perhaps see in the configuration files, I want key_code 111 on the slave to cause the master to play a URL using clementine. As far as I can tell the master isn’t getting anything from the slave. I don’t know if this is because of a problem with mqtt or because I haven’t understood how to get two HA instances to communicate. Any hints?

The configuration of my two instances is in github: slave configuration & master configuration

The slave keeps saying:

Sep 28 18:20:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:22:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:24:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:26:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:28:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:30:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:32:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:34:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:36:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:38:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:40:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:42:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:44:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:46:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:48:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:50:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:52:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server
Sep 28 18:54:57 stuartpi3 hass[31123]: INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server

and master says

2017-09-28 18:42:57 WARNING (MainThread) [hbmqtt.broker] [MQTT-3.1.0-1] (client @=192.168.0.101:53745): Can't read first packet an CONNECT: No more data
2017-09-28 18:42:57 INFO (MainThread) [hbmqtt.broker] Listener 'default': 48 connections acquired
2017-09-28 18:42:57 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.101:54295 on listener 'default'
2017-09-28 18:42:57 INFO (MainThread) [hbmqtt.broker] Listener 'default': 49 connections acquired
2017-09-28 18:42:57 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.101:37055 on listener 'default'
2017-09-28 18:44:57 WARNING (MainThread) [hbmqtt.broker] [MQTT-3.1.0-1] (client @=192.168.0.101:37055): Can't read first packet an CONNECT: No more data
2017-09-28 18:44:57 INFO (MainThread) [hbmqtt.broker] Listener 'default': 50 connections acquired
2017-09-28 18:44:57 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.101:36827 on listener 'default'
2017-09-28 18:44:57 INFO (MainThread) [hbmqtt.broker] Listener 'default': 51 connections acquired
2017-09-28 18:44:57 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.101:37193 on listener 'default'
2017-09-28 18:46:57 WARNING (MainThread) [hbmqtt.broker] [MQTT-3.1.0-1] (client @=192.168.0.101:37193): Can't read first packet an CONNECT: No more data
2017-09-28 18:46:57 INFO (MainThread) [hbmqtt.broker] Listener 'default': 52 connections acquired
2017-09-28 18:46:57 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.101:58441 on listener 'default'
2017-09-28 18:46:57 INFO (MainThread) [hbmqtt.broker] Listener 'default': 53 connections acquired
2017-09-28 18:46:57 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.101:51589 on listener 'default'
2017-09-28 18:48:57 WARNING (MainThread) [hbmqtt.broker] [MQTT-3.1.0-1] (client @=192.168.0.101:51589): Can't read first packet an CONNECT: No more data
2017-09-28 18:48:57 INFO (MainThread) [hbmqtt.broker] Listener 'default': 54 connections acquired
2017-09-28 18:48:57 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.101:53691 on listener 'default'
2017-09-28 18:48:57 INFO (MainThread) [hbmqtt.broker] Listener 'default': 55 connections acquired
2017-09-28 18:48:57 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.101:38947 on listener 'default'
2017-09-28 18:50:57 WARNING (MainThread) [hbmqtt.broker] [MQTT-3.1.0-1] (client @=192.168.0.101:38947): Can't read first packet an CONNECT: No more data
2017-09-28 18:50:57 INFO (MainThread) [hbmqtt.broker] Listener 'default': 56 connections acquired
2017-09-28 18:50:57 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.101:39351 on listener 'default'
2017-09-28 18:50:57 INFO (MainThread) [hbmqtt.broker] Listener 'default': 57 connections acquired
2017-09-28 18:50:57 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.101:35257 on listener 'default'
2017-09-28 18:52:57 WARNING (MainThread) [hbmqtt.broker] [MQTT-3.1.0-1] (client @=192.168.0.101:35257): Can't read first packet an CONNECT: No more data
2017-09-28 18:52:57 INFO (MainThread) [hbmqtt.broker] Listener 'default': 58 connections acquired
2017-09-28 18:52:57 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.101:39269 on listener 'default'
2017-09-28 18:52:57 INFO (MainThread) [hbmqtt.broker] Listener 'default': 59 connections acquired
2017-09-28 18:52:57 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.101:37159 on listener 'default'
2017-09-28 18:54:57 WARNING (MainThread) [hbmqtt.broker] [MQTT-3.1.0-1] (client @=192.168.0.101:37159): Can't read first packet an CONNECT: No more data
2017-09-28 18:54:57 INFO (MainThread) [hbmqtt.broker] Listener 'default': 60 connections acquired
2017-09-28 18:54:57 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.101:35499 on listener 'default'
2017-09-28 18:54:57 INFO (MainThread) [hbmqtt.broker] Listener 'default': 61 connections acquired
2017-09-28 18:54:57 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.101:53311 on listener 'default'

I opened Issue 9619 on github.