[SOLVED] MQTT + Sonoff Tasmota: set-up issue

I recently bought my first Sonoff wall-switch and flashed it sucesfully with Tasmota 6.5.0. I would like to include it in my OH system via MQTT. I can acces the Sonoff via the IP-adress and configure it. However I can’t include it in my OH system (yet).
I can’t get the Thing online.

My situation:

  • RPi running Openhabian with openHAB 2.5.0.M1.
  • Sonoff T1 EU wall-switch with Tasmota 6.5.0 flashed.
  • Embedded MQTT Broker (misc-mqttbroker - 2.5.0.M1) installed
  • MQTT Binding (binding-mqtt - 2.5.0.M1).
  • I prefere to configure my Things via PaperUI (easier) and my items via text-files (more control).

I’ve been able to add the MQTT Broker as a thing and it is online.
After clearing cache and using the Tasmota web-interface to change Setoption19 1 on the Sonoff it leads to auto-discovery of two Things:

image

However, the two things are Offline, stating they won’t get a respons from the device yet.

Any advice on how to move forward or where to look?
I’m not sure it is in the OH MQTT settings or in the Sonoff configuration.

Below the relevant part of my log-file

2019-03-27 19:49:26.908 [home.event.InboxAddedEvent] - Discovery Result with UID 'mqtt:homeassistant:embedded-mqtt-broker:AD25DF_RL_1' has been added.

2019-03-27 19:49:26.915 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'mqtt:homeassistant:embedded-mqtt-broker:AD25DF_RL_1' to inbox.

2019-03-27 19:49:26.970 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'mqtt:homeassistant:embedded-mqtt-broker:AD25DF_status' to inbox.

2019-03-27 19:49:26.975 [home.event.InboxAddedEvent] - Discovery Result with UID 'mqtt:homeassistant:embedded-mqtt-broker:AD25DF_status' has been added.

2019-03-27 19:50:17.303 [me.event.InboxRemovedEvent] - Discovery Result with UID 'mqtt:homeassistant:embedded-mqtt-broker:AD25DF_RL_1' has been removed.

2019-03-27 19:50:17.337 [hingStatusInfoChangedEvent] - 'mqtt:homeassistant:embedded-mqtt-broker:AD25DF_RL_1' changed from UNINITIALIZED to INITIALIZING

2019-03-27 19:50:17.360 [hingStatusInfoChangedEvent] - 'mqtt:homeassistant:embedded-mqtt-broker:AD25DF_RL_1' changed from INITIALIZING to OFFLINE (GONE): No response from the device yet

2019-03-27 20:05:22.023 [me.event.InboxRemovedEvent] - Discovery Result with UID 'mqtt:homeassistant:embedded-mqtt-broker:AD25DF_status' has been removed.

2019-03-27 20:05:22.039 [hingStatusInfoChangedEvent] - 'mqtt:homeassistant:embedded-mqtt-broker:AD25DF_status' changed from UNINITIALIZED to INITIALIZING

2019-03-27 20:05:22.048 [hingStatusInfoChangedEvent] - 'mqtt:homeassistant:embedded-mqtt-broker:AD25DF_status' changed from INITIALIZING to OFFLINE (GONE): No response from the device yet

Sonoffs are using a feature of HomeAssistant mqtt that was not implemented until recently. For autodiscovery you need an oh build not older than about a week.

After reading several threads I’ve installed Mosquito as broker end used paperui to set the mqtt thing. Now it’s working!