I would suggest doing a reset of each device, one at a time, and starting from scratch. It will take a little time, but may help get things working as some of the old settings and rules may be sticking.
Use the config I posted, and change the the mqtt topics to suit the ones you use. I followed the same blog post and although it helped me work things out, that code no longer works, so don’t use it.
I then used only these commands in the console. I did not use mqtt discovery (SetOption19 1
) as it doesn’t work correctly, or at least didn’t for me. I’m not sure if the rule1
and rule2
commands still work - you could try and one fan to test, but I didn’t find them necessary.
{"NAME":"Brilliant Fan","GPIO":[0,107,0,108,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":54}
Backlog TuyaMCU 11,1; TuyaMCU 12,9; TuyaMCU 21,10
Backlog MqttHost 192.168.1.101; MqttUser USERNAME; MqttPassword PASSWORD; Hostname brilliant_fan; MqttClient brilliant_fan; Topic brilliant_fan; DeviceName brilliant_fan; FriendlyName1 brilliant_fan; SetOption0 1; TelePeriod 60; PowerRetain 1;
Change the “brilliant_fan” name to suit each of your fans, and also adjust the mqtt broker IP.
I ended up with an entity that worked liked this. A Switch to toggle on and off, and fan speeds. I hope this helps.