From 423800d330b9e0843b73b105a57798152342d140 Mon Sep 17 00:00:00 2001 From: Mike Jagdis Date: Thu, 23 Oct 2025 21:54:06 +0100 Subject: [PATCH] [tuya] Things should be online/waiting as soon as we know the IP Signed-off-by: Mike Jagdis --- .../binding/tuya/internal/handler/TuyaDeviceHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundles/org.openhab.binding.tuya/src/main/java/org/openhab/binding/tuya/internal/handler/TuyaDeviceHandler.java b/bundles/org.openhab.binding.tuya/src/main/java/org/openhab/binding/tuya/internal/handler/TuyaDeviceHandler.java index 07f92b767572a..452b080995f29 100644 --- a/bundles/org.openhab.binding.tuya/src/main/java/org/openhab/binding/tuya/internal/handler/TuyaDeviceHandler.java +++ b/bundles/org.openhab.binding.tuya/src/main/java/org/openhab/binding/tuya/internal/handler/TuyaDeviceHandler.java @@ -601,6 +601,8 @@ public void deviceInfoChanged(DeviceInfo deviceInfo) { configuration.ip = deviceInfo.ip; configuration.protocol = deviceInfo.protocolVersion; + updateStatus(ThingStatus.ONLINE, ThingStatusDetail.NONE, "@text/online.wait-for-device"); + this.tuyaDevice = new TuyaDevice(gson, this, eventLoopGroup, configuration.deviceId, configuration.localKey.getBytes(StandardCharsets.UTF_8), configuration.ip, configuration.protocol);