ecastro
(Ernesto Castro)
October 13, 2019, 8:39pm
1
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?
ecastro
(Ernesto Castro)
October 13, 2019, 11:21pm
2
One additional information under developer-tools/state the entity is showing up, but then I cannot add it to any ui… is strange…
tom_l
October 13, 2019, 11:27pm
3
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?
nickrout
(Nick Rout)
October 14, 2019, 12:39am
4
Also, if you are using lovelace, you need to add it to a card.
ecastro
(Ernesto Castro)
October 14, 2019, 6:56pm
5
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.
VGE
January 30, 2020, 7:56pm
6
Never mind ill make my own post.