logo elektroda
logo elektroda
X
logo elektroda

How do I publish the temperature value from OpenBeken 1.17.452 via MQTT?

tomik67 750 6
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20958335
    tomik67
    Level 12  

    In the previous post I actually expressed myself extremely unclearly, mea culpa, sorry.
    I mean that in the release OpenBeken release 1.17.452 such a novelty was introduced...: " Add internal temperature for Beken chips"
    The thing is that the temperature value is only visible on http, and I would like to be able to publish this value via MQTT, maybe it is trivial for someone more advanced, I don't know how to do it.
    Thank you in advance for your help.
  • ADVERTISEMENT
  • #2 20962370
    p.kaczmarek2
    Moderator Smart Home
    This is a fairly new addition to the firmware and is not yet derived on any variable. I can only add something like this on request. Only that the whole thing is still in the testing phase and I guess on the T platform it shows rather strange results.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20980527
    tomik67
    Level 12  

    Thank you for your reply, I am happy with this new feature and look forward to the final implementation.
    It seems the temperature is shown as the inverse of the actual temperature.
    I have such a switch for testing.:

    Link

    is the exact equivalent of the device you describe.:


    Link

    .... and I observe an interesting behaviour of the temperature measurement, when the relays are switched on then the temperature of the whole module is noticeably raised and the reading decreases, and vice versa, the relays are switched off, the module is cool and the temperature reading increases by a couple of degrees.

    The astronomical clock works nicely, thank you for this function, I'm just not yet sure if it recalculates the sunset every time (day), the sunrise updates regularly.

  • ADVERTISEMENT
  • #4 21001751
    p.kaczmarek2
    Moderator Smart Home
    It is in the PR testing phase with the variable:
    
    $intTemp
    

    Do you know how to use it? https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/autoexecExamples.md
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 21002190
    p.kaczmarek2
    Moderator Smart Home
    Example of use:
    
    // addRepeatingEvent [IntervalSeconds][RepeatsOr-1]
    addRepeatingEvent 5 -1 publishFloat SelfTemperature $intTemp
    


    Screenshot of an interface displaying connection details of the OBK_test device and its internal temperature. .
    Helpful post? Buy me a coffee.
  • #6 21009890
    tomik67
    Level 12  

    Thank you, it looks like it publishes the temperature, I will test it and let you know.
    By the way, is there a similar function in OpenBK as in e.g. Fibaro and it is called association where you can connect the channels of two devices directly so that they are not dependent on communication with the MQTT server?. I would like to connect a two-channel device as mentioned above, one channel with one remote socket and the other channel with the other socket so that the buttons in the two-channel one cause reactions in the sockets.
    Should I open a new thread for this question?

    PS, Unless it would be possible to reflect the real state (mirror image) of the channels of both devices via the MQTT server without writing a script and in e.g. HA have the possibility to view the state and possible additional control.
  • #7 21011357
    p.kaczmarek2
    Moderator Smart Home
    Perhaps Tasmota Device Groups support will help with this? Then the devices sync together over WiFi itself, more precisely via UDP. No MQTT is needed. You can specify whether a device sends and receives status, or for example only sends or only receives.

    Or you can oscript Tasmota-style GET sending depending on changes in channel values.
    Helpful post? Buy me a coffee.

Topic summary

The discussion revolves around the new feature in OpenBeken firmware version 1.17.452, which allows for internal temperature measurement on Beken chips. Users express interest in publishing this temperature value via MQTT, as it is currently only accessible through HTTP. Initial responses indicate that the feature is still in testing and not yet fully implemented for MQTT. A user shares observations about the temperature readings being inversely related to the actual temperature when relays are activated. Suggestions include using the variable $intTemp for publishing temperature and examples of code to implement this functionality. Additionally, there are inquiries about device synchronization features similar to Fibaro's association, with suggestions to explore Tasmota Device Groups for direct device communication without MQTT.
Summary generated by the language model.
ADVERTISEMENT