Thanks. Checked the console (didn’t know to do that before. I am quite the noob). Realised that it wasn’t connecting. There was a typo in the creds. It connected.
However, I have a new problem now. When I turn it “on” the relay “turns off” and vice versa. I vaguely remember reading somewhere that this is because of pull down / up resistors (I am not sure how to check which one I have).
I am guessing there is a place in the code to change that. Not sure. I don’t wanna make a reverse entry in configuration.yaml like below:
My D1 mini responds correctly, But you can change in configuration (D1 mini web page) from 21 relay1 to 29 relay1i. This will invert the relay operation.
my wemos D1 mini is not available on home assistant even with these configurations, and an other problem i have a 5v relay wired to D1 mini when i click on On or Off on sonoff webpage the relay is always on, noway to turn it off.