Struggling to get MQTT Broker to auto-discover Tasmota Lightbulb

Hi,

I’ve successfully flashed Tasmota-lite firmware on a cheap Geeni Wi-Fi bulb. I’ve installed the MQTT Broker on my rPi/Hass install and configured MQTT on the light bulb. I’ve also run SetOption19 1 on the Tasmota light bulb. It appears that the bulb is successfully connecting to Hass, and the MQTT broker sees the bulb connecting - however, I can’t add the device in Home Assistant, it’s as if the MQTT broker sees the connection but doesn’t think it’s an actual device. Wondering what I’m doing wrong. I enabled auto-discovery via the GUI when I installed the MQTT Broker. Logs below:

Tasmota light bulb:

00:30:29 WIF: Connecting to AP1 Peters2.4 in mode 11N as Geeni_Light_1-2020...
00:30:34 WIF: Connected
00:30:34 HTP: Web server active on Geeni_Light_1-2020 with IP address 192.168.50.28
00:30:35 MQT: Attempting connection...
00:30:35 MQT: Connected
00:30:35 MQT: tele/Geeni_Light_1/LWT = Online (retained)
00:30:35 MQT: cmnd/Geeni_Light_1/POWER = 
00:30:35 MQT: tele/Geeni_Light_1/INFO1 = {"Module":"Geeni-1050-WW","Version":"8.1.0(lite)","FallbackTopic":"cmnd/DVES_4A87E4_fb/","GroupTopic":"cmnd/tasmotas/"}
00:30:35 MQT: tele/Geeni_Light_1/INFO2 = {"WebServerMode":"Admin","Hostname":"Geeni_Light_1-2020","IPAddress":"192.168.50.28"}
00:30:35 MQT: tele/Geeni_Light_1/INFO3 = {"RestartReason":"External System"}
00:30:35 MQT: stat/Geeni_Light_1/RESULT = {"POWER":"OFF"}
00:30:35 MQT: stat/Geeni_Light_1/POWER = OFF

MQTT Broker Logs:


[08:23:58] INFO: Setup mosquitto configuration
[08:23:58] WARNING: SSL not enabled - No valid certs found!
[08:23:58] INFO: Found local users inside config
[08:23:59] INFO: Initialize Hass.io Add-on services
[08:23:59] INFO: Initialize Home Assistant discovery
[08:23:59] INFO: Start Mosquitto daemon
1580477039: mosquitto version 1.6.3 starting
1580477039: Config loaded from /etc/mosquitto.conf.
1580477039: Loading plugin: /usr/share/mosquitto/auth-plug.so
1580477039: |-- *** auth-plug: startup
1580477039:  ├── Username/password checking enabled.
1580477039:  ├── TLS-PSK checking enabled.
1580477039:  └── Extended authentication not enabled.
1580477039: Opening ipv4 listen socket on port 1883.
1580477039: Opening ipv6 listen socket on port 1883.
1580477039: Opening websockets listen socket on port 1884.
1580477039: Warning: Mosquitto should not be run as root/administrator.
1580477043: New connection from 172.30.32.1 on port 1883.
1580477044: Socket error on client <unknown>, disconnecting.
1580477044: New connection from 172.30.32.1 on port 1883.
[INFO] found homeassistant on local database
1580477044: New client connected from 172.30.32.1 as auto-D650768A-81D3-DB6C-9C0A-582560E414CF (p2, c1, k60, u'homeassistant').
1580477046: New connection from 192.168.50.28 on port 1883.
[INFO] found darren on local database
1580477047: New client connected from 192.168.50.28 as DVES_4A87E4 (p2, c1, k30, u'darren').

And here’s my autodiscovery proof (I think):
image

And my MQTT config on the Tasmota device:

What .bin did you flash ? Not all tasmota versions support autodiscovery.

http://thehackbox.org/tasmota/release/tasmota-lite.bin

I tried tasmota.bin first, but it seemed to brick my device for some reason, so I went with the lite version instead.

There is a - next to USE_DISCOVERY, so autodiscovery is not supported.

Thank you for your help! I’ll attempt to flash the full firmware again.

Pretty easy to just add the mqtt light config to your configuration.yaml instead of relying on auto discovery. In case reflash doesn’t work…