Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Uncategorized
  3. I feel that Home Assistant's MQTT discovery, while useful, is at least to some extend just broken.

I feel that Home Assistant's MQTT discovery, while useful, is at least to some extend just broken.

Scheduled Pinned Locked Moved Uncategorized
homeassistantmqtt
4 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 「ʀᴏʙᴇʀᴛ」R This user is from outside of this forum
    「ʀᴏʙᴇʀᴛ」R This user is from outside of this forum
    「ʀᴏʙᴇʀᴛ」
    wrote last edited by
    #1

    I feel that Home Assistant's MQTT discovery, while useful, is at least to some extend just broken.

    It only works somewhat reliably when discovery messages are being retained (so that's basically what everyone uses by default), but HA offers no way of deleting all retained messages for a device. You have to do that manually, and for complex devices it may require deleting perhaps dozens of retained messages from your broker, which makes removing an MQTT-discovered device a major PITA and susceptible to breakage if you accidentally remove the wrong messages 😫

    #homeassistant #mqtt

    James DerrickJ Harald Hannelius :verified:H 2 Replies Last reply
    0
    • 「ʀᴏʙᴇʀᴛ」R 「ʀᴏʙᴇʀᴛ」

      I feel that Home Assistant's MQTT discovery, while useful, is at least to some extend just broken.

      It only works somewhat reliably when discovery messages are being retained (so that's basically what everyone uses by default), but HA offers no way of deleting all retained messages for a device. You have to do that manually, and for complex devices it may require deleting perhaps dozens of retained messages from your broker, which makes removing an MQTT-discovered device a major PITA and susceptible to breakage if you accidentally remove the wrong messages 😫

      #homeassistant #mqtt

      James DerrickJ This user is from outside of this forum
      James DerrickJ This user is from outside of this forum
      James Derrick
      wrote last edited by
      #2

      @robertklep Although HA Discovery[1] supports a lot of values, you are spot on about the retained message issue.
      I've had to reboot kit to re-publish topics after deleting the wrong retained.

      My custom-device dev needed a load of `mosquitto_pub` scripts to create and remove. At least the changes in #homeassistant are instant.

      I can see why #Tasmota switched to their own all-in-one #MQTT JSON payload format [2].

      [1] https://www.home-assistant.io/integrations/mqtt#mqtt-discovery

      [2] https://github.com/arendst/Tasmota/issues/9267

      「ʀᴏʙᴇʀᴛ」R 1 Reply Last reply
      0
      • James DerrickJ James Derrick

        @robertklep Although HA Discovery[1] supports a lot of values, you are spot on about the retained message issue.
        I've had to reboot kit to re-publish topics after deleting the wrong retained.

        My custom-device dev needed a load of `mosquitto_pub` scripts to create and remove. At least the changes in #homeassistant are instant.

        I can see why #Tasmota switched to their own all-in-one #MQTT JSON payload format [2].

        [1] https://www.home-assistant.io/integrations/mqtt#mqtt-discovery

        [2] https://github.com/arendst/Tasmota/issues/9267

        「ʀᴏʙᴇʀᴛ」R This user is from outside of this forum
        「ʀᴏʙᴇʀᴛ」R This user is from outside of this forum
        「ʀᴏʙᴇʀᴛ」
        wrote last edited by
        #3

        @jamesderrick For one particular device I have 137 topics/messages to deal with... 🫣

        1 Reply Last reply
        0
        • 「ʀᴏʙᴇʀᴛ」R 「ʀᴏʙᴇʀᴛ」

          I feel that Home Assistant's MQTT discovery, while useful, is at least to some extend just broken.

          It only works somewhat reliably when discovery messages are being retained (so that's basically what everyone uses by default), but HA offers no way of deleting all retained messages for a device. You have to do that manually, and for complex devices it may require deleting perhaps dozens of retained messages from your broker, which makes removing an MQTT-discovered device a major PITA and susceptible to breakage if you accidentally remove the wrong messages 😫

          #homeassistant #mqtt

          Harald Hannelius :verified:H This user is from outside of this forum
          Harald Hannelius :verified:H This user is from outside of this forum
          Harald Hannelius :verified:
          wrote last edited by
          #4

          @robertklep I had rtl433 listening and feeding mqtt. I got over 10 000 devices (temperature sensors, tire pressure sensors and so on) and there wasn't any neat way of mass deleting. Or even filtering. My ha instance slowed to a crawl everytime i opened the mqtt entities page.

          1 Reply Last reply
          1
          0
          • R ActivityRelay shared this topic
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups