logo elektroda
logo elektroda
X
logo elektroda

Tasmota Command publish v1devicesmetelemetry Not Working in OpenBeken

qrmonzergamal 303 4
ADVERTISEMENT
  • #1 21245294
    qrmonzergamal
    Level 2  
    Hello,,
    There are some tasmota commands that didn't work with openbeken,, like publish v1/devices/me/telemetry {"temperature:$CH0, "humidity":$CH1}

    The command works in tasmota but didn't work with openbeken,,
  • ADVERTISEMENT
  • #2 21246076
    p.kaczmarek2
    Moderator Smart Home
    I've checked and applied a fix, it should work with next update (wait 15 minutes), but please read the docs and use third argument to disable adding topic prefix, like:
    
    publish myTestDevice/test {"temperature":$CH0,"humidity":$CH1} 1
    

    and if you need to have spaces into the published text, take whole thing into quotation marks and escape quotation marks in text itself.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 21246188
    qrmonzergamal
    Level 2  
    >>21246076 thanks a lot it works :) ,,
    if there is a way to make mqtt send data in json directly without using this method it will be perfect ,,
  • ADVERTISEMENT
  • #4 21246198
    p.kaczmarek2
    Moderator Smart Home
    Have you checked ioBroker compatibility? It seems to be using JSON already with Tasmota TELE and STATE packets.
    Helpful post? Buy me a coffee.
  • #5 21246204
    qrmonzergamal
    Level 2  
    >>21246188 and I think this command is not working too,,
    AddChangeHandler Channel0 != -999 publish telemetry {"Temperature":$Ch0}
    I just want to send data directly to ThingsBoard as JSON like this: {"Temperature":$Ch0},,
    but OpenBeken does not send it in this form so I need to use publish command with repeating command :)

    Added after 1 [minutes]:

    >>21246198 ThingsBoard is much better in my project,, :)
ADVERTISEMENT