Mqtt broker help

I am hopeing someone can help me out i have mqtt working atleast that devices can talk to it but i cant get HA to add the integration fir mqtt all i get is cant connect weather i use the discovered mqtt or add my own.

Can you share your config?

Sure i am new to ha so what config do i need ti share the yaml or the mqtt from hass?

The bit where you define the mqtt broker au least. Give us some logs too pls

here is the definitions for the mqtt proker form the hassio screen tell me what logs i need to supply and i will am still trying to understand where to even look for the stuff in HA though

{
  "logins": [
    {
      "username": "DVES_USER",
      "password": "DVES_PASS"
    }
  ],
  "anonymous": false,
  "customize": {
    "active": true,
    "folder": "mosquitto"
  },
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem"
}

This is the ADD-ON config. How about the config of your home assistant where you tell it what broker to use?

i don’t have a mqtt entry there because no matter what i use the automatic found mqtt or i add it under intergrations I get can’t connect should I try adding a entry directly to the yaml?

here is the configuration.yaml


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

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
mqtt:
  broker: 192.168.1.8
  username: DVES_USER
  password: DVES_PASS
  discovery: true

here is most recent part of my logfile

2019-09-12 17:12:45 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:14:06 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:14:06 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:15:27 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:15:27 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:16:01 WARNING (zeroconf-ServiceBrowser__googlecast._tcp.local.) [zeroconf] Exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/zeroconf.py", line 2245, in send
    bytes_sent = s.sendto(packet, 0, (addr, port))
PermissionError: [Errno 1] Operation not permitted
2019-09-12 17:16:48 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:16:48 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:18:09 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:18:09 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:19:30 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:19:30 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:20:51 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:20:51 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:22:12 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:22:12 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:23:33 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:23:33 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:24:54 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:24:54 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:26:15 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:26:15 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:27:36 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:27:36 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:28:57 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:28:57 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:30:18 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:30:18 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:31:39 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:31:39 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:33:00 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:33:00 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:34:21 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:34:21 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:35:42 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:35:42 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:37:03 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:37:03 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:38:24 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:38:24 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:39:45 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:39:45 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:41:06 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:41:06 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:42:27 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:42:27 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:43:48 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:43:48 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:45:09 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:45:09 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:46:30 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:46:30 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:47:51 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:47:51 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.
2019-09-12 17:49:12 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-12 17:49:12 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 80 seconds.

Yet your next post shows you DO have a MQTT entry there!

Did you setup the acl as per the docs?
What is in acl.conf and accesscontrollist?

It is there cause i went back and added it and no i didnt do anything to acl guess i will look at that

If you want it to work, it’s best to follow ALL the instructions!

Remove the broker from configuration.yaml - you don’t need it if you use the hassio addon.

In the access control iist, make sure you add a homeassistant user like:

user your-user
topic readwrite #
user homeassistant
topic readwrite #

See

thank you that worked now i just have to get it to see and add my sonoff tasmota devices

ok so when you add the MQTT integration, make sure you check the box for MQTT Discovery and then on the Tasmota devices, in the console, setoption19 on

then they will just pop up in HA automagically

I did both and non pop up those as best I can tell they are talking I see in the console of the tasmota device that it is sending out the home assistantline but not sure what is going on on the home assistant side as it doesn’t find it

did you add the MQTT integration and check the box for discovery?
Perhaps also after adding the integration, restart home assistant

I checked discovery I even rebooted the HA box completely I have even removed and readded the mqtt to make sure that it was checked is there a specific way to check what is going on?

I just did happen to look at the log file directly after power on does this mean aynthing?

2019-09-13 18:54:06 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=26 from 2019-09-13 02:22:36.370053)
2019-09-13 18:54:20 WARNING (MainThread) [homeassistant.setup] Setup of person is taking over 10 seconds.
2019-09-13 18:54:26 WARNING (MainThread) [homeassistant.components.weather] Setup of platform met is taking over 10 seconds.
2019-09-13 18:55:24 WARNING (zeroconf-ServiceBrowser__googlecast._tcp.local.) [zeroconf] Exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/zeroconf.py", line 2245, in send
    bytes_sent = s.sendto(packet, 0, (addr, port))
PermissionError: [Errno 1] Operation not permitted

none of those relate to MQTT.
Please post accesscontrollist and acl.conf

controlist

user yonu
topic readwrite #
user ha
topic readwrite #
user DVES_USER
topic readwrite #

acl

acl_file /share/mosquitto/accesscontrollist