Hi,
I am new to Home Assistant and home automation in general. I installed Hassbian 1.1 on a Pi 3 and got it running with Mosquitto as my MQTT broker. Now I want to start adding MQTT sensor data and switches to Home Assistant but for the live of me I can’t seem to figure out how to do this? I go into the configuration file, added the MQTT details and Switch - but it does not show anywhere on the server web page… Just about all the switches and sensors will be connected using MQTT as it will mostly be DIY projects.
This is what I added to the bottom of the default configuration file that was generated, then restarted the pi…
mqtt:
broker: SERVER IP - TAKEN OUT FOR THIS POST
port: 1883
client_id: home-assistant-1
keepalive: 60
username: TAKEN OUT FOR THIS POST
password: TAKEN OUT FOR THIS POST
protocol: 3.1
switch:
- platform: mqtt
name: "Bedroom Switch"
state_topic: "home/bedroom/switch1"
command_topic: "home/bedroom/switch1/set"
payload_on: "ON"
payload_off: "OFF"
optimistic: false
qos: 0
retain: true