MQTT UI Configuration not working?

Hi,

I just added two Sonoff devices with Tasmota firmware useing the MQTT discovery function. I followed the guide on the Tasmota GitHub-page (https://github.com/arendst/Sonoff-Tasmota/wiki/Home-Assistant).

The devices show up in UI, but I can’t see them under the Configuration -> Integrations -> Configured -> MQTT. On the Tasmota guide there is a screen dump showing how you should be able to see them there.

Any one knows why I cant see them under the configuration?

Did you add the configuration in the configuration.yaml or just the straight discovery?
In the yaml file, it won’t show up in the integrations.
I just went through switching it around to the non discovery mode for other reasons.

I started with removing all old MQTT settings in configuration.yaml.
Then restarted HA.
Added MQTT in UI with discovery.
Added the Tasmota devices, witch showed up immediately under States, Current entities.
And after a refreash of the browser also in the overweiv.

But still nothing under the configuration part of the UI.

How did you add the Tasmota device?
I went into the console of the Tasmota switch and ran SetOption19 =1
It then automatically appeared in the configuration part of the UI.

did you restart home assistant after you added the integration?

You should not even have mqtt: in your config yaml file or any switches or anything to do with mqtt in there.
You should have a broker
When you add the integration, check discovery and then restart home assistant.

As soon as you setoption19 on in tasmota they will popup in home assistant and should show in the integration. If they don’t, try restarting home assistant again…

Yes. I have restarted home assistant since than.

But I do need to put the mqtt devices that doesn’t support discovery in yaml.
I have a weather station not compatible with HA, so I am using WeeWX to fetch the state of my weather station. And then sending the values with mqtt to HA.
Then I have a couple of “virtual” sensors that present values originating from Node-RED, that I also use mqtt to update the state in HA.
None of these showed up in HA, if I don’t put them in yaml.

The Tasmota devices did show up in HA issuing setoption19. I can see them on the main page (Overview/States). I can se them under “development tools” > States/Current entities.
They do work perfect.

But I can not see them under Configuration -> Integrations -> Configured -> MQTT, like you can see here: https://github.com/arendst/Sonoff-Tasmota/wiki/Home-Assistant#setup-tasmota-devices-through-home-assistant

ok. what is in config yaml for mqtt? can you show that…

Sure. Here is the part in configuration.yaml that is about mqtt:

sensor:
    # Outside Temperature
  - platform: mqtt
    state_topic: 'weather/outTemp_C'
    name: 'mqtt_weather_temp_out'
    unit_of_measurement: '°C'
    # Outside Humidity
  - platform: mqtt
    state_topic: 'weather/outHumidity'
    name: 'mqtt_weather_humidity_out'
    unit_of_measurement: '%'
    # Outside Dewpoint
  - platform: mqtt
    state_topic: 'weather/dewpoint_C'
    name: 'mqtt_weather_dewpoint_out'
    unit_of_measurement: '°C'
    # Steadman Apparent Temperature
  - platform: mqtt
    state_topic: 'weather/appTemp_C'
    name: 'mqtt_weather_temp_app'
    unit_of_measurement: '°C'
    # Barometer
  - platform: mqtt
    state_topic: 'weather/barometer_mbar'
    name: 'mqtt_weather_barometer'
    unit_of_measurement: 'mbar'
    # Wind Direction
  - platform: mqtt
    state_topic: 'weather/windDir'
    name: 'mqtt_weather_wind_dir'
    unit_of_measurement: '°'
    # Wind Speed
  - platform: mqtt
    state_topic: 'weather/windSpeed_mps'
    name: 'mqtt_weather_wind_speed'
    unit_of_measurement: 'm/s'
    # Wind Gust Direction
  - platform: mqtt
    state_topic: 'weather/windGustDir'
    name: 'mqtt_weather_gust_dir'
    unit_of_measurement: '°'
    # Wind Gust Speed
  - platform: mqtt
    state_topic: 'weather/windGust_mps'
    name: 'mqtt_weather_gust_speed'
    unit_of_measurement: 'm/s'
    # Rain This Hour
  - platform: mqtt
    state_topic: 'weather/hourRain_mm'
    name: 'mqtt_weather_rain_hour'
    unit_of_measurement: 'mm'
    # Rain This Day
  - platform: mqtt
    state_topic: 'weather/dayRain_mm'
    name: 'mqtt_weather_rain_day'
    unit_of_measurement: 'mm'
    # Rain Rate
  - platform: mqtt
    state_topic: 'weather/rainRate_mm_per_hour'
    name: 'mqtt_weather_rain_rate'
    unit_of_measurement: 'mm/h'
    # Inside Temperature
  - platform: mqtt
    state_topic: 'weather/inTemp_C'
    name: 'mqtt_weather_temp_in'
    unit_of_measurement: '°C'
    # Inside Humidity
  - platform: mqtt
    state_topic: 'weather/inHumidity'
    name: 'mqtt_weather_humidity_in'
    unit_of_measurement: '%'
    # Average sensor.matkallare_3_1
  - platform: mqtt
    state_topic: 'nodered/mqtt_matkallare_3_1'
    name: 'mqtt_matkallare_3_1'
    unit_of_measurement: '°C'

I don’t have any mqtt component in my configuration.yaml any more. That was removed, together with the code above, before activating the mqtt integration in the UI.
The code above I have put back in yaml afterwards, when realizing that these could not be discovered.

so no mqtt: section (even blank)?

Nope.

It is all removed. It looked like this before I removed it (which I did before activating the integration in UI).

mqtt:
  broker: 127.0.0.1
  port: 1883
  username: !secret mqtt_username
  password: !secret mqtt_password

Ok. Well it’s odd that nothing - no devices show in the integration. If you open the integration is there a message that devices are configured in configuration.yaml?

No. If I go into the integration in the UI it only says:

Denna integration har inga enheter.
This integration has no units.

I have some other integration through the UI. IE IKEA Trådfri and Google Cast. And they all show the entities found.

Running Home Assistant 0.88.1 in Python Virtual Enviroment on Ubuntu Server 16.04.5 LTS
And nothing in the log that indicates any problem at all with the installation.

So. I solved it. It was a stupid misstake from my side.

I was running a to old tasmota firmware. I upgraded the firmware in my tasmota units to the latest and now it is working even in the configuration UI.

Thanks for your efforts to solve this!

1 Like