Troubleshooting Erratic Behavior in Solar Electricity Router for Excess PV Power Management

Hello, I need help. I'm trying to make a router for solar electricity. The goal is to direct the excess electricity produced by the PV panels to a household resistive load rather than sending it to the grid for free.

Reading the teleinfo port of the Linky meter works very well.
When I use the dimmer library in one of the example sketches, my incandescent bulb works perfectly.
But, in my router sketch, the bulb behaves erratically. I've been working on this for a month. If you could help me, thank you.
file0.jpg
Was this page helpful?