MQTT audio discovery help


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml


mqtt:
  broker: 192.168.0.21
  discovery: true
  discovery_prefix: homeassistant

In HomeAssistant GUI under dev tools/MQTT I can see loads of devices

Message 214 received on shellies/shellyswitch25-E66DB8/overtemperature at 19:57:
0
QoS: 0 - Retain: false
Message 213 received on shellies/shellyswitch25-E66DB8/temperature_f at 19:57:
137.61
QoS: 0 - Retain: false
Message 212 received on shellies/shellyswitch25-E66DB8/temperature at 19:57:
58.67
QoS: 0 - Retain: false
Message 211 received on shellies/shellyswitch25-E66DB8/input_event/1 at 19:57:
{
    "event": "",
    "event_cnt": 0
}
QoS: 0 - Retain: false
Message 210 received on shellies/shellyswitch25-E66DB8/input/1 at 19:57:
1
QoS: 0 - Retain: false
Message 209 received on shellies/shellyswitch25-E66DB8/input_event/0 at 19:57:
{
    "event": "",
    "event_cnt": 0
}
QoS: 0 - Retain: false
Message 208 received on shellies/shellyswitch25-E66DB8/input/0 at 19:57:
1
QoS: 0 - Retain: false
Message 207 received on shellies/shellyswitch25-E66DB8/relay/1/energy at 19:57:
1049
QoS: 0 - Retain: false
Message 206 received on shellies/shellyswitch25-E66DB8/relay/1/power at 19:57:
0
QoS: 0 - Retain: false
Message 205 received on shellies/shellyswitch25-E66DB8/relay/1 at 19:57:
off
QoS: 0 - Retain: false
Message 204 received on shellies/shellyswitch25-E66DB8/relay/0/energy at 19:57:
429
QoS: 0 - Retain: false
Message 203 received on shellies/shellyswitch25-E66DB8/relay/0/power at 19:57:
0
QoS: 0 - Retain: false
Message 202 received on shellies/shellyswitch25-E66DB8/relay/0 at 19:57:
off
QoS: 0 - Retain: false
Message 201 received on shellies/shellyswitch25-0082FD/overtemperature at 19:57:
0
QoS: 0 - Retain: false
Message 200 received on shellies/shellyswitch25-0082FD/temperature_f at 19:57:
153.05
QoS: 0 - Retain: false
Message 199 received on shellies/shellyswitch25-0082FD/temperature at 19:57:
67.25
QoS: 0 - Retain: false
Message 198 received on shellies/shellyswitch25-0082FD/input_event/1 at 19:57:
{
    "event": "",
    "event_cnt": 0
}
QoS: 0 - Retain: false
Message 197 received on shellies/shellyswitch25-0082FD/input/1 at 19:57:
0
QoS: 0 - Retain: false
Message 196 received on shellies/shellyswitch25-0082FD/input_event/0 at 19:57:
{
    "event": "",
    "event_cnt": 0
}
QoS: 0 - Retain: false
Message 195 received on shellies/shellyswitch25-0082FD/input/0 at 19:57:
0
QoS: 0 - Retain: false
Message 194 received on shellies/shellyswitch25-0082FD/relay/1/energy at 19:57:
23070
QoS: 0 - Retain: false
Message 193 received on shellies/shellyswitch25-0082FD/relay/1/power at 19:57:
38.38
QoS: 0 - Retain: false
Message 192 received on shellies/shellyswitch25-0082FD/relay/1 at 19:57:
on
QoS: 0 - Retain: false
Message 191 received on shellies/shellyswitch25-0082FD/relay/0/energy at 19:57:
5140
QoS: 0 - Retain: false
Message 190 received on shellies/shellyswitch25-0082FD/relay/0/power at 19:57:
0
QoS: 0 - Retain: false
Message 189 received on shellies/shellyswitch25-0082FD/relay/0 at 19:57:
off
QoS: 0 - Retain: false
Message 188 received on shellies/shelly1-2278B2-11/input_event/0 at 19:57:
{
    "event": "",
    "event_cnt": 0
}
QoS: 0 - Retain: false
Message 187 received on shellies/shelly1-2278B2-11/input/0 at 19:57:
0
QoS: 0 - Retain: false
Message 186 received on shellies/shelly1-2278B2-11/relay/0 at 19:57:
off
QoS: 0 - Retain: false
Message 185 received on shellies/shelly1-227CA3/input_event/0 at 19:57:
{
    "event": "",
    "event_cnt": 0
}
QoS: 0 - Retain: false
Message 184 received on shellies/shelly1-227CA3/input/0 at 19:57:
0
QoS: 0 - Retain: false

MQTT explorer can see loads of devices

But nothing is discovery in HomeAssistant. I have reset docker, its using the same network as the host? I have re-installed mosquito

The mosquitto addon is configured through the user interface, delete the mqtt yaml config and follow the addon documentation.

Also discovery requires your devices to publish to the homeassistant discovery topic.

Shelly’s don’t do this. You will have to manually configure them in yaml.

Tasmota does. Just setOption19 = 1

1 Like

If you want your shellies to be auto-discovered, run the shellies discovery script :

For your zigbee2mqtt devices : in the zigbee2mqtt configuration.yaml set homeassistant: true

And as tom_l said : for tasmota, enter setoption19 1 in the tasmota console.

1 Like

took a night away from the keyboard. Cleared the lot and started again and its worked this time.

Thanks for the speedy help.