SONOFF Lan Integration Issues

Hi,

I’m running some issues with my installation. I noticed some time ago and could not find out what’s wrong. I have HomeAssistant running on docker on a OpenMediaVault machine, configured with SONOFF lan integration.

Inittially I had it running in auto mode (lan and cloud), but everytime I lost internet the service also stopped. Then I turned it to run only on LAN mode.

When in auto mode, I had it running for a long time, with no issues, but now, it is driving me crazy (on both modes). Here are the problems:

1) Zibgee gateway not being recognized, showing as Unavailable (but it's OK in ewelink), auto or lan. 
2) I have a automation called triway that toogles a light when another is also toogled. Just to turn on the same light using two or more switches. But if I select auto mode, my light turns on / off on random times, with no one activating any switch (my wife got crazy when the lights was turning on/off at night when she got to sleep). 
3) Several other sonoff devices showing as off/univailable but they are OK on ewelink. 

Searching the logs, I only get these error messages:

2023-04-09 23:24:13.052 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-04-10 05:00:00.361 WARNING (MainThread) [homeassistant.components.light.reproduce_state] Invalid state specified for light.sonoff_1000f37c0c: unavailable
2023-04-10 05:00:00.375 WARNING (MainThread) [homeassistant.components.light.reproduce_state] Invalid state specified for light.sonoff_1000f2bbf1: unavailable
2023-04-10 05:00:00.379 WARNING (MainThread) [homeassistant.components.light.reproduce_state] Invalid state specified for light.sonoff_1000f38135: unavailable
2023-04-10 12:20:40.911 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities light.sonoff_1000dce0f2 or it is/they are currently not available
2023-04-10 12:23:40.893 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities light.sonoff_1000dce0f2 or it is/they are currently not available

I don’t know what to look for anymore… any thoughts ?