...
Set the GPIOs
CE Dimmer:
Moes Dimmer:
Treatlife 3 way Switch:
Issue the following from the console:
> backlog module 18;gpio4 21;gpio5 57;gpio12 30;gpio13 18;gpio14 9;switchtopic 0;switchmode1 0;buttontopic 0;rule1 on event#ON do power2 TOGGLE endon;rule1 1;rule2 on event#OFF do power2 TOGGLE endon;rule2 1
Should result in the following:
Configuring TuyaMCU
We can turn on the weblog in order to get more information.
...
> TuyaMCU 21,2
> DimmerRange 150, 1000
Treatlife 3 Way
Done in previous step.
Homebridge Config
For integration with Homebridge, we are going to use the mqttthing plugin and run all of the commands through an mqtt server.
...