Hi guys, this is my first post and I have just started using HA.
I currently have 8 sonoff basics running Tasmota and they all are working well but my problem started with the 4CH Pro R2, Flash went well and i can get on to the web interface, entered mqtt like i have with all other basics, adjusted the S6 switch to 1 and flicked all K5 switches to 1. relays work perfectly from the box itself and also from the Web Interface. It also work from TasmoAdmin withen HA. But no matter what i do, I cannot for the life of me get it to run with HA. Used switch, light… you name it.
Here is a copy of my code. Sorry if this post is messed up, mu first time.
Thank you for the reply, I have tried that too.
What confuse me is that all other Basic sonoffs work perfectly, but this 4ch just will not do anything when i move the switch.
The console reports exactly the topic i used in mqtt on the sonoff portal, I have tried SetOption 19 but HA never discovered it. I also do prefer to do it manual config to have more control.
Also i removed mqtt fully and re configured it just to see if i missed anything.
Also I have re flashed the 4CH Pro
I can see in mqtt log that my 4CH Ip address makes a connection
For my non discovery devices this is how mine are set Like @aidbish mention I have POWER1 command part in capitals. I also have the availability_topic set, but I dont know if that is relevant to your issue or not.
Semi Succses !!
I followed your instructions to add the discovery and sure enough, it got discovered by HA as a switch and a button (BTN).
Now the challenge of adding it manual, I have no clue where the discovered items get stored, to at least read how HA reads it.
Ok i give up…i did the setting in sonoff console to remove auto detect, and tried to set it up manually again. I get Unavailable in the switch card.
I think it uses another topic name than the mqtt that i have imputed in sonoff console.
wills106 if you get it working on manual, please share
Thanks all and for now it will be on auto discover…
Have you been trying out different firmware’s on that device? As 2 of my wall switches had the same problem where the Full Topic got reversed for some reason. The only thing that I think could have caused it on mine was swapping about on different firmware’s.