Im having problems setting up mqtt

Hi I am new to pi and home assistant so please for give me if I am doing something wrong.

I have followed bruh on you tube to install both home assistant and mosquito

when I load home assistant it tells me that invalid config.

I got this from the home home-assistant.log file

2017-07-20 08:36:21 ERROR (MainThread) [homeassistant.config] Invalid config for [mqtt]: expected a dictionary for dictionary value @ data[‘mqtt’]. Got ‘broker:192.168.0.5 port:1883 username:username Password:raspberry’. (See ?, line ?). Please check the docs at https://home-assistant.io/components/mqtt/
2017-07-20 08:36:21 ERROR (MainThread) [homeassistant.setup] Setup failed for mqtt: Invalid config.

I have tracked this down through: hass --script check_configuration.yaml

and it comes out with: Config does not exist: /home/pi/.homeassistant/configuration

I have come to a bit of a block. I believe that this maybe the wrong bath. as when I open the configuration.yaml file at the top the path says: \Rp2\home assistant\configuration.yaml

any help with this would be greatful as I have spent a week trying different things to resolve this.

Which installation method did you use?
Can you please run hass --script check_config?

I get as follows form running that script

Config does not exist: /home/pi/.homeassistant/configuration.yaml

I have tried both hassbeen and currently trying python & home assistant to see if that made a difference but both times has come out with the same problem and i cant see what i have done any different to the youtube clips

Where is your configuration.yaml located? It should be in ~/.homessistant/, so please have a look at the docs.

This looks like you are running this command as user pi, but you did not install HA as user pi. You need to run this command as the same user (and virtual environment) as the user that runs HA.