Hi,
i have 2 hassio installation: 1 for production and 1 for testing… I would like that the testing will access the production mqtt to get device data, but i don’t know how to set it up… i’ve installed the mosquitto broker addon but for what i’ve understand this will create a server in the testing machine… how can i access the production server?
Simply point your test configuration to the mqtt broker on your production server. I have both a production server and a test server, both point to the same mqtt broker.
i tryed, but I get these errors in the test machine:
2019-09-30 13:15:23 WARNING (MainThread) [homeassistant.components.mqtt] Data in your config entry is going to override your configuration.yaml: {'broker': 'core-mosquitto', 'discovery': False, 'password': 'xxxx', 'port': 1883, 'protocol': '3.1.1', 'username': 'homeassistant'}
2019-09-30 13:15:24 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused
2019-09-30 13:15:24 WARNING (MainThread) [homeassistant.config_entries] Config entry for mqtt not ready yet. Retrying in 5 seconds.
and no mqtt: entry in the config file… the strange thing is that in the production logs i have:
Data in your config entry is going to override your configuration.yaml: {'broker': 'core-mosquitto', 'discovery': True, 'password': 'mypass', 'port': 1883, 'protocol': '3.1.1', 'username': 'homeassistant'}
thanx a lot francisp you were right, i was using built in mqtt and to change, i’ve had to edit core.config_entries! I solved my problem and now i’ve learned better how mqtt works!