platform: mqtt
name: “Lamp1”
state_topic: “stat/sonoffpow2/POWER”
command_topic: “cmnd/sonoffpow2/POWER”
qos: 0
payload_on: “ON”
payload_off: “OFF”
retain: true
Now when adding the above to my already existing switch this is what i get when checking config file.
Error loading /config/configuration.yaml: while parsing a block collection
in “/config/configuration.yaml”, line 188, column 2
expected , but found ‘’
in “/config/configuration.yaml”, line 199, column 3
with line 188 being wake on lan and then 199 being the retain: true
You need to post your yaml snippet using the instructions in the blue box at the top of the post, so we can see it properly.
But judging from the error message, I think you need to check the quotes. Either you have them mismatched (possibly from earlier in the configuration), or they are of the wrong type - which editor did you use?
Edit:
But @myle is correct, you need to install the tasmota software on the sonoff, I understand it doesn’t have it by default.
You need one of these:
USB UART TTL 3.3V Converter/Programmer (e.g. CP2102, CH340G, FT232, PL2303) Also check out my blog post with step by step.
I just searched ebay for CP2102 and pretty much got the first one that came up. Cost ~ USD$5