Maintaining MQTT Connections with Tasmota-Emulated WeMo Devices in OpenHAB

I’ve successfully set up four Sonoff switches using Tasmota firmware, emulating WeMo devices to integrate them into my OpenHAB setup. While this approach works initially, I’ve encountered an issue where OpenHAB loses the connection to these devices after about a day or two. This results in the devices being marked as ‘Unsupported’ in the inbox, requiring me to manually delete and re-add them to restore functionality.

My current workaround involves a cron job to automate this process, but I’m eager to find a more permanent solution. I suspect the problem lies in how the MQTT connection is being handled or how OpenHAB manages the WeMo emulation.

I’m exploring several potential solutions:

  1. Adjusting MQTT Configuration: I’m looking into whether there are specific MQTT settings or retain flags that can help maintain the connection more reliably.
  2. Tasmota Settings: I’m reviewing the Tasmota firmware configuration to ensure it’s set up optimally for WeMo emulation.
  3. OpenHAB Bindings: I’m examining if there are any specific settings within the WeMo binding or MQTT binding that could improve connection stability.
  4. Alternative Integration Methods: As a fallback, I’m considering integrating the Sonoff switches directly via MQTT without WeMo emulation to see if this resolves the issue.

If anyone has experience with similar setups or can offer insights into potential fixes, I’d greatly appreciate the guidance. The goal is to achieve a seamless and stable integration without the need for constant manual intervention.