Tuya device channels with mqtt-tuya

  • Platform information:
    • Hardware: CPUArchitecture/RAM/storage
    • OS: what OS is used and which version
    • Java Runtime Environment: which java platform is used and what version
    • openHAB version:OpenHAB 3.0.1 from openhabian image on Raspberry pi 3+
  • Issue of the topic: please be detailed explaining your issue

I am trying to set up some Tuya RGB lights using the mqtt-tuya node script.
So far, I was able to get to a point where all lights were discovered, as mqtt:homeassistant devices.
All lights present the status correctly (online/offline) and all lights were discovered with a trigger channel that contains a list of topics that the light responds to.

I started by going to my mqtt-thing and defined channels for some of the lights functions. as an example, for dinning room light, I defined:

-an on/off channel
-a white_brightness channel

Then I created an equipment and points for the equipment that are associated to those channels.

The problem I am having is that, while the on/off channel worked out of the box (I created a point of type switch, and was able to instantly switch the light on and off) the white_brightness channel does not work. This is a channel of the type dimmer, and sliding the dimmer doesn’t do anything. I know this is not a problem with the lights, because I can publish messages to the color brightness topic with an external program, and that works.

What I do not understand is why is there a difference in behavior between these two channels. I read that mqtt channels should be handled with rules, but I don’t get why the on/off channel works without the need to define anything else, and the brightness channel does not.

If someone could point me to the right direction on how to get the white_brightness channel working, or how to understand the behavior, that would be great.
I would post the equipment and points configuration, but I created them through the UI, so I am not sure where to find the configs.


  • Please post configurations (if applicable):
    • Items configuration related to the issue
    • Sitemap configuration related to the issue
    • Rules code related to the issue
    • Services configuration related to the issue
  • If logs where generated please post these here using code fences: