Hi, my configuration.yaml file looks like this:
switch:
- platform: mqtt
name: "Kitchen"
command_topic: "homeassistant/switch1"
payload_on: "ON"
payload_off: "OFF"
optimistic: true
qos: 0
retain: true
value_template: '{{ value.x }}'
(I have 2 spaces before start of every new line, but I dont know ho to do it here…)
But Home Assistant is notifying me, that this config is wrong and can’t be set up. I dont know why. Please can you help me?