Tuya Smart Plug - Warning every min - Could not update channel 'fault' of thing 'tuya:tuyaDevice:xxx' with value '0.0'. Datatype incompatible

  • Platform information:

    • Hardware: CPUArchitecture/RAM/storage
    • OS: WIN11
    • Java Runtime Environment: Zulu 21.0.10
    • openHAB version: 5.1.1
  • Issue of the topic: I have 8 Tuya Smart Plugs - ± Every min they throw a warning:

    Could not update channel ‘fault’ of thing ‘tuya:tuyaDevice:xxx’ with value ‘0.0’. Datatype incompatible.
    
  • The Plugs seem to work fine an all other items are updated.

  • In VS the “Fault“ item is visible, but no item has been defined. (When I define an item for this it stays UNDEF)

  • In the main ui, in the channels, the fault channel only shows when advanced is selected

  • In the main ui, in the code the fault channel is defined like this:

  fault:
    type: uqehhcrmk5depvtl_fault
    config:
      dp: 26
  • If logs where generated please post these here using code fences:
2026-01-22 17:48:10.336 \[WARN \] \[org.openhab.binding.tuya.internal.handler.TuyaDeviceHandler                    \] - Could not update channel ‘fault’ of thing ‘tuya:tuyaDevice:...fra2’ with value ‘0.0’. Datatype incompatible.
2026-01-22 17:48:12.489 \[WARN \] \[org.openhab.binding.tuya.internal.handler.TuyaDeviceHandler                    \] - Could not update channel ‘fault’ of thing ‘tuya:tuyaDevice:...fra2’ with value ‘0.0’. Datatype incompatible.
2026-01-22 17:48:14.566 \[WARN \] \[org.openhab.binding.tuya.internal.handler.TuyaDeviceHandler                    \] - Could not update channel ‘fault’ of thing ‘tuya:tuyaDevice:...hswc’ with value ‘0.0’. Datatype incompatible.
2026-01-22 17:48:18.667 \[WARN \] \[org.openhab.binding.tuya.internal.handler.TuyaDeviceHandler                    \] - Could not update channel ‘fault’ of thing ‘tuya:tuyaDevice:...ud9u’ with value ‘0.0’. Datatype incompatible.

Anyone an idea how i can solve this?

1 Like

Open an issue.

I don’t have any tuya so this could be off base. The channel type looks odd. In my OH the type is switch, number, string, etc. For example you could get that type of message if you try to apply a number or string to an ONOFF switch. If the device sends a number to a switch, you might need a transformation. I’d suggest taking a look at the working channels. Maybe the fault channel type means switch somehow.

Way off base. The type looks odd because Tuya uses dynamic channel types so it can adjust the labels, descriptions, bounds, units etc. (There are a LOT of Tuya devices by many different vendors and little if any standardization!).

It’s probably a minor fix but if it’s not worth opening an issue for…