logo elektroda
logo elektroda
X
logo elektroda

OpenBeken BK7231: Retain Status on Relays Not Retaining via Manual/URL - Version 1.17.127

jbrande 1143 2
ADVERTISEMENT
  • #1 20635751
    jbrande
    Level 3  

    I think there is a problem with the retain status on relays.

    If I do it by Home Assistant, both change status (set and get topics) and the message is retained.

    But if I do it manually or from the device URL, only the get topic gets changed and not retained. It should get retained both ways, right?
    I set flag 21 on and the Configure startup to -1.

    And I'm on version 1.17.127.
  • ADVERTISEMENT
  • #2 20635815
    p.kaczmarek2
    Moderator Smart Home
    Can you please provide more information on the problem? I am not sure how to replicate that.

    Does the problem still occur if you have OBK device without MQTT configured?

    Or maybe you are missing "broadcast self state on mqtt connect" flag, which should be in latest build on by default?
    Helpful post? Buy me a coffee.
  • #3 20635939
    jbrande
    Level 3  

    Flag 10 is on, that is the broadcast on MQTT connect.
    I'm checking on MQTT Explorer that when I send the command to turn on the light, both topics "get" and "set" change to 1 with a retained flag.
    But if you do the same from the switch or from the device IP, only the "get" topic changes to 1 without a retained flag.
    Sorry, I don't understand the second question. Is it a MQTT difference? How can I check that without being connected to an MQTT server?

    OpenBeken BK7231: Retain Status on Relays Not Retaining via Manual/URL - Version 1.17.127

    Channel 0 was turned on via HA.
    Channel 1 was turned on from the device URL (here you can see the difference in the set value).

    When I reboot HA, they don't get to the last status. Some turn on and some turn off depending on what they had retained.
ADVERTISEMENT