Hi,
I have successfully connected my SmartThings to my Home Assistant setup, and I wonder if someone could validate if the format of the below syntax is the correct way to add things to Home Assistant please?
Sensor
- platform: mqtt
name: “Whatever I like - e.g. MQTT Front Door Sensor”
state_topic: “smartthings/ExactNameOfSensorInSmartThings/sensor”
command_topic: “smartthings/ExactNameOfSensorInSmartThings/sensor”
payload_on: “on”
payload_off: “off”
retain: true
Switch
- platform: mqtt
name: “Whatever I like - e.g. MQTT Smart socket switch”
state_topic: “smartthings/ExactNameOfSwitchInSmartThings/switch”
command_topic: “smartthings/ExactNameOfSwitchInSmartThings/switch”
payload_on: “on”
payload_off: “off”
retain: true