2018-01-14 01:58:13 ERROR (Thread-2) [homeassistant.util.yaml] while parsing a block mapping
in “/home/homeassistant/.homeassistant/configuration.yaml”, line 250, column 3
expected , but found ‘’
in “/home/homeassistant/.homeassistant/configuration.yaml”, line 255, column 16
2018-01-14 01:58:13 ERROR (MainThread) [homeassistant.bootstrap] Error loading /home/homeassistant/.homeassistant/configuration.yaml: while parsing a block mapping
in “/home/homeassistant/.homeassistant/configuration.yaml”, line 250, column 3
expected , but found ‘’
in “/home/homeassistant/.homeassistant/configuration.yaml”, line 255, column 16
Line 250 is the second switch platform line and line 255 is the payload_on line.
How could I config two MQTT switches?
Running 0.54 version…
Tried this before without the empty line between both.
I get the same error:
2018-01-14 09:04:10 ERROR (Thread-2) [homeassistant.util.yaml] while parsing a block mapping
in “/home/homeassistant/.homeassistant/configuration.yaml”, line 249, column 5
expected , but found ‘’
in “/home/homeassistant/.homeassistant/configuration.yaml”, line 254, column 18
2018-01-14 09:04:12 ERROR (MainThread) [homeassistant.bootstrap] Error loading /home/homeassistant/.homeassistant/configuration.yaml: while parsing a block mapping
in “/home/homeassistant/.homeassistant/configuration.yaml”, line 249, column 5
expected , but found ‘’
in “/home/homeassistant/.homeassistant/configuration.yaml”, line 254, column 18
In the second switch, the double quote at the start of the name and at the end of the command topic, are not the same as the others.
Replace them with standard double quotes, or get rid of all of them and replace them with singles, and you should be good to go
You are probably using a word processor to create your files instead of a text editor.
Word processors are really good at replacing quote characters with fancy open and close quotes.
@TheNotSoSmartHome Thanks for the quick response - I need to add more switches and I thought this format was to be used - please correct me if I’m wrong…
Also, double check the naming of the command and topic commands. I have flashed my devices with Tasmota and note that my command topic have a number at the end.
@TheNotSoSmartHome Thanks again … I was having issues with mosquitto and resolved them - tasmota works fine via the web interface but I can;t get HA mqtt messages to work via the HA interface.
I deleted the the rf switch entry and now there are no config errors… here are some screen shots.
Would appreciate some help.
Thanks
@TheNotSoSmartHome the log told me that Tasmota was not alive and it turned out I had not made an entry in the service config to start tasmota before HA.
Thank you very much for your help. Next - adding more sonoffs to replace my X10’s - this is turning out to be a real fun experience
The only thought I have is what is the name of the device?
I do not know how HA will map name: "sonoff_1" as I know name: "Lab Bench Outlet 1" will map to switch.lab_bench_outlet_1. You can check this in the Devloper section on the button that looks like < >
Just to double check, both HA and the sonoff are connected to the broker correct? I previously noted that the sonoff could not connect to the broker and I don’t understand this:
What are you running HA on and which broker are you using? Do you have the logs from the broker?
@TheNotSoSmartHome my entity id showed up as switch.sonoff_1 and no matter what I did it showed unavailable so I used “Sonoff Switch 1” and it now shows up as sonoff_switch_1 and works fine. I added the