MQTT Discovery not working (sort off)

I’ve setup MQTT (both by editting configuraiton.yaml or through adding the component using the web interface).

I’m testing by executing this command:

mosquitto_pub -h 127.0.0.1 -p 1883 -t "homeassistant/binary_sensor/garden/config" -m '{"name": "garden", "device_class": "motion", "state_topic": "homeassistant/binary_sensor/garden/
state"}'

I see in hass log this:

Oct 13 15:34:35 xxx hass[8488]: 2019-10-13 15:34:35 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: binary_sensor garden
Oct 13 15:34:35 xxx hass[8488]: 2019-10-13 15:34:35 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.mqtt

But the device is not showing up on the web interface.

I do see under history events for this. But is not showing in the event list, nor under the MQTT component, and I cannot add this device to the UI.

Any idea what I may be missing?

One additional information under developer-tools/state the entity is showing up, but then I cannot add it to any ui… is strange…

Are you using the Hassio Mosquitto Addon?

If so, remove the yaml.

This is a discovered integration and requires no yaml configuration.

Also what does your (sanitised) MQTT addon configuration look like?

Also, if you are using lovelace, you need to add it to a card.

I’m using Home Assistant installed manually as a python module on Raspbian.

As MQTT I’m using mosquito installed through apt-get.

Yesterday I found something interesting also. If I add some of the devices manually to the UI I can see them and interact with them.

What I don’t see is those devices under the MQTT add-on device list.

I don’t know if that is something I should be worried about or not.

Never mind ill make my own post.