logo elektroda
logo elektroda
X
logo elektroda

Home Assistant (Re)Discovery Issue After Changing the Device Name

lajosr 54 2
ADVERTISEMENT
  • #1 21580994
    lajosr
    Level 2  
    Sorry for a noob question... It is my first attempt with OB...

    I have flashed a Tongou DIN Smart meter and breaker (BK7231N) device with OpenBeken FW. It runs, got MQTT connection and made it discoverable in Home assistant. I then realized that the device name and MQTT topic was not properly set. I have changed them (device name, MQTT topic...) on the client side.
    The changes did not reflect on HA side, so I decided to remove it, hoping I will be able to set it back.
    But now I am unable to recover it by HA again.

    In Tasmota you make a cycle: SO19 0 and SO19 1... And the renewed device will be shown up in HA.

    Can somebody help me, how should I solve this issue?
    Thank you
    AI: Could you please share your current MQTT configuration for the device (the exact topic and whether the discovery messages are set as retained)?
    Command topic: cmnd/NH_Bojler/[Command]
    Publish data topic: NH_Bojler/[Channel]/get
    Receive data topic: NH_Bojler/[Channel]/set
    AI: Have you already tried restarting Home Assistant, the device itself, or your MQTT broker, and have you checked if there are any retained discovery messages left from the old configuration?
    I have restarted both, (the broker is inside the HA...)
    As I mentioned, there is no problem - most likely - at all, I just removed manually the autodiscovered OB device and it does not autodiscover again...
  • ADVERTISEMENT
  • Helpful post
    #2 21581104
    p.kaczmarek2
    Moderator Smart Home
    It should work every time, just remove device, and do Discovery again:




    If it is NOT working, then it's possible that you have entered a non-supported character in the device short or long name. Can you make a screenshot of those names, so I can check on my side?

    You can also check in HA itself - do a "listen" test on homeassistant topic and watch for discovery messages from OBK. I guess they are broadcasted, but dropped by HA due to the malformed name...
    Helpful post? Buy me a coffee.
  • #3 21581157
    lajosr
    Level 2  
    Yes! That is the driving from habit...
    I did not pay attention to the hint that only alphanumeric, hyphen and underscore are allowed.
    Thank you for helping!
ADVERTISEMENT