I have a problem with mqtt switch, the error I get is this , Error loading /config/configuration.yaml: mapping values are not allowed here
in “/config/switch.yaml”, line 2, column 12 , this is the code I put in switch.yaml :
- platform: mqtt
name: "falirospitocomhibernate"
command_topic: "falirospitocom/hibernate"
payload_on: "1"
optimistic: false
- platform: mqtt
name: "falirospitocomvsuspend"
command_topic: "falirospitocom/suspend"
payload_on: "1"
optimistic: false
- platform: mqtt
name: "falirospitocomreboot"
command_topic: "falirospitocom/reboot"
payload_on: "1"
optimistic: false
- platform: mqtt
name: "falirospitocomshutdown"
command_topic: "falirospitocom/shutdown"
payload_on: "1"
optimistic: false
- platform: mqtt
name: "falirospitocomlockcomputer"
command_topic: "falirospitocom/lockcomputer"
payload_on: "1"
- platform: mqtt
name: "falirospitocomVolume20"
state_topic: "falirospitocom/volume"
command_topic: "falirospitocom/volume/set"
payload_on: "20"
- platform: mqtt
name: "falirospitocomVolume20"
state_topic: "falirospitocom/volume"
command_topic: "falirospitocom/volume/set"
payload_on: "20"
- platform: mqtt
name: "falirospitocomVolume90"
state_topic: "falirospitocom/volume"
command_topic: "falirospitocom/volume/set"
payload_on: "90"