Hi guys,
I’m sending data from some sensors to HASS with MQTT.
In the logfile of HASS I get 4 lines for each message I have sent. Does this mean that HASS is receiving AND/OR processing the message 4 times? In the database it looks like only 1 state record is made.
2018-04-17 10:14:25 DEBUG (MainThread) [hbmqtt.broker] broadcasting {'topic': 'homeassistant/david/temperature', 'data': bytearray(b'20.37'), 'session': Session(clientId=david, state=connected)}
2018-04-17 10:14:25 DEBUG (MainThread) [hbmqtt.broker] broadcasting application message from (client id=david) on topic 'homeassistant/david/temperature' to (client id=home-assistant)
2018-04-17 10:14:25 DEBUG (MainThread) [hbmqtt.broker] broadcasting application message from (client id=david) on topic 'homeassistant/david/temperature' to (client id=home-assistant)
2018-04-17 10:14:25 DEBUG (MainThread) [hbmqtt.mqtt.protocol.handler] 0 message(s) available for delivery
2018-04-17 10:14:25 DEBUG (MainThread) [hbmqtt.broker.plugins.packet_logger_plugin] home-assistant -out-> PublishPacket(ts=2018-04-17 10:14:25.766601, fixed=MQTTFixedHeader(length=38, flags=0x0), variable=PublishVariableHeader(topic=homeassistant/david/temperature, packet_id=None), payload=PublishPayload(data="bytearray(b'20.37')"))
2018-04-17 10:14:25 DEBUG (MainThread) [hbmqtt.broker.plugins.packet_logger_plugin] home-assistant -out-> PublishPacket(ts=2018-04-17 10:14:25.770238, fixed=MQTTFixedHeader(length=38, flags=0x0), variable=PublishVariableHeader(topic=homeassistant/david/temperature, packet_id=None), payload=PublishPayload(data="bytearray(b'20.37')"))
2018-04-17 10:14:25 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on homeassistant/david/temperature: 20.37
2018-04-17 10:14:25 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on homeassistant/david/temperature: 20.37
2018-04-17 10:14:25 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on homeassistant/david/temperature: 20.37
2018-04-17 10:14:25 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on homeassistant/david/temperature: 20.37
I’m using the inbuilt broker on HASS v0.63.3.
Kind regards,
David