openHAB Version: 5.1.x
Previous Version (working): 5.0.x
Binding: Tuya Binding
Thing Type: Tuya Smart Plug
Issue Description:
After upgrading from openHAB 5.0.x to 5.1.x, Tuya smart plug Things no longer correctly reflect the actual device state when the plug loses power.
When the smart plug is physically powered off:
-
The Thing incorrectly remains in ONLINE status
-
Voltage and other metrics continue to show the last known values
Expected Behavior:
-
When the device loses power or becomes unreachable:
-
The Thing should transition to OFFLINE (e.g., COMMUNICATION_ERROR)
-
Voltage/current/power channels should not retain stale values (should reset to 0 or UNDEF)
-
Actual Behavior:
-
Thing remains ONLINE even when the device has no power
-
Channels continue showing stale (last known) values indefinitely
Steps to Reproduce:
-
Ensure Tuya smart plug is working and reporting voltage
-
Physically disconnect power to the plug
-
Observe:
-
Thing status remains ONLINE
-
Voltage value does not change
-
Impact:
-
Misleading data (appears as if device is still active)
-
Automation rules depending on Thing status or power readings may behave incorrectly
Additional Notes:
- This behavior was working correctly in 5.0.x