My problem . When i intall it with AC power i have a problem with the manual touch switch turning on and off from noise i guess . It flickers the touch switch on and off turning the light on and off randomly . Its not a wifi issue as its getting a good wifi signal and works from openhab,
I took it apart to play with the touch switch while on and if i hold the wire for the touch switch and can get it to stop flickering and not cause it to turn on /off .I thought maybe the touch switch was too close to the sonoff but if im holding the wire i can put it right up to the sonoff and not be a problem so thats not it. I think its getting noise introduces from the AC power .How do i fix this . Video below of the problem .
https://youtu.be/uHS793vKjGk
This is the touch switch im using which works great on the breadboard. In the video the red light is the light on the touchswitch which lights up when pressed.