I’ve got emby and my denon amp working now.
I’m still having problems getting it communicate with mqtt.
in my configuration file i have the following:
mqtt:
broker: LOC.ALI.PAD.RES:1883
username: homeassistusername
password: homeassistpassword
discovery: true
discovery_prefix: homeassistant
I’m running the mqtt docker on the same unraid system. Any help from here would be greatly appreciated!
last two error logs:
2018-09-02 16:13:56 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno -2] Name or service not known
2018-09-02 16:13:56 ERROR (MainThread) [homeassistant.setup] Setup failed for mqtt: Component failed to initialize.
Can you try to remove the port from the broker path, add it to a separate config name ‘port:’.
This is my config to my broker:
broker: IP-ADDRESS-OF-BROKER <-- Try IP instead of <LOC.ALI.PAD.RES> when it is not working
port: PORT-OF-BROKER <-- in your case 1883
username: USERNAME
password: PASSWORD
Thanks.
I’ve removed the port and put it on a seperate line.
The LOC.ALI.PAD.RES was used to replace the local ip of 192.168.10.201 i just didnt include it in the post.
(lines)
(28) mqtt:
(29) broker: 192.168.12.201
(30) port: 1883
(31) username: USERNAME
(32) password: PASSWORD
i’ve tried the password both in and out of ’
2018-09-02 16:13:56 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno -2] Name or service not known
2018-09-02 16:13:56 ERROR (MainThread) [homeassistant.setup] Setup failed for mqtt: Component failed to initialize.2018-09-02 16:46:58 ERROR [homeassistant.util.yaml] while scanning a simple key
in “/config/configuration.yaml”, line 30, column 3
could not find expected ‘:’
in “/config/configuration.yaml”, line 31, column 3
2018-09-02 16:46:58 ERROR (MainThread) [homeassistant.components] Error loading /config/configuration.yaml: while scanning a simple key
in “/config/configuration.yaml”, line 30, column 3
could not find expected ‘:’
in “/config/configuration.yaml”, line 31, column 3
2018-09-02 16:52:45 ERROR (SyncWorker_0) [homeassistant.util.yaml] while scanning a simple key
in “/config/configuration.yaml”, line 30, column 3
could not find expected ‘:’
in “/config/configuration.yaml”, line 31, column 3
Latest error.
Sun Sep 02 2018 16:52:48 GMT+0100 (British Summer Time)
Error loading /config/configuration.yaml: while scanning a simple key
in “/config/configuration.yaml”, line 30, column 3
could not find expected ‘:’
in “/config/configuration.yaml”, line 31, column 3
just restarted the docker and not getting any more errors! Thanks.
Now. how to add the switches to the mqtt server!
Nice to hear!
I’m also new to this. Check my first attempts to get it working:
https://community.home-assistant.io/t/my-first-steps-discovering-home-assistant-setting-up-a-ha-client-to-an-existing-mqtt-broker
I ended up with the same question you are asking…
I would like to have a button which could fire one command (one-state) instead of a switch (two-state). So, if you figured out how to do that, please share.