Deleted due to safety
If you power the Nextion display from the Sonoff Mini it’s a VERY DANGEROUS wiring that should never be done ! The low voltage in Mini is directly linked to main power
Sorry but I think you don’t understand risks you take there !! What you indicate is exactly what I warned you in my previous message ! That 5V is lethal as it has no insulation from 220V so it should never go out of the Sonoff Mini !!
If you use one of those then you might as well use an ESP and power it from the same power supply. The Sonoff seems unnecessary all of the sudden…
I remove the post. I use it with consultation from my brother who is an electrician but if someone get hurt trying i dont want to encourage this use. You can ofcourse use mini with 5v instead but I dont see the point in that.
Exactly why I wanted use the sonoff.
Yep these devices provide the insulation needed
Yep easier to go all ESP way in home made way then