logo elektroda
logo elektroda
X
logo elektroda

MQTT connection: Tuya luminaire with OpenBeken and Mosquitto server - control works on one side

Frank579 1188 4
ADVERTISEMENT
Treść została przetłumaczona german » english Zobacz oryginalną wersję tematu
  • #1 21192207
    Frank579
    Level 2  
    Hello everyone,
    Yesterday I installed my first Tuya light via Clouscutter with Openbeken, it worked shockingly well for the first time :) .
    After a few attempts and tests, it now also lights up red on red etc. as desired.
    I am now failing with the MQTT connection to my Mosquitto server. In the MQTT Explorer, when I switch via the Openbeken web interface, I can see that the value changes, unfortunately nothing works in the other direction, something comes in, but the lamp does not react to it.
    Can someone possibly tell me what I am doing wrong or where I have forgotten something :)

    Here are a few more pictures of the settings:

    Screenshot of MQTT settings for OpenBeken.
    Screenshot showing MQTT logs with data related to the OpenBK lamp.
    Screenshot of OpenBeken configuration for Tuya lamp with network and LED settings.
  • ADVERTISEMENT
  • #2 21192437
    p.kaczmarek2
    Moderator Smart Home
    Have you performed Home Assistant Discovery correctly?


    .
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 21193156
    Frank579
    Level 2  
    Hi, I don't use Home Assistant, so no, I haven't done this.

    But I have found the error, cmnd is in an upper folder, there was no access set up in the ACL. I obviously can't switch via the set value or should that work too?

    Unfortunately, this is a bit of a problem as my entire MQTT broker has this structure.

    Type(tasmota/shelly..... )/
    Name Device/
    Data(tele/stat/cmnd/.......)

    View of folder structure for device Steckdose-06 with subfolders cmnd, stat, and tele.

    But OpenBK makes tele/ OpenBK / name / value
    stat/ OpenBK/ name/ value
    cmmd /OpenBK name / value

    Screenshot showing MQTT folder structure with folders cmnd, OpenBK, Lampe-05, and a file led_enableAll.

    Is there any way to customise this so that I don't have to change my entire MQTT system setup? It would be a shame that it wouldn't work... :(
  • ADVERTISEMENT
  • #4 21194722
    Frank579
    Level 2  
    Hello,

    I have now set up everything so far and it works.
    Before I now flash all Tuya devices, is it correct that I can only switch via MQTT via point 1 and not via point 3? or do I still have errors in the config? :)
    The image shows a part of MQTT configuration for a device named Lampe-03. There are three topics: command, publish, and receive data.
  • #5 21277721
    cornelis
    Level 1  
    Screenshot of MQTT configuration for Aubess mini switch with Tasmota and node-red commands.
    On my "Aubess mini switch" I do it as follows:

    MQTT config: name OBK133/Power
    Module config: PA 8 LED_n chann 1 LED (what else)
    PA 24 Btn_Tgl_All S2 ( S1 is connected to N )
    PA 25 Btn_Tgl_All Button
    PA 26 Rel chann 1 L-out


    Control relay via MQTT:
    Tasmota device command:
    ----------------------
    publish BK133/Power/1/set 1 switch on
    publish BK133/Power/1/set 0 switch off

    node-red injects:
    -----------------
    topic: BK133/Power/1/set msg: 1 switch on
    topic: BK133/Power/1/set msg: 0 switch off
ADVERTISEMENT