i found for me that the moc3043 will work better as the moc3041 chops off the the lower steps. and generally only works between ~80 -255 step if you used a moc3043 you get the full range from 1- 255 complete steps
but glad you got it working for you…
if you find it a bit too quick to jump just increase the element size it make it a bit slower to find the correct step but it maintain a better a tighter line to the zeroed grid
by the way how many SSR/triac are you controlling since you have it set to 4 if you only have the one then just set it to one… or two if you plan to add more…
do you think possible to add an energy counter,
sure you could add it to sketch if you like… or buy the wemos uno/wifi card and you can send the data to your prefered visualization database emocms, influxdb… etc
here link how to set that up
and if you used the home automation software you can have it trigger the timing of the events you want.